Server definition
- Hash
- sha256:7d9b9520bc82a8fdfd414e1a0a4e8846954cda805b2a1a6a056754c4104d3c8b
- What it is
- What a remote MCP server returned when asked what it offers: 87 tools
The blob, as servednamed by its sha256
{
"instructions": "TaxSort MCP — Personal tax transaction storage, monetized via Tollbooth DPYC Bitcoin Lightning micropayments.\n\n## Onboarding\n1. Call taxsort_request_npub_proof(patron_npub=...) to start identity verification\n2. Reply to the Nostr DM with any passphrase to prove npub ownership\n3. Call taxsort_receive_npub_proof(patron_npub=...) to complete verification\n\n## Workflow\n1. taxsort_create_session() → get a session_id\n2. taxsort_import_csv(session_id, content, filename) → parse and store raw transactions\n3. taxsort_get_transactions(session_id, unclassified_only=true) → fetch pages for FE classification\n4. taxsort_save_classifications(session_id, classifications=[...]) → write back AI/manual results\n5. taxsort_get_transactions(session_id) → review classified results\n6. taxsort_get_summary(session_id, group_by='taxline') → IRS line totals\n8. taxsort_create_share_token(session_id) → share with spouse\n\n## Pricing\nTool prices are set dynamically by the operator's pricing model. Use `taxsort_check_price` to preview costs.\n\n## Troubleshooting Tool Failures\n\nWhen a tool call fails, **read the error message** — it tells you what went wrong and what to do next. Common causes:\n\n- **proof is required** → Call `request_npub_proof` then `receive_npub_proof` to prove npub ownership. The cache expires after ~1 hour; renew with a fresh request/receive cycle.\n- **Insufficient credit balance** → Call `purchase_credits` to top up.\n- **Operator credentials not delivered yet** → This is a lifecycle state, not an error. The operator needs to deliver API credentials via Secure Courier. Do NOT tell the patron to 'fix the deployment' or 'inject environment variables' — credential delivery is a Secure Courier flow, not a platform configuration issue.\n- **Service unavailable / persistence layer unreachable / only bootstrap tools** → The MCP is warming up after idle (serverless cold start). This is normal — retry in 10-15 seconds. Do NOT diagnose as an infrastructure outage or suggest the operator check their deployment. The second request almost always succeeds.\n- **Upstream API authentication failure** → Only if the error explicitly mentions token expiry or an upstream auth error.\n\n**IMPORTANT — Don't Pester Your Customer:** Do NOT ask the patron to re-authenticate, re-authorize, or re-do OAuth unless the error message specifically says the upstream token is expired or invalid. Token expiry is only one of many possible causes. Speculatively re-running OAuth or credential flows wastes the patron's time and is the opposite of what DPYC stands for.\n\n## Secure Courier — Human in the Loop\n\nAll Secure Courier flows (`request_credential_channel` / `receive_credentials`, `request_npub_proof` / `receive_npub_proof`) require a human to read a Nostr DM and reply manually. After calling a `request_*` tool, **STOP and wait** for the user to confirm they have replied. Do NOT poll, retry, or speculatively call `receive_*` — each receive call **destructively drains** all DMs from the relay. If you call it before the human replies, their message will be lost. One request, one wait, one receive.",
"tools": [
{
"description": "Generate a patron's account statement at this operator.\n\nReturns the patron's purchase history, active credit tranches,\nper-tool usage breakdown, and recent daily usage logs. This is\nthe patron's spending account — not the operator's Authority\ntax balance.\n\nFree — no credits consumed. Proof of npub ownership is required\nto prevent statement-scraping of arbitrary patrons.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"days": {
"default": 30,
"description": "Number of days of daily usage history to include (default 30).",
"type": "integer"
},
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"npub": {
"description": "The patron's Nostr public key (npub1...).",
"type": "string"
}
},
"required": [
"npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_account_statement",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Generate a visual SVG infographic of your account statement.\n\nReturns the same data as account_statement, rendered as a dark-themed\nSVG graphic with balance hero, metrics cards, health gauge, tranche\ntable, and tool usage breakdown. Costs 1 api_sat per call. Proof is\nverified by ``debit_or_deny`` before any cost is incurred.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"days": {
"default": 30,
"description": "Number of days of daily usage history to include (default 30).",
"type": "integer"
},
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"npub": {
"description": "The Nostr public key (npub1...) whose statement to render.",
"type": "string"
}
},
"required": [
"npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_account_statement_infographic",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check this operator's adoption-request status at a chosen Authority.\n\nFree. Polls the Authority MCP-to-MCP for the status of this operator's\nrequest (pending / approved / rejected / provisioned).",
"inputSchema": {
"additionalProperties": false,
"properties": {
"authority_npub": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
}
},
"required": [
"authority_npub"
],
"type": "object"
},
"name": "taxsort_adoption_status",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Apply rules to unclassified transactions in a session.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_apply_rules",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Ask the Financial Advisor about using TaxSort.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"history": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"question": {
"type": "string"
},
"session_id": {
"default": "",
"type": "string"
}
},
"required": [
"question"
],
"type": "object"
},
"name": "taxsort_ask_advisor",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Ask the Tax Code Researcher about IRS provisions.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"history": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"question": {
"type": "string"
},
"session_id": {
"default": "",
"type": "string"
}
},
"required": [
"question"
],
"type": "object"
},
"name": "taxsort_ask_tax_researcher",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check this operator's tax balance at the Authority.\n\nReturns the sats available for certifying patron credit purchases.\nWhen this balance reaches zero, patron top-ups cannot be certified\nand the operator must call purchase_credits on the Authority.\n\nThis is the operator's own funding — not a patron balance. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_check_authority_balance",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check a patron's credit balance at this operator.\n\nThis is the patron's spending balance — credits purchased via\nLightning for tool calls at this operator. For the operator's\nown balance at the Authority (needed to certify patron purchases),\nuse authority_check_balance instead.\n\nFree — no credits required. Proof of npub ownership is required\nto prevent anyone-with-the-registry from enumerating balances.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"npub": {
"description": "The Nostr public key (npub1...) whose balance to check.",
"type": "string"
}
},
"required": [
"npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_check_balance",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check the payment status of a Lightning invoice.\n\nCall after paying the invoice from purchase_credits.\nFree — no credits required. Proof of npub ownership is required\nto prevent credit-grant front-running by an observer of the\ninvoice ID.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"invoice_id": {
"description": "The invoice ID returned by purchase_credits.",
"type": "string"
},
"npub": {
"description": "The Nostr public key (npub1...) that purchased the invoice.",
"type": "string"
}
},
"required": [
"invoice_id",
"npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_check_payment",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Preview the effective cost of a tool call.\n\nShows the base cost and any constraint effects (discounts, free\ntrials, surge pricing). Free — no credits required.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"type": "string"
},
"tool_id": {
"description": "Either the tool's UUID (from the pricing model) or a\nbare capability string (e.g. ``\"deal_scenario\"``). FE\ncallers usually have the capability name; this resolves\nboth so the FE doesn't need to derive UUIDs locally.",
"type": "string"
},
"tool_kwargs": {
"default": "",
"description": "Optional JSON object with tool call parameters\nfor ad valorem / categorical-multiplier pricing preview\n(e.g. '{\"amount_sats\": 5000}' or\n'{\"difficulty\": \"sovereign\", \"mode\": \"live\"}').",
"type": "string"
}
},
"required": [
"tool_id"
],
"type": "object"
},
"name": "taxsort_check_price",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check whether a proof grant is still valid.\n\nMirrors ``check_oauth_status`` for the npub-proof flow: a calling\nagent can ask \"will my next paid call accept this dpop_token?\"\nbefore burning credits on a guaranteed failure. Expiry is read from\nthe grant itself; the only store consulted is the patron's\nrevocation watermark.\n\nFree, no side effects — touches no relay.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"description": "Required. The grant envelope returned by\n``receive_npub_proof``.",
"type": "string"
},
"patron_npub": {
"default": "",
"description": "Required. The patron's npub (npub1...).",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_check_proof_status",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check if the unlock response is valid.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"response": {
"type": "string"
}
},
"required": [
"response"
],
"type": "object"
},
"name": "taxsort_check_unlock",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Delete all transactions and classifications for a session, so CSVs can be re-imported.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_clear_transactions",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Count how many transactions match a rule pattern (live preview).",
"inputSchema": {
"additionalProperties": false,
"properties": {
"amount_operator": {
"default": "",
"type": "string"
},
"amount_value": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null
},
"description_pattern": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id",
"description_pattern"
],
"type": "object"
},
"name": "taxsort_count_rule_matches",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Create a GitHub issue for bug reports, feature requests, or feedback.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"body": {
"default": "",
"type": "string"
},
"category": {
"default": "feedback",
"type": "string"
},
"contact": {
"default": "",
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"title": {
"type": "string"
}
},
"required": [
"title"
],
"type": "object"
},
"name": "taxsort_create_feedback_issue",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Create a new TaxSort session for a tax year.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"label": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"tax_year": {
"default": 0,
"type": "integer"
}
},
"type": "object"
},
"name": "taxsort_create_session",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Create a share token so another user can access this session.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"expires_days": {
"default": 30,
"type": "integer"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_create_share_token",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Delete all transactions and classifications for a specific imported account.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"account": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id",
"account"
],
"type": "object"
},
"name": "taxsort_delete_account_transactions",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Remove a classification, reverting the transaction to unclassified.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
},
"transaction_id": {
"type": "string"
}
},
"required": [
"session_id",
"transaction_id"
],
"type": "object"
},
"name": "taxsort_delete_classification",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Delete a coupon. Cascades to all patron redemptions.\n\nAny chain step referencing the deleted coupon_id becomes a\nno-op (the constraint returns neutral on unknown ids) — the\nStudio surfaces orphan references as warnings.\n\nRESTRICTED to operator — requires proof.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"coupon_id": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
}
},
"required": [
"coupon_id"
],
"type": "object"
},
"name": "taxsort_delete_coupon",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Delete a custom category.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"category_id": {
"type": "integer"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
}
},
"required": [
"category_id"
],
"type": "object"
},
"name": "taxsort_delete_custom_category",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Remove a single operator secret field.\n\nDeletes one key from the operator's encrypted credential blob without\ntouching the others — the field-level counterpart to\n``forget_credentials``, which wipes the whole row. Use it to retire a\nleftover after an SDK cutover (a Prefect key after Modal, or a stored\nbut untemplated orphan like ``anthropic_api_key``) without taking the\noperator down for a full re-delivery.\n\nStored-but-untemplated fields are first-class: the delete is keyed on\nwhat is vaulted, not on what the current template declares. Idempotent\n— already-absent fields report ``removed: false`` without rewriting\nthe vault. RESTRICTED to the operator — requires proof (nsec-signed\nkind-27235 or a cached dpop_token phrase); patron proofs are rejected.\nA deletion is as destructive as a write.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Operator proof for this tool.",
"type": "string"
},
"field": {
"description": "The operator credential field to remove (templated or not).",
"type": "string"
}
},
"required": [
"field",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_delete_operator_credential",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Remove a single patron credential field.\n\nDeletes one field from stored credentials without affecting\nother fields. Free. Proof of npub ownership is required —\nthis is a write to the patron's sensitive credential vault.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"field": {
"description": "The credential field name to remove.",
"type": "string"
},
"npub": {
"description": "The patron's Nostr public key (npub1...).",
"type": "string"
}
},
"required": [
"npub",
"dpop_token",
"field"
],
"type": "object"
},
"name": "taxsort_delete_patron_credential",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Delete a classification rule by ID.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"rule_id": {
"type": "integer"
}
},
"required": [
"rule_id"
],
"type": "object"
},
"name": "taxsort_delete_rule",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Remove a coupon from this patron's redemption list.\n\nCosmetic only — the coupon itself still exists at the operator,\nand the patron can re-redeem the same code later while the\nwindow allows. Free — requires proof of ``npub``.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"coupon_id": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"type": "string"
}
},
"required": [
"npub",
"coupon_id"
],
"type": "object"
},
"name": "taxsort_forget_coupon",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Delete vaulted credentials for a specific service and npub.\n\nFor operator credentials, pass the operator's own npub. For patron\ncredentials, pass the patron's npub. Always requires proof of\nnpub ownership — a deletion is as destructive as a write.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"npub": {
"description": "The Nostr public key (npub1...) whose credentials to forget.",
"type": "string"
},
"service": {
"description": "The credential service to forget.",
"type": "string"
}
},
"required": [
"service",
"npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_forget_credentials",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List all accounts in this session with their types and transaction counts.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_get_accounts",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Fetch transactions with the same amount within ±days of a date. Used by the classifier to detect duplicates from overlapping CSV imports.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"amount": {
"type": "number"
},
"date": {
"type": "string"
},
"days": {
"default": 14,
"type": "integer"
},
"dpop_token": {
"default": "",
"type": "string"
},
"exclude_id": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id",
"amount",
"date"
],
"type": "object"
},
"name": "taxsort_get_amount_neighbors",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get the Anthropic API key for FE-driven classification.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_get_anthropic_key",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get aggregated API usage statistics for cost analysis.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"default": "",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_get_api_usage_stats",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get custom categories defined by this user.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_get_custom_categories",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get the GitHub token for creating issues in the taxsort-mcp repo.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_get_github_token",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get import statistics for a session.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_get_import_stats",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Read an npub's public Nostr profile (NIP-01 kind-0 metadata).\n\nFree, no proof — the data is already public on relays. Returns the\nlatest metadata fields (name, display_name, about, picture, banner,\nnip05, website, lud16) or an empty profile if none is published.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"npub": {
"default": "",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_get_nostr_profile",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Generate a Merkle inclusion proof that a patron's balance was\nincluded in a Bitcoin-notarized snapshot.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"notarization_id": {
"description": "The notarization record ID.",
"type": "string"
},
"npub": {
"description": "The patron's Nostr public key (npub1...).",
"type": "string"
}
},
"required": [
"notarization_id",
"npub"
],
"type": "object"
},
"name": "taxsort_get_notarization_proof",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Report this operator's configuration readiness.\n\nShows which operator settings are configured, which are missing,\nand how to deliver each missing value. For patron-level credential\nstatus, use get_patron_onboarding_status instead. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_get_operator_onboarding_status",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List stored patron credential field names (not values).\n\nReturns the names of fields stored for a patron, plus each\nfield's ``delivered_at`` ISO-8601 timestamp when known (null\nfor secrets vaulted before timestamps were recorded). Values\nare never exposed — use this to verify which fields are\nconfigured and how old each one is. Free. Proof of npub\nownership is required: the list of configured fields is itself\nsensitive (reveals which integrations a patron has set up).",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"npub": {
"description": "The patron's Nostr public key (npub1...).",
"type": "string"
}
},
"required": [
"npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_get_patron_credential_fields",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Report a patron's credential readiness for this operator.\n\nFor set-once services (eXcalibur, TheBrain), shows which patron\nsecrets are configured and which are missing. For dynamic/OAuth2\nservices (Schwab), reports that no patron credentials are needed.\nFree. Proof of npub ownership is required because credential\npresence is sensitive information about the patron's setup.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "A kind-27235 Nostr event signed by patron_npub for this tool.",
"type": "string"
},
"patron_npub": {
"description": "The patron's Nostr public key (npub1...).",
"type": "string"
}
},
"required": [
"patron_npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_get_patron_onboarding_status",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get the active pricing model for this operator. Free.\n\nIf no model exists, self-initializes a scaffold with all\nregistered tools at 0 sats. No economic data from code.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_get_pricing_model",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get all classification rules for the current patron.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"default": "",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_get_rules",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get session details and summary stats.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_get_session",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get a grouped spending summary for tax reporting.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"group_by": {
"default": "taxline",
"type": "string"
},
"month": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"scope": {
"default": "tax",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_get_summary",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get transactions for a session with optional filters.\n\nReturns raw transactions LEFT JOINed with their classifications.\nUse unclassified_only=true to fetch pages of transactions needing\nclassification by the FE. Use date_from/date_to for date range queries.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"account": {
"default": "",
"type": "string"
},
"category": {
"default": "",
"type": "string"
},
"date_from": {
"default": "",
"type": "string"
},
"date_to": {
"default": "",
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"limit": {
"default": 200,
"type": "integer"
},
"month": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"offset": {
"default": 0,
"type": "integer"
},
"search": {
"default": "",
"type": "string"
},
"session_id": {
"type": "string"
},
"subcategory": {
"default": "",
"type": "string"
},
"unclassified_only": {
"default": false,
"type": "boolean"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_get_transactions",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Server-side filtered, grouped, sorted, paginated transactions.\n\ngroup_sort controls the order of groups (A-Z vs Z-A).\nsort_col + sort_dir control row order within each group.\nWhen group_by='none', only sort_col + sort_dir apply.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"account": {
"default": "",
"type": "string"
},
"category": {
"default": "",
"type": "string"
},
"classified_only": {
"default": false,
"type": "boolean"
},
"dpop_token": {
"default": "",
"type": "string"
},
"group_by": {
"default": "none",
"type": "string"
},
"group_sort": {
"default": "asc",
"type": "string"
},
"month": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"page": {
"default": 0,
"type": "integer"
},
"page_size": {
"default": 200,
"type": "integer"
},
"search": {
"default": "",
"type": "string"
},
"session_id": {
"type": "string"
},
"sort_col": {
"default": "date",
"type": "string"
},
"sort_dir": {
"default": "asc",
"type": "string"
},
"subcategory": {
"default": "",
"type": "string"
},
"unclassified_only": {
"default": false,
"type": "boolean"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_get_transactions_paged",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Import a CSV file into a session. Content is the raw CSV text. Optional account_name overrides the filename-derived account.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"account_name": {
"default": "",
"type": "string"
},
"content": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"filename": {
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id",
"content",
"filename"
],
"type": "object"
},
"name": "taxsort_import_csv",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Return canonical (tool_id, mcp_name, …) for every tool the wheel exposes.\n\nThe authoritative source for any client (Studio, agents, FE)\nthat needs to know how this MCP identifies its tools.\nReconcile uses this output to UUID-join against the stored\npricing model — no name-based UUID derivation, no guessing.\n\nIncludes both ToolIdentity-seeded tools and any UUID recorded by\n``@paid_tool`` that is missing from the registry. The latter appear\nwith ``registered: false`` (and in the top-level ``unregistered``\narray) so Reconcile can flag deploy drift instead of silently\nreporting clean when a live tool was never seeded (#174).\n\nIf the operator renames a function or rebrands a slug, the\nmcp_name in this output changes but tool_id stays. That's the\nwhole point of the canonical-UUID design.\n\nAlso diffs the live FastMCP wire surface against the registry.\nTools exposed on the wire but absent from the registry appear in\n``unregistered`` so Reconcile can flag deploy drift instead of\nsilently under-reporting (issue #175).\n\nFree, no side effects.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_list_canonical_identities",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List all available constraint types and their parameter schemas.\n\nReturns the type, category, description, and parameter specs for\nevery constraint that can be used in a pricing pipeline.\nFree — no credits required.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_list_constraint_types",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List every coupon this operator has minted (newest first).\n\nEach row carries the current ``times_redeemed`` counter — the\nStudio renders a progress bar from this against ``total_uses``.\nRESTRICTED to operator — requires proof.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_list_coupons",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List feedback issues submitted by this patron.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_list_feedback_issues",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List the coupons this patron has redeemed on this operator.\n\nReturns both active and exhausted redemptions with a per-row\n``status`` (``active`` / ``window_closed`` / ``patron_limit`` /\n``total_limit``). Free — requires proof of ``npub``.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"type": "string"
}
},
"required": [
"npub"
],
"type": "object"
},
"name": "taxsort_list_my_coupons",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List recent Bitcoin notarization records.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"limit": {
"default": 20,
"description": "Maximum records to return (default 20).",
"type": "integer"
},
"status": {
"default": "",
"description": "Optional filter (e.g., 'submitted', 'confirmed').",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_list_notarizations",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "List all sessions owned by the current patron.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_list_sessions",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Load a shared session via a share token.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"share_token": {
"type": "string"
}
},
"required": [
"share_token"
],
"type": "object"
},
"name": "taxsort_load_share_token",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Create a new operator-owned discount coupon.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"discount_percent": {
"description": "Percentage off the base price (0-100).",
"type": "number"
},
"dpop_token": {
"default": "",
"type": "string"
},
"name": {
"description": "The catchy code patrons type to redeem\n(operator-scoped uniqueness).",
"type": "string"
},
"total_uses": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"description": "Aggregate cap across all patrons (default None =\nunlimited)."
},
"uses_per_patron": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": 1,
"description": "How many tool calls one patron can claim the\ndiscount on (default 1; pass null/None for unlimited\nwithin the window)."
},
"valid_from": {
"description": "ISO-8601 datetime when the coupon becomes active.",
"type": "string"
},
"valid_until": {
"description": "ISO-8601 datetime when the coupon expires.",
"type": "string"
}
},
"required": [
"name",
"discount_percent",
"valid_from",
"valid_until"
],
"type": "object"
},
"name": "taxsort_mint_coupon",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Build a Merkle tree of all patron balances and submit the root\nto Bitcoin via OpenTimestamps.\n\nOperator-only background task. Bitcoin confirmation takes 1-6 hours.\nFree — no credits required.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_notarize_ledger",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Describe the DPYC ecosystem via the Oracle. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_oracle_about",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get the current DPYC certification tax rate. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_oracle_get_tax_rate",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get DPYC onboarding instructions from the Oracle. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_oracle_how_to_join",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Look up a DPYC community member by npub. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"npub": {
"type": "string"
}
},
"required": [
"npub"
],
"type": "object"
},
"name": "taxsort_oracle_lookup_member",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Get active network advisories from the Oracle. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_oracle_network_advisory",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Publish a CLIENT-SIGNED kind-0 profile to relays for an npub.\n\nThe wheel never holds a patron nsec. The frontend signs the kind-0\nmetadata event with the patron's session key or a NIP-07 extension and\npasses the signed event (JSON) here; the wheel verifies the signature\nmatches the npub, then relays it to public relays. The signature is the\nauthorization — no proof token, no key custody. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"npub": {
"default": "",
"description": "The patron's Nostr public key the event must be signed by.",
"type": "string"
},
"signed_event": {
"default": "",
"description": "A JSON-encoded, client-signed kind-0 event.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_publish_nostr_profile",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Buy credits via Bitcoin Lightning.\n\nCreates a Lightning invoice. Pay it with any Lightning wallet,\nthen call check_payment to confirm. Proof of npub ownership is\nrequired so credits land in the correct ledger.\n\nFree — no credits required to call.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"amount_sats": {
"default": 1000,
"description": "Satoshis to purchase (default 1000).",
"type": "integer"
},
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"npub": {
"description": "The Nostr public key (npub1...) the credits will fund.",
"type": "string"
}
},
"required": [
"npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_purchase_credits",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Pick up credentials from the Secure Courier.\n\nCompletes the CREDENTIAL-DELIVERY flow (the ownership-proof\ncounterpart is ``receive_npub_proof``).\n\n**Call this only after the user confirms they have replied.**\nDeterministic, one-shot retrieval: name the response you want with\n``(sender_npub, service, dpop_token)`` and the tool drains ONLY the\nrendezvous relay that channel was pinned to. Every popped DM with the\nwrong session phrase is deleted and its sender is NACK'd; the first DM\nwith the matching phrase is accepted (ACK'd) and the scan stops. If\nnone match, the queue is drained and a ``courier_not_found`` result is\nreturned. Do NOT poll, loop, or retry.\n\nIf a credential_card (ncred1...) is provided, it is redeemed directly\nwithout any relay access (dpop_token not required for that path). On\nsuccess, the payment processor client is reinitialized from the new\ncredentials — no server restart needed.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"credential_card": {
"default": "",
"description": "Optional. An ncred1... card to redeem directly\n(bypasses the relay drain; dpop_token not needed).",
"type": "string"
},
"dpop_token": {
"default": "",
"description": "Required. The session phrase returned by\nrequest_credential_channel for this exact channel.",
"type": "string"
},
"sender_npub": {
"default": "",
"description": "Required. The npub that sent the credentials.",
"type": "string"
},
"service": {
"default": "",
"description": "Required. The credential service name (must match\nthe service used in request_credential_channel).",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_receive_credentials",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Receive npub ownership confirmation from a patron.\n\nCompletes the npub-OWNERSHIP-PROOF flow (the credential-delivery\ncounterpart is ``receive_credentials``).\n\n**Call this only after the user confirms they have replied.**\nDeterministic, one-shot retrieval: name the response with\n``(patron_npub, dpop_token)`` — the ``dpop_token`` being the value\nreturned by ``request_npub_proof``. The tool drains ONLY the pinned\nrendezvous relay that challenge was published on, stopping at the DM\nwhose phrase matches. Mismatched DMs are deleted and NACK'd (without\nrevealing the expected phrase). If called before the user replies,\ntheir message will never be found. Do NOT poll, loop, or retry.\n\nThe signed DM itself proves npub ownership (the patron's nsec\nsigned it). On success, returns a new ``dpop_token``: an\nOperator-signed **proof grant envelope** ``{\"grant\": …, \"nonce\": …}``\nbound to the patron, this challenge, and the duration the patron\nnamed. The calling application MUST remember that whole string and\npass it as ``dpop_token`` on every subsequent paid tool call. The\ngrant is self-verifying; nothing about it is stored here. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"description": "Required. The dpop_token returned by request_npub_proof.",
"type": "string"
},
"patron_npub": {
"default": "",
"description": "Required. The patron's npub to receive proof from.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_receive_npub_proof",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Claim a coupon by its name (the code the operator shared).\n\nLooks up the operator's coupon by ``code``, validates the window\nand total cap, and records a per-patron redemption row.\nSubsequent paid tool calls on this MCP auto-apply the discount\nuntil ``uses_per_patron`` is exhausted.\n\nFree — no credits required. Requires proof of ``npub``.\nIdempotent: redeeming the same code twice returns the existing\nredemption.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"type": "string"
}
},
"required": [
"npub",
"code"
],
"type": "object"
},
"name": "taxsort_redeem_coupon",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Report Anthropic API usage from FE classification for cost tracking.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"calls": {
"type": "integer"
},
"dpop_token": {
"default": "",
"type": "string"
},
"input_tokens": {
"type": "integer"
},
"model": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"output_tokens": {
"type": "integer"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id",
"calls",
"input_tokens",
"output_tokens"
],
"type": "object"
},
"name": "taxsort_report_api_usage",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "File a field report about this service as a GitHub issue on the operator's repo.\n\nFound a tool's metadata or response wrong or confusing? Report it where the tool\nlives. The **author of record is your npub** — no npub / no proof, no issue — and it\nis stamped into the issue so the report is attributed to you, not the operator. Costs\na small fee (a free write to an issue tracker would be abused). The report is PUBLIC\nand goes to the maintainers' normal triage; nothing is verified here.\n\nReturns the filed issue's repo, number, and url. If this operator has not enabled\nfield reports, returns an \"issue reporting not configured\" situation and you are not\ncharged.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"body": {
"description": "The details — which tool, what was wrong, what you expected.",
"type": "string"
},
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"npub": {
"description": "Your Nostr public key (npub1...); the report's author of record.",
"type": "string"
},
"title": {
"description": "One-line summary of the problem.",
"type": "string"
},
"tool_name": {
"default": "",
"description": "Optional: the specific tool the report is about\n(e.g. \"schwab_get_option_chain\").",
"type": "string"
}
},
"required": [
"npub",
"dpop_token",
"title",
"body"
],
"type": "object"
},
"name": "taxsort_report_issue",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Ask a chosen Authority to adopt this operator (deferred courtship).\n\nRESTRICTED to the operator — requires proof the caller controls this\noperator's npub. Resolves the Authority's MCP endpoint from the\ncommunity registry, mints an inline ownership proof with this\noperator's nsec, and delivers the request MCP-to-MCP. The Authority\nrecords it as pending; its owner approves on their own time. Poll\n``adoption_status`` for progress; the operator flips to ``ready``\nonce the Authority provisions it.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"authority_npub": {
"description": "npub of the Authority to request adoption from.",
"type": "string"
},
"dpop_token": {
"default": "",
"description": "operator-npub ownership proof (inline kind-27235 or cached token).",
"type": "string"
},
"note": {
"default": "",
"description": "optional message for the Authority owner.",
"type": "string"
},
"service_url": {
"default": "",
"description": "this operator's MCP endpoint (advertised to the Authority).",
"type": "string"
}
},
"required": [
"authority_npub"
],
"type": "object"
},
"name": "taxsort_request_adoption",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Open a Secure Courier channel for credential delivery.\n\nThis is the CREDENTIAL-DELIVERY flow — use it to hand over a service\nsecret (API keys, tokens). To merely prove you control an npub (the\nusual answer to a ``proof_required`` error), use ``request_npub_proof``\ninstead. Note: dynamic/OAuth2 services (e.g. Schwab) need NO couriered\nsecret — check ``service_status`` first.\n\nSends a welcome DM with a credential template. The recipient\nmust read the DM in their Nostr client, fill in the fields,\nand reply manually. **This is a human-in-the-loop flow.**\n\nAfter calling this tool, STOP and tell the user what to do.\nWait for the user to confirm they have replied before calling\n``receive_credentials``. Do NOT poll or retry — each\n``receive_credentials`` call destructively drains the relay\nmailbox.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"sender_npub": {
"default": "",
"description": "Required. The npub to send the template to.",
"type": "string"
},
"service": {
"default": "",
"description": "Required. The credential service name (e.g.,\nfrom get_operator_onboarding_status or get_patron_onboarding_status).",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_request_credential_channel",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Request npub ownership proof from a patron via Nostr DM.\n\nThis is the npub-OWNERSHIP-PROOF flow — use it when a call returns\n``proof_required``. It proves the caller controls an npub; it does\nNOT deliver any service secret. To hand an operator its API keys or\nOAuth secrets, use ``request_credential_channel`` instead.\n\nSends a challenge DM that the patron must sign and reply to\nusing their Nostr client. **This is a human-in-the-loop flow.**\n\nAfter calling this tool, STOP and tell the user to check their\nNostr client and reply to the challenge. Wait for the user to\nconfirm they have replied before calling ``receive_npub_proof``.\nDo NOT poll or retry — each ``receive_npub_proof`` call\ndestructively drains the relay mailbox.\n\n**Returns** a ``dpop_token`` — the one-time challenge nonce shown in\nthe DM. Pass it to ``receive_npub_proof`` to collect the reply. It\nis a matching token, not a credential: on its own it authorizes\nnothing.\n\n**Lifecycle:** ``receive_npub_proof`` returns the proof grant, which\nexpires after the duration the patron named in their reply. When it\nexpires, call ``request_npub_proof`` again for a fresh challenge,\nthen wait for the user, then call ``receive_npub_proof``.\n\nFree.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"patron_npub": {
"default": "",
"description": "Required. The patron's npub to request proof from.",
"type": "string"
},
"reason": {
"default": "",
"description": "Optional. A human-readable purpose for the request\n(\"I'm working on your request XYZ and need the Operator to do\nABC for you\"). Signed into the provenance attestation and shown\nin the DM, so the recipient sees *why* they are being asked —\nespecially useful when the signer is unknown to them.",
"type": "string"
},
"verify_at": {
"default": "",
"description": "Optional. A free-form statement of WHERE you (the\ninitiating agent) already showed this proof's one-time code to\nthe user — a URL, or \"your Claude.ai conversation\", \"the Grok\nsession\". The OAuth 2.0 Device Grant ``verification_uri``,\ngeneralized: the user approves only if the code in the DM matches\nthe one you displayed there, so an unsolicited request they've\nnever seen is refused. Signed into the attestation.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_request_npub_proof",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Request a session unlock after timeout.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_request_unlock",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Delete all classifications but keep the imported transactions.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_reset_classifications",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Erase all pricing models and restore a viable default.\n\nDeletes every stored model, then self-initializes a fresh one\nfrom the tool registry — all tools at 0 sats with proper UUIDs.\nReturns the new model.\n\nRESTRICTED to operator — requires proof (nsec-signed).",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_reset_pricing_model",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Credit a patron's ledger from a BTCPay-settled invoice.\n\n**RESTRICTED to the operator** — the operator owns the books and is\nthe only party who can issue a manual credit grant. Patrons who\nbelieve they paid but never got credits must escalate to the\noperator's support, who then invokes this tool on their behalf.\n\nUse cases: cold-start vault races during check_payment, ncred\ndelivery hiccups, patrons closing Top-Off sheets before settle,\nany infrastructure incident that left an invoice settled at BTCPay\nbut uncredited on the operator's ledger.\n\nIdempotent — if the invoice is already credited (in the patron's\n``credited_invoices``), returns success with credits_granted=0.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "A kind-27235 Nostr event signed by the OPERATOR's nsec\nfor this tool. Patron proofs are rejected.",
"type": "string"
},
"invoice_id": {
"description": "The BTCPay invoice ID to verify and credit.",
"type": "string"
},
"patron_npub": {
"description": "The patron's npub whose ledger receives the grant.",
"type": "string"
}
},
"required": [
"invoice_id",
"patron_npub",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_restore_credits",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Prepare this operator's database schema again, ignoring the breadcrumb.\n\nDiagnostic / recovery tool for when Neon keeps answering 4xx and the\noperator suspects a table or grant is missing. Every statement is\nidempotent, so a clean re-run is harmless; the breadcrumb is rewritten\nat the end. Returns one step per concern, with Neon's own error text\ninline for any that failed.\n\nRESTRICTED to operator — requires proof (nsec-signed).",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_restore_neon_schema",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Bulk write classifications from the FE.\n\nclassifications is a JSON array of objects, each with:\n - id: raw_transaction_id\n - category, subcategory (required)\n - confidence, reason, merchant, description_override (optional)\n - classified_by: 'ai' | 'rule' | 'manual' (default 'ai')",
"inputSchema": {
"additionalProperties": false,
"properties": {
"classifications": {
"default": "[]",
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_save_classifications",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Add a custom category/subcategory (e.g. Personal / Auto Gas).",
"inputSchema": {
"additionalProperties": false,
"properties": {
"category": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"subcategory": {
"type": "string"
}
},
"required": [
"category",
"subcategory"
],
"type": "object"
},
"name": "taxsort_save_custom_category",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Create a classification rule.\n\nProvide description_pattern (regex matched case-insensitively against\nthe transaction description), category, and subcategory. Optionally add\namount_operator (lt, lte, gt, gte, eq, neq) and amount_value to filter\nby amount. When the compound constraint matches, category, subcategory,\nand optionally description (new_description) are written.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"amount_operator": {
"default": "",
"type": "string"
},
"amount_value": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null
},
"category": {
"type": "string"
},
"description_pattern": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"new_description": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"default": "",
"type": "string"
},
"subcategory": {
"type": "string"
}
},
"required": [
"description_pattern",
"category",
"subcategory"
],
"type": "object"
},
"name": "taxsort_save_rule",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check the health and configuration of this service. Free.",
"inputSchema": {
"additionalProperties": false,
"properties": {},
"type": "object"
},
"name": "taxsort_service_status",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Presence heartbeat. Returns who else is active in this session.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id"
],
"type": "object"
},
"name": "taxsort_session_heartbeat",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Check operator readiness. Returns the operator lifecycle\nstate and clear guidance on what to do next. Free.\n\nLifecycle states:\n- ready: Vault AND pricing model verified on this call. Proceed with\n tool calls — this is the answer the moment the vault is up.\n- warming_up: Persistence could not be reached on this call (a\n transient failure, seen, not assumed). Retry; the next call\n completes the bootstrap. Never reported on a clock.\n- misconfigured: Persistence rejected a query with a permanent SQL\n error (permission denied, missing relation). Paid tools will fail\n until the operator repairs the database — retrying does not help.\n- quota_exceeded: The persistence provider (Neon) answered HTTP 402 —\n the operator's database has exhausted its compute/storage quota, so\n the books are locked for billing. Paid tools fail; retrying does NOT\n help. The operator's Authority must restore capacity (upgrade the\n plan or wait for the quota reset). Free tools remain available.\n- not_registered: Operator has no Authority relationship yet. Call register_operator first.\n- no_identity: Operator nsec is not configured. Deployment issue.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"patron_npub": {
"default": "",
"description": "Optional. If supplied, the response includes an\n``upstream_oauth`` block with the patron's stored OAuth\ntoken expiry (runtime-derived from vault state) so a\nclient can refresh proactively rather than reactively\nafter a stale-token failure.",
"type": "string"
}
},
"type": "object"
},
"name": "taxsort_session_status",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Set an account's type: bank (checking/savings), card (credit/debit), investment, or loan.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"account_name": {
"type": "string"
},
"account_type": {
"type": "string"
},
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"session_id": {
"type": "string"
}
},
"required": [
"session_id",
"account_name",
"account_type"
],
"type": "object"
},
"name": "taxsort_set_account_type",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Set the active pricing model. RESTRICTED to operator.\n\nRequires a valid proof (Schnorr-signed kind-27235 event)\nproving the caller holds the operator's nsec.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"model_json": {
"type": "string"
}
},
"required": [
"model_json"
],
"type": "object"
},
"name": "taxsort_set_pricing_model",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Patch a coupon's editable fields.\n\nPass only the fields you want to change. To set a cap to\nunlimited (NULL in the schema), pass ``clear_uses_per_patron=true``\nor ``clear_total_uses=true``. Renaming the code is allowed —\nexisting patron redemption rows survive (they key on coupon id).\n\nRESTRICTED to operator — requires proof.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"clear_total_uses": {
"default": false,
"type": "boolean"
},
"clear_uses_per_patron": {
"default": false,
"type": "boolean"
},
"coupon_id": {
"type": "string"
},
"discount_percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null
},
"dpop_token": {
"default": "",
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"total_uses": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"uses_per_patron": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"valid_from": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"valid_until": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"coupon_id"
],
"type": "object"
},
"name": "taxsort_update_coupon",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Add or update a single operator secret field.\n\nMerges into the operator's stored credentials without touching the\nothers — the field-level counterpart to re-delivering the whole\nbundle over Secure Courier. Use it to rotate one secret (a reissued\n``btcpay_api_key``, say) without restating the six you did not\nchange, where any field omitted from a courier reply is destroyed.\n\nThe value is never echoed back. RESTRICTED to the operator —\nrequires proof (nsec-signed kind-27235 or a cached dpop_token\nphrase); patron proofs are rejected.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Operator proof for this tool.",
"type": "string"
},
"field": {
"description": "The operator credential field to set. Must be declared\nin the operator's credential template.",
"type": "string"
},
"value": {
"description": "The value to store.",
"type": "string"
}
},
"required": [
"field",
"value",
"dpop_token"
],
"type": "object"
},
"name": "taxsort_update_operator_credential",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Add or update a single patron credential field.\n\nMerges into existing stored credentials without affecting\nother fields. Useful for setting an account identifier\nafter OAuth, changing a default brain, etc. Free. Proof of\nnpub ownership is required — this is a write to the patron's\nsensitive credential vault.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"description": "Raw JSON of a kind-27235 Nostr event signed by npub —\nnot base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its\n`u` tag must hold THIS tool's exact name (from tools/list), not\nthe endpoint URL; content:\"\", created_at within 60s of now, and a\nrandom `nonce` tag recommended. Or a cached dpop_token phrase.",
"type": "string"
},
"field": {
"description": "The credential field name to set.",
"type": "string"
},
"npub": {
"description": "The patron's Nostr public key (npub1...).",
"type": "string"
},
"value": {
"description": "The value to store.",
"type": "string"
}
},
"required": [
"npub",
"dpop_token",
"field",
"value"
],
"type": "object"
},
"name": "taxsort_update_patron_credential",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
},
{
"description": "Verify a passphrase to unlock a timed-out session.",
"inputSchema": {
"additionalProperties": false,
"properties": {
"dpop_token": {
"default": "",
"type": "string"
},
"npub": {
"default": "",
"description": "Required. Your Nostr public key (npub1...) for credit billing.",
"type": "string"
},
"passphrase": {
"type": "string"
}
},
"required": [
"passphrase"
],
"type": "object"
},
"name": "taxsort_verify_passphrase",
"outputSchema": {
"additionalProperties": true,
"type": "object"
}
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:7d9b9520bc82a8fdfd414e1a0a4e8846954cda805b2a1a6a056754c4104d3c8b | sha256sum