Endpoints: 28,729MCP servers: 18,413Payout addresses: 2,071Paid calls: 1,559Letters: 14Defects: 1,336counted 3 min ago
teppi

Server definition

Hash
sha256:99bb38809e1064ca65c4edcca840601592a1448e4a04b13361c97da213bb97fa
What it is
What a remote MCP server returned when asked what it offers: 64 tools

The blob, as servednamed by its sha256

{ "instructions": "Schwab MCP — AI agent access to Charles Schwab brokerage data, monetized via DPYC Tollbooth Lightning micropayments.\n\n## Getting Started\n\n1. Call `session_status` to check your current session.\n2. **Operator setup** (one-time): The operator delivers Schwab API app credentials via Secure Courier with `service='schwab-operator'`:\n - Call `request_credential_channel(service=\"schwab-operator\", recipient_npub=<operator_npub>)`\n - Reply with JSON: `{\"app_key\": \"...\", \"secret\": \"...\"}`\n - Call `receive_credentials(sender_npub=<operator_npub>, service=\"schwab-operator\", dpop_token=<session phrase from the welcome DM>)` — all three are required\n\n3. **Patron onboarding** (per-user):\n - Call `begin_oauth(npub=<your_npub>)` to get an authorization URL\n - Open the URL in your browser and log in to Schwab\n - Call `check_oauth_status(npub=<your_npub>)` to confirm session activation\n - Call `get_account_numbers(npub=<your_npub>)` to see your accounts\n - Call `update_patron_credential(npub=<your_npub>, field=\"account_hash\", value=<hash>)` to set your preferred account\n\n## Returning Sessions\n\nDo NOT re-run `begin_oauth` pre-emptively. If a session may still be valid, attempt the data tool first; the operator refreshes tokens transparently. Only re-authorize when a call fails with `upstream_auth_refresh_needed`. A `pending` `check_oauth_status` is not evidence that an existing session has lapsed.\n\n## Credits Model\n\nTool calls are priced dynamically via the operator's pricing model. Use `check_balance` to see your balance and `check_price` to preview tool costs. Top up via `purchase_credits`.\n\n## History Endpoints\n\nOrder and transaction history are available via `get_orders`, `get_order`, `get_transactions`, and `get_transaction`. Default lookback is 30 days.\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": "schwab_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": "schwab_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": "schwab_adoption_status", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Start the OAuth2 authorization flow.\n\nReturns an authorization URL. Open it in a browser to log in\nand authorize. Then call ``check_oauth_status`` with the\nsame npub to complete. Free. Proof of npub ownership is\nrequired so an observer cannot DOS your account by\ninitiating OAuth flows in your name.\n\nDo NOT call this pre-emptively. If a session may still be valid,\nattempt the live tool call first and only begin OAuth when it\nfails with ``upstream_auth_refresh_needed``. A 'pending'\n``check_oauth_status`` is not evidence that an existing session\nhas lapsed.", "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.\nIts `u` tag must hold THIS tool's exact name (from\ntools/list), not the endpoint URL; content:\"\", created_at\nwithin 60s of now, and a random `nonce` tag recommended. Or a\ncached dpop_token phrase.", "type": "string" }, "npub": { "description": "Your DPYC patron npub (npub1...).", "type": "string" } }, "required": [ "npub", "dpop_token" ], "type": "object" }, "name": "schwab_begin_oauth", "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": "schwab_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": "schwab_check_balance", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Check whether the OAuth2 authorization flow has completed.\n\nCall after opening the authorization URL from ``begin_oauth``\nand completing the login in your browser. Free. Proof of npub\nownership is required: OAuth status exposes which upstream\nservices a patron has connected.\n\nA 'pending' result here does NOT prove an existing session has\nlapsed — it only reports this authorization attempt. To find out\nwhether a session still works, attempt the live call; fall back\nto ``begin_oauth`` only on an explicit\n``upstream_auth_refresh_needed`` error.", "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.\nIts `u` tag must hold THIS tool's exact name (from\ntools/list), not the endpoint URL; content:\"\", created_at\nwithin 60s of now, and a random `nonce` tag recommended. Or a\ncached dpop_token phrase.", "type": "string" }, "npub": { "description": "The same Nostr public key (npub1...) used in begin_oauth.", "type": "string" } }, "required": [ "npub", "dpop_token" ], "type": "object" }, "name": "schwab_check_oauth_status", "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": "schwab_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": "schwab_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": "schwab_check_proof_status", "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": "schwab_delete_coupon", "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": "schwab_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": "schwab_delete_patron_credential", "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": "schwab_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": "schwab_forget_credentials", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "List Schwab account numbers and their hash identifiers.\n\nCall after completing OAuth. Returns accounts with hash values\nneeded for brokerage data tools. Then call\n``update_patron_credential(field=\"account_hash\", value=<hash>)``\nto set your preferred account.\n\nFree (no api_sats deducted) but **proof-gated**: the caller must\nprove Schnorr-control of ``npub`` via ``request_npub_proof`` +\n``receive_npub_proof`` first, then pass the resulting token here.\nWithout the proof check, an attacker who knew a patron's public\nnpub could fetch that patron's Schwab account hashes (IDOR).", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "description": "Schnorr proof token issued by request/receive_npub_proof\nfor capability ``get_account_numbers``.", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" } }, "type": "object" }, "name": "schwab_get_account_numbers", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get the active Schwab account's current balance summary.\n\nPulls Schwab's account endpoint and returns four bold lines:\n\n **Cash Balance:** currentBalances.cashBalance\n **Buying Power:** currentBalances.buyingPower\n **Net Liquidation:** currentBalances.liquidationValue\n **Day P&L:** currentBalances.liquidationValue − initialBalances.liquidationValue\n\nDay P&L is the session change in mark-to-market equity (the canonical\nmeasure of \"how much did I make/lose today\"). Schwab's account\nresponse does not expose a single \"dayProfitLoss\" field — the\nconvention is to compute the delta against the start-of-day snapshot.\n\nTwo fallback guards apply to Day P&L:\n 1. Missing snapshot — if either initialBalances or currentBalances\n is absent or has a zero liquidationValue, Day P&L reports 0.0\n rather than treating zero as the baseline (which would print\n today's full equity as P&L).\n 2. Suspect snapshot — if the computed Day P&L is larger in\n absolute value than half of current liquidation value (e.g.\n $17,442 P&L on an $8,847 account), the initialBalances snapshot\n is treated as stale or partial and Day P&L reports 0.0. A\n legitimate 50%+ session change is implausible for any normal\n account; the tool underreports in the rare real-50% case rather\n than emitting nonsense in the more common stale-snapshot case.\n\nWhen Day P&L reads $0.00 on a session where you expect a real number,\none of those two guards fired. Cross-check against position-level P&L\nvia get_brokerage_positions.", "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": "schwab_get_brokerage_balances", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get full details for a single order by Schwab order ID.\n\nReturns the same one-line markdown format as get_brokerage_orders, with\nthe average fill price computed across all executionLegs:\n\n - **<orderId>** [<status>] <orderType> | <legs> | Price: $X @ $avg_fill |\n Filled: <qty> | <enteredTime>\n\nUse this when you already have an orderId (e.g., from\nget_brokerage_orders or from a fill notification) and want a single\ncrisp row rather than the full history list.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "order_id": { "description": "The Schwab order ID as returned by get_brokerage_orders.", "type": "string" } }, "required": [ "order_id" ], "type": "object" }, "name": "schwab_get_brokerage_order", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get order history for the active Schwab account.\n\nReturns one markdown row per order:\n\n - **<orderId>** [<status>] <orderType> | <leg1> / <leg2> / ... |\n Price: $X @ $avg_fill | Filled: <qty> | <enteredTime>\n\nEach leg formats as \"<instruction> <quantity>x <symbol>\" (e.g.\n\"BUY 1x AAPL\", \"SELL_TO_OPEN 5x AAPL 240315C00185000\"). The avg_fill\nsuffix is the average across all executionLegs.price values for the\norder; omitted if the order has no fills yet.\n\nDate-window default — when from_date and to_date are both blank, the\ntool defaults to the last 30 days (in UTC). Pass either parameter to\noverride; if you pass one, pass both.\n\nSchwab's order status enum (values you can pass to status_filter):\n AWAITING_PARENT_ORDER, AWAITING_CONDITION, AWAITING_STOP_CONDITION,\n AWAITING_MANUAL_REVIEW, ACCEPTED, AWAITING_UR_OUT, PENDING_ACTIVATION,\n QUEUED, WORKING, REJECTED, PENDING_CANCEL, CANCELED, PENDING_REPLACE,\n REPLACED, FILLED, EXPIRED, NEW.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "from_date": { "default": "", "description": "Start of window, ISO 8601 (e.g. \"2026-04-01T00:00:00.000Z\").\nEmpty string defaults to 30 days ago.", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "status_filter": { "default": "", "description": "Optional single Schwab status value (e.g. \"FILLED\",\n\"CANCELED\", \"WORKING\"). Empty string = all statuses.", "type": "string" }, "to_date": { "default": "", "description": "End of window, ISO 8601. Empty string defaults to now.", "type": "string" } }, "type": "object" }, "name": "schwab_get_brokerage_orders", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get current positions in the active Schwab account, with automatic\nvertical-spread detection.\n\nPulls Schwab's account endpoint with fields=\"positions\" and emits up to\nthree markdown sections, omitting any that are empty:\n\n ## Spreads — vertical spreads detected from paired option legs:\n - <underlying> <spread_type> (<short_strike>/<long_strike> P|C exp <date>,\n DTE <n>) | Credit: $X | Max Loss: $Y | Current: $Z | P&L: $W\n\n ## Options (unmatched) — single legs not paired into a spread:\n - <underlying> <strike> P|C exp <date> (DTE <n>) | Qty: ±N | Avg: $X |\n MktVal: $Y | P&L: $Z\n\n ## Equities — long/short share positions:\n - <symbol> | Qty: ±N | Avg: $X | Price: $Y | P&L: $Z\n\nQuantities are computed as (longQuantity − shortQuantity) — short positions\nshow as negative numbers in Qty.\n\nSpread detection is heuristic: legs of the same underlying with matching\nexpiration and put/call type, opposite long/short direction, and adjacent\nstrikes get paired. Anything that doesn't fit cleanly drops into Options\n(unmatched). The tool does not currently detect iron condors, butterflies,\nor calendars — those will appear as multiple Options (unmatched) rows.", "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": "schwab_get_brokerage_positions", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get full details for a single transaction by Schwab transaction ID.\n\nReturns the same one-line markdown format as get_brokerage_transactions:\n\n - **<activityId>** [<type>] <tradeDate> | <symbols/qtys> | Net: $<amount>\n\nUse this when you have a specific transactionId (from\nget_brokerage_transactions, a journal entry, or a confirmation) and want\nthe canonical row rather than scanning a history window.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "transaction_id": { "description": "The Schwab transaction ID as returned by\nget_brokerage_transactions (usually surfaced as `activityId`).", "type": "string" } }, "required": [ "transaction_id" ], "type": "object" }, "name": "schwab_get_brokerage_transaction", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get transaction history for the active Schwab account.\n\nReturns one markdown row per transaction:\n\n - **<activityId>** [<type>] <tradeDate> | <qty>x <symbol> | <qty>x <symbol> ... |\n Net: $<amount>\n\nSymbols come from the transaction's transferItems collection (one item\nper leg, e.g. equity bought + cash debit), with the per-leg amount as\nquantity. When no transferItems have symbols, the row falls back to the\ntransaction's description text in place of the symbol list.\n\nDate-window default — when from_date and to_date are both blank, the\ntool defaults to the last 30 days (in UTC). Pass both or neither.\n\nSchwab's transaction type enum (values you can pass to transaction_types):\n TRADE, RECEIVE_AND_DELIVER, DIVIDEND_OR_INTEREST, ACH_RECEIPT,\n ACH_DISBURSEMENT, CASH_RECEIPT, CASH_DISBURSEMENT, ELECTRONIC_FUND,\n WIRE_OUT, WIRE_IN, JOURNAL, MEMORANDUM, MARGIN_CALL, MONEY_MARKET,\n SMA_ADJUSTMENT. Empty string = all types.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "from_date": { "default": "", "description": "Start of window, ISO 8601 (e.g. \"2026-04-01T00:00:00.000Z\").\nEmpty string defaults to 30 days ago.", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "to_date": { "default": "", "description": "End of window, ISO 8601. Empty string defaults to now.", "type": "string" }, "transaction_types": { "default": "", "description": "Comma-separated Schwab transaction-type values.\nEmpty string = all types.", "type": "string" } }, "type": "object" }, "name": "schwab_get_brokerage_transactions", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get trading hours for one or more market types.\n\nReturns nested markdown — one block per market product Schwab knows\nabout within the requested categories:\n\n **<Product Name>** — OPEN | CLOSED\n Pre Market: YYYY-MM-DDTHH:MM — YYYY-MM-DDTHH:MM\n Regular Market: YYYY-MM-DDTHH:MM — YYYY-MM-DDTHH:MM\n Post Market: YYYY-MM-DDTHH:MM — YYYY-MM-DDTHH:MM\n\nSessions are emitted only when Schwab reports hours for them — a closed\nmarket on a weekend or holiday will have no session lines under it.", "inputSchema": { "additionalProperties": false, "properties": { "date": { "default": "", "description": "ISO date to check (e.g. \"2026-03-15\"). Defaults to today when\nempty. The response is for a single trading day — pass each date\nexplicitly if you need a multi-day forecast.", "type": "string" }, "dpop_token": { "default": "", "type": "string" }, "markets": { "default": "equity,option", "description": "Comma-separated market types. Schwab supports \"equity\",\n\"option\", \"bond\", \"future\", \"forex\". Unknown types are silently\ndropped by Schwab.", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" } }, "type": "object" }, "name": "schwab_get_market_hours", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Get top movers for a market index — Schwab's curated mover screener.\n\nReturns up to 20 rows (capped server-side here, not by Schwab) in a\nmarkdown table.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "frequency": { "default": 0, "description": "Movement-magnitude band filter.\n0 = all bands, 1 = 1–5%, 2 = 5–10%, 3 = 10–20%, 4 = 20%+.", "type": "integer" }, "index": { "default": "$SPX", "description": "Index symbol. Schwab's movers endpoint supports only \"$SPX\",\n\"$DJI\", and \"$COMPX\". Other indices ($VIX, $NDX, $RUT, sector\nETFs) are not supported and will return an empty list.", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "sort": { "default": "PERCENT_CHANGE_UP", "description": "\"PERCENT_CHANGE_UP\", \"PERCENT_CHANGE_DOWN\", or \"VOLUME\".", "type": "string" } }, "type": "object" }, "name": "schwab_get_market_movers", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "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": "schwab_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": "schwab_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": "schwab_get_operator_onboarding_status", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Get a filtered option chain suitable for spread evaluation.\n\nReturns a markdown table of surviving contracts with one row per leg.\nHeader line carries the underlying price and the active filter constants.", "inputSchema": { "additionalProperties": false, "properties": { "contract_type": { "default": "ALL", "description": "\"ALL\", \"CALL\", or \"PUT\".", "type": "string" }, "days_to_expiration": { "default": 21, "description": "Maximum days to expiration to include (default 21).", "type": "integer" }, "dpop_token": { "default": "", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "strike_count": { "default": 20, "description": "Approximate total strikes returned, centered on ATM\n(default 20).", "type": "integer" }, "symbol": { "description": "Underlying ticker (equity or ETF). For index options use the\n$-prefix form: $SPX, $NDX, $RUT.", "type": "string" } }, "required": [ "symbol" ], "type": "object" }, "name": "schwab_get_option_chain", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "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": "schwab_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": "schwab_get_patron_onboarding_status", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Get historical OHLCV candle data for a symbol.\n\nReturns a markdown table of the most recent candles within the requested\nperiod, capped at the last 30 rows for readability. A footnote line is\nadded when truncation occurs so the agent knows more data was available.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "frequency": { "default": 1, "description": "Frequency interval (only meaningful for \"minute\" candles).", "type": "integer" }, "frequency_type": { "default": "daily", "description": "\"minute\", \"daily\", \"weekly\", or \"monthly\".", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "period": { "default": 1, "description": "Number of periods (see valid combinations above).", "type": "integer" }, "period_type": { "default": "month", "description": "\"day\", \"month\", \"year\", or \"ytd\".", "type": "string" }, "symbol": { "description": "Ticker symbol (equity, ETF, or $-prefixed index).", "type": "string" } }, "required": [ "symbol" ], "type": "object" }, "name": "schwab_get_price_history", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "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": "schwab_get_pricing_model", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Get real-time quotes for one or more symbols.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "symbols": { "description": "Comma-separated ticker symbols (e.g. \"AAPL,MSFT,$SPX\").\nEach symbol is uppercased before lookup; whitespace around commas\nis tolerated. Symbols Schwab cannot resolve are silently omitted.", "type": "string" } }, "required": [ "symbols" ], "type": "object" }, "name": "schwab_get_stock_quote", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "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": "schwab_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": "schwab_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": "schwab_list_coupons", "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": "schwab_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": "schwab_list_notarizations", "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": "schwab_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": "schwab_notarize_ledger", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Describe the DPYC ecosystem via the Oracle. Free.", "inputSchema": { "additionalProperties": false, "properties": {}, "type": "object" }, "name": "schwab_oracle_about", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Get the current DPYC certification tax rate. Free.", "inputSchema": { "additionalProperties": false, "properties": {}, "type": "object" }, "name": "schwab_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": "schwab_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": "schwab_oracle_lookup_member", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Get active network advisories from the Oracle. Free.", "inputSchema": { "additionalProperties": false, "properties": {}, "type": "object" }, "name": "schwab_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": "schwab_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": "schwab_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": "schwab_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": "schwab_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": "schwab_redeem_coupon", "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": "schwab_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": "schwab_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": "schwab_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": "schwab_request_npub_proof", "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": "schwab_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": "schwab_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": "schwab_restore_neon_schema", "outputSchema": { "additionalProperties": true, "type": "object" } }, { "description": "Search Schwab's instrument catalog by symbol, name, or CUSIP.\n\nReturns up to 25 results in a markdown list (capped server-side here;\nSchwab itself may return more). A truncation footnote appears when the\nfull result set exceeded 25.\n\nEach row carries: symbol, asset type, description, optional exchange,\noptional CUSIP, and — when projection=\"fundamental\" — P/E, dividend\nyield, and market cap in $B or $M.\n\n - **<SYM>** (<ASSET_TYPE>) — <description> [<EXCHANGE>] CUSIP:<CUSIP>\n | P/E:N.N | Yield:N.NN% | MktCap:$XB\n\nProjection options (Schwab's API enum — determines how the search term\nis interpreted, not just what fields come back):\n - symbol-search: exact match on symbol (default; cheapest call).\n - symbol-regex: regex match against symbols. The pattern is regex,\n not a glob — \"AAP.*\" matches AAPL, AAP, etc.\n - desc-search: full-text match against the instrument description\n (\"Apple\", \"semiconductor\").\n - desc-regex: regex against descriptions.\n - fundamental: fetch fundamentals (P/E, yield, market cap) for a\n specific symbol. Use this when you already know the\n ticker and want the numbers, not a search.", "inputSchema": { "additionalProperties": false, "properties": { "dpop_token": { "default": "", "type": "string" }, "npub": { "default": "", "description": "Required. Your Nostr public key (npub1...) for credit billing.", "type": "string" }, "projection": { "default": "symbol-search", "description": "\"symbol-search\", \"symbol-regex\", \"desc-search\",\n\"desc-regex\", or \"fundamental\".", "type": "string" }, "symbol": { "description": "Search term — ticker, regex, partial name, or CUSIP. The\ninterpretation depends on `projection`.", "type": "string" } }, "required": [ "symbol" ], "type": "object" }, "name": "schwab_search_instruments", "outputSchema": { "properties": { "result": { "anyOf": [ { "type": "string" }, { "additionalProperties": true, "type": "object" } ] } }, "required": [ "result" ], "type": "object", "x-fastmcp-wrap-result": true } }, { "description": "Check the health and configuration of this service. Free.", "inputSchema": { "additionalProperties": false, "properties": {}, "type": "object" }, "name": "schwab_service_status", "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": "schwab_session_status", "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": "schwab_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": "schwab_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": "schwab_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": "schwab_update_patron_credential", "outputSchema": { "additionalProperties": true, "type": "object" } } ] }
Verify it yourselfcurl -s https://api.teppi.xyz/v1/evidence/sha256:99bb38809e1064ca65c4edcca840601592a1448e4a04b13361c97da213bb97fa | sha256sum