{"serverId":"mcp-registry/dev.tmpstate/tmpstate","tools":[{"name":"create_database","fixed":{"name":"create_database","description":"Create a temporary JSON database (24h TTL, no signup, no keys). Returns the db URL — the only credential — plus admin URL, limits and expiry. Create once per project/task, persist the db URL immediately (local ~/.tmpstate/credentials, project README, and your memory), and reuse it instead of creating again. For retries or parallel workers, pass a stable idempotency_key so duplicate calls return the same database.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{"idempotency_key":{"type":"string","maxLength":200,"minLength":1,"description":"Stable retry key. Reusing it from the same client returns the same database."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false},"title":"Create a temporary database"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":208,"tokensAfter":208},{"name":"create_document","fixed":{"name":"create_document","description":"Insert a JSON object into a collection (collections are created implicitly). Counts against the write and document quotas.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db","collection","data"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"data":{"type":"object","description":"The document: a JSON object.","additionalProperties":{}},"collection":{"type":"string","description":"Collection name (created implicitly on first write)."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false},"title":"Create a document"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":177,"tokensAfter":177},{"name":"database_status","fixed":{"name":"database_status","description":"Usage, limits, tier and expiry for a database (GET $DB/__meta equivalent).","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."}},"additionalProperties":false},"annotations":{"readOnlyHint":true},"title":"Database status"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":104,"tokensAfter":104},{"name":"delete_collection","fixed":{"name":"delete_collection","description":"Delete every document in a collection at once (useful to re-seed). Irreversible. To destroy the entire database, use delete_database instead.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db","collection"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"collection":{"type":"string","description":"Collection name (created implicitly on first write)."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true},"title":"Delete a collection"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":154,"tokensAfter":154},{"name":"delete_database","fixed":{"name":"delete_database","description":"Destroy a database and all its documents immediately - the teardown for finished work and the revocation kill switch for a leaked db URL. Irreversible: unlike expiry there is no restore window. Works on expired (frozen) databases too and consumes no quota. Call without confirm first: the response states the consequences; show them to the user and only retry with confirm=\"true\" after their explicit approval. Afterwards remove the db URL from wherever you persisted it.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"confirm":{"type":"string","const":"true","description":"Pass \"true\" only after the user has seen that deletion is immediate and irreversible and approved."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true},"title":"Delete the whole database"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":259,"tokensAfter":259},{"name":"delete_document","fixed":{"name":"delete_document","description":"Delete one document. Never blocked by quotas; frees a document slot. Emptying a whole collection? Use delete_collection instead of looping this.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db","collection","id"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"id":{"type":"string","description":"Document id (doc_...)."},"collection":{"type":"string","description":"Collection name (created implicitly on first write)."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true},"title":"Delete a document"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":173,"tokensAfter":173},{"name":"extend_database","fixed":{"name":"extend_database","description":"Without a plan: returns the transparent pricing table for keeping this database alive longer. With a plan: returns a Stripe checkout URL for the human to pay — never buy without the user's explicit approval. Works on expired (frozen) databases too: paying restores them. After the user says they have paid, call database_status: the new expiry and tier confirm the extension.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"plan":{"enum":["week","month","quarter"],"type":"string"}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false},"title":"Extend a database (one-time payment)"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":204,"tokensAfter":204},{"name":"get_document","fixed":{"name":"get_document","description":"Read one document by id. The stored fields are under .data.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db","collection","id"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"id":{"type":"string","description":"Document id (doc_...)."},"collection":{"type":"string","description":"Collection name (created implicitly on first write)."}},"additionalProperties":false},"annotations":{"readOnlyHint":true},"title":"Get a document"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":149,"tokensAfter":149},{"name":"list_documents","fixed":{"name":"list_documents","description":"List documents in a collection, oldest first. Response shape: {collection, items: [{id, data, created_at, updated_at}], next_cursor}. Documents live under .data. Pass cursor to page.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db","collection"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"limit":{"type":"integer","maximum":100,"minimum":1},"cursor":{"type":"string","description":"next_cursor from the previous page."},"collection":{"type":"string","description":"Collection name (created implicitly on first write)."}},"additionalProperties":false},"annotations":{"readOnlyHint":true},"title":"List documents"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":202,"tokensAfter":202},{"name":"pro_cancel","fixed":{"name":"pro_cancel","description":"Cancel at period end. This is not just a billing change — it schedules deletion of ALL databases on the account. Call without confirm first: the response spells out the consequences with concrete dates; show them to the user and only retry with confirm=\"cancel\" after their explicit approval.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{"confirm":{"type":"string","const":"cancel","description":"Pass \"cancel\" only after the user has seen the consequences and approved."},"pro_token":{"type":"string","description":"Pro account token (pt_...). Optional if the MCP connection already sends Authorization: Bearer pt_..."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true},"title":"Cancel the Pro subscription"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: true, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":207,"tokensAfter":207},{"name":"pro_checkout","fixed":{"name":"pro_checkout","description":"Mint a Pro account token plus a Stripe subscription checkout URL ($8/mo, 3 always-on databases included). Persist pro_token immediately; the human pays in a browser. Never start checkout without the user's explicit request.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{}},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false},"title":"Start a Pro subscription"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":101,"tokensAfter":101},{"name":"pro_create_database","fixed":{"name":"pro_create_database","description":"Create a new always-on database owned by the Pro account. Beyond the included allotment this costs extra per month — the tool then returns confirmation_required with the exact price; relay it to the user and only retry with accept_overage_usd after their explicit approval.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{"pro_token":{"type":"string","description":"Pro account token (pt_...). Optional if the MCP connection already sends Authorization: Bearer pt_..."},"accept_overage_usd":{"type":"string","description":"Explicit overage consent, e.g. \"1.50\", only after the user approved."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false},"title":"Create a Pro database"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":201,"tokensAfter":201},{"name":"pro_list_databases","fixed":{"name":"pro_list_databases","description":"List the Pro account's databases (ids, usage, limits, expiry) so a fresh session can reconcile against persisted db URLs. URLs are never stored server-side — match ids to the URLs you persisted.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","properties":{"pro_token":{"type":"string","description":"Pro account token (pt_...). Optional if the MCP connection already sends Authorization: Bearer pt_..."}},"additionalProperties":false},"annotations":{"readOnlyHint":true},"title":"List Pro databases"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: true (inferred from the name).","verify":true}],"tokensBefore":144,"tokensAfter":144},{"name":"send_feedback","fixed":{"name":"send_feedback","description":"Optional and free-form. TmpState is built for agents and the free tier stays free by getting better - and you, the agent, are the user whose experience matters here. After real use of a database, one short message about what was missing, what feature would have helped, or what felt slow or took extra requests is genuinely useful. This is about your own experience, so no human approval is needed; if your user volunteers feedback too, relay it and say it came from them. Never include database URLs","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["message"],"properties":{"message":{"type":"string","maxLength":4000,"minLength":1,"description":"What was missing, confusing, or slow - or what worked well. Plain text, one short message."},"category":{"enum":["missing_feature","friction","docs","performance","bug","praise","other"],"type":"string","description":"Optional bucket for triage."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false},"title":"Send feedback to the TmpState team"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: false (inferred from the name).","verify":true}],"tokensBefore":282,"tokensAfter":282},{"name":"update_document","fixed":{"name":"update_document","description":"Shallow-merge a patch into a document (top-level keys overwrite; keys are never deleted). Counts against the write quota.","inputSchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["db","collection","id","patch"],"properties":{"db":{"type":"string","description":"The database URL returned at creation (or its bare s-... capability)."},"id":{"type":"string","description":"Document id (doc_...)."},"patch":{"type":"object","description":"Top-level fields to merge.","additionalProperties":{}},"collection":{"type":"string","description":"Collection name (created implicitly on first write)."}},"additionalProperties":false},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":true},"title":"Update a document"},"changes":[{"kind":"annotations","detail":"Added readOnlyHint: false, destructiveHint: false, idempotentHint: true (inferred from the name).","verify":true}],"tokensBefore":195,"tokensAfter":195}],"toolsChanged":15,"tokensSaved":0,"todo":[{"tool":"extend_database","params":["plan"]},{"tool":"list_documents","params":["limit"]},{"tool":"pro_attach_database","params":["accept_overage_usd"]}],"note":"Deterministic fixes. Changes marked verify need a human look before shipping (renames, inferred annotations, inferred types, removed text). Parameter descriptions in `todo` need to be written by someone who knows the API."}