{"name":"io.github.lonniev/excalibur-mcp","slug":"lonniev-excalibur-mcp","title":null,"description":"FastMCP server for posting formatted content to X (Twitter) — Tollbooth-monetized, DPYC-native","url":"https://mcp.market/server/lonniev-excalibur-mcp","rating":null,"grade":"B","score":81,"certified":false,"status":"active","category":"other","tags":[],"presence":{"score":26,"stars":3,"forks":1,"downloads_week":null,"last_push_at":"2026-09-15T22:31:08.000Z","license":"NOASSERTION"},"uptime":{"percent":100,"checks":8,"ok":8,"last_checked_at":"2026-09-21T10:01:13.745Z","last_ok_at":"2026-09-21T10:01:13.745Z","latency_ms":3993},"claimed":false,"transport":"remote","callable_via_gateway":true,"default_price_micros":0,"repository":"https://github.com/lonniev/excalibur-mcp","website":null,"version":"0.40.2","remotes":[{"type":"streamable-http","url":"https://excalibur-mcp.fastmcp.app/mcp"}],"packages":[],"tools":[{"name":"excalibur_account_statement","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The patron's Nostr public key (npub1...)."},"dpop_token":{"type":"string","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."},"days":{"default":30,"type":"integer","description":"Number of days of daily usage history to include (default 30)."}},"required":["npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_account_statement_infographic","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The Nostr public key (npub1...) whose statement to render."},"dpop_token":{"type":"string","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."},"days":{"default":30,"type":"integer","description":"Number of days of daily usage history to include (default 30)."}},"required":["npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_adoption_status","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).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"authority_npub":{"type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["authority_npub"],"additionalProperties":false}},{"name":"excalibur_begin_oauth","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"Your DPYC patron npub (npub1...)."},"dpop_token":{"type":"string","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."}},"required":["npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_check_authority_balance","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_check_balance","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The Nostr public key (npub1...) whose balance to check."},"dpop_token":{"type":"string","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."}},"required":["npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_check_oauth_status","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The same Nostr public key (npub1...) used in begin_oauth."},"dpop_token":{"type":"string","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."}},"required":["npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_check_payment","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"invoice_id":{"type":"string","description":"The invoice ID returned by purchase_credits."},"npub":{"type":"string","description":"The Nostr public key (npub1...) that purchased the invoice."},"dpop_token":{"type":"string","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."}},"required":["invoice_id","npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_check_price","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"tool_id":{"type":"string","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."},"npub":{"default":"","type":"string"},"dpop_token":{"default":"","type":"string"},"tool_kwargs":{"default":"","type":"string","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\"}')."}},"required":["tool_id"],"additionalProperties":false}},{"name":"excalibur_check_proof_status","description":"Check whether a previously-cached dpop_token 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.\n\nFree, no side effects — does not evict the cache or touch relays.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"patron_npub":{"default":"","type":"string","description":"Required. The patron's npub (npub1...)."},"dpop_token":{"default":"","type":"string","description":"Required. The dpop_token phrase returned by\n``request_npub_proof`` / ``receive_npub_proof``."}},"additionalProperties":false}},{"name":"excalibur_create_post","description":"Store a new post (draft or scheduled). Returns its ``post_id``.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"doc":{"additionalProperties":true,"type":"object","description":"The editable Doc — a JSON object whose consumed key is ``blocks``,\na list of block objects. A minimal static post is one block:\n``{\"blocks\": [{\"text\": \"gm. stack sats.\", \"flags\": []}]}``. Blocks\nare joined with a blank line between them to form ``text_cache``.\nEach block:\n  - ``text`` (str): the block's copy (for a dynamic block, a prompt).\n  - ``flags`` (list): editor highlight regions, each\n    ``{\"start\": int, \"end\": int, \"note\": str, \"colorIdx\": int}``\n    (char offsets into ``text``) — pass ``[]`` when there are none.\n  - ``dynamic`` (bool, optional): when true ``text`` is a prompt the\n    server resolves with an LLM at post time; ``fallback`` (str) is\n    posted if it fails, and ``domains``/``maxFetches``/``runtimeLimit``\n    bound its web access.\nVoice/bans live in your separate Voice profile and the schedule in\n``publish_at``/``recurrence``/``cease_at`` — neither belongs in ``doc``."},"text_cache":{"default":"","type":"string","description":"Composed text (blocks joined) for scheduler + list excerpts."},"publish_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"ISO-8601 first/next publish time; required when status='scheduled'."},"recurrence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"description":"``{\"freq\": \"daily|weekly|monthly\", \"interval\": n}`` or null."},"cease_at":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"ISO-8601 stop time for recurrence; null = open-ended."},"status":{"default":"draft","type":"string","description":"``draft`` or ``scheduled``."},"client_req_id":{"default":"","type":"string","description":"Idempotency key — re-sending the same id returns the same\npost without a second charge."},"tweet_url":{"default":"","type":"string"},"title":{"default":"","type":"string","description":"Optional human label for the post; the list falls back to the\nfirst body line when it is blank."},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["doc"],"additionalProperties":false}},{"name":"excalibur_delete_coupon","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"coupon_id":{"type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["coupon_id"],"additionalProperties":false}},{"name":"excalibur_delete_operator_credential","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"field":{"type":"string","description":"The operator credential field to remove (templated or not)."},"dpop_token":{"type":"string","description":"Operator proof for this tool."}},"required":["field","dpop_token"],"additionalProperties":false}},{"name":"excalibur_delete_patron_credential","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The patron's Nostr public key (npub1...)."},"dpop_token":{"type":"string","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."},"field":{"type":"string","description":"The credential field name to remove."}},"required":["npub","dpop_token","field"],"additionalProperties":false}},{"name":"excalibur_delete_post","description":"Delete a stored post. Default is a soft delete (``status='archived'``);\npass ``hard=True`` to remove the row permanently.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"post_id":{"type":"string"},"hard":{"default":false,"type":"boolean"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["post_id"],"additionalProperties":false}},{"name":"excalibur_delete_snippet","description":"Delete one of your saved snippets by id. Free and owner-scoped.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"snippet_id":{"type":"string"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["snippet_id"],"additionalProperties":false}},{"name":"excalibur_fetch_dynamic_block","description":"Redeem a ``resolve_dynamic_block`` claim check (free, proof-gated).\n\nPoll this with the ``claim_check`` from ``resolve_dynamic_block`` until\n``status == \"done\"`` (the resolved fragment is ``result.text``). While the\njob runs it returns ``{\"status\": \"running\", \"poll_after_seconds\": N}``; on\nfailure ``{\"status\": \"error\", ...}`` (the start fare is refunded); an unknown\nor aged-out claim returns ``{\"status\": \"expired\", ...}``. Owner-scoped — only\nthe npub that started the job can redeem it. Also acts as the watchdog: a\nstalled job is re-kicked when polled.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"claim_check":{"type":"string"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["claim_check"],"additionalProperties":false}},{"name":"excalibur_forget_coupon","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``.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string"},"coupon_id":{"type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["npub","coupon_id"],"additionalProperties":false}},{"name":"excalibur_forget_credentials","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"service":{"type":"string","description":"The credential service to forget."},"npub":{"type":"string","description":"The Nostr public key (npub1...) whose credentials to forget."},"dpop_token":{"type":"string","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."}},"required":["service","npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_get_nostr_profile","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_get_notarization_proof","description":"Generate a Merkle inclusion proof that a patron's balance was\nincluded in a Bitcoin-notarized snapshot.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"notarization_id":{"type":"string","description":"The notarization record ID."},"npub":{"type":"string","description":"The patron's Nostr public key (npub1...)."}},"required":["notarization_id","npub"],"additionalProperties":false}},{"name":"excalibur_get_operator_onboarding_status","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_get_patron_credential_fields","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).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The patron's Nostr public key (npub1...)."},"dpop_token":{"type":"string","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."}},"required":["npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_get_patron_onboarding_status","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"patron_npub":{"type":"string","description":"The patron's Nostr public key (npub1...)."},"dpop_token":{"type":"string","description":"A kind-27235 Nostr event signed by patron_npub for this tool."}},"required":["patron_npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_get_post","description":"Read one stored post by id (owner-scoped).","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"post_id":{"type":"string"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["post_id"],"additionalProperties":false}},{"name":"excalibur_get_post_metrics","description":"Patron: raw metrics snapshot series for one owned post.\n\nReturns the append-only ``post_metrics_snapshot`` rows (impressions, likes,\nclicks, cadence_key, t_offset, link_placement, snippet_ids) ordered by\ncapture time. Empty when the post has not been harvested yet.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"post_id":{"description":"The post UUID whose snapshot series to return.","type":"string"},"npub":{"default":"","description":"Your npub (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["post_id"],"additionalProperties":false}},{"name":"excalibur_get_pricing_model","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_get_scheduler_log","description":"Read recent scheduler-tick outcomes.\n\nEach ``process_scheduled_posts`` run — fired by the Cloudflare cron Worker or\na manual trigger — records its summary. This surfaces them so the FE debug\nlog can show what the Worker is doing: the per-tick heartbeat (proof it ran)\nand per-post outcomes (posted / skip+error reasons like\n``insufficient_balance`` or ``oauth_token_expired``).\n\nOwner-scoped: the operator sees every tick in full; any other proven patron\nsees the global heartbeat (``processed`` count + ``run_at``) plus only the\nper-post entries for THEIR OWN posts. Free; npub proof required. Returns\n``{runs:[{run_at, summary}], scope}``.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"Your npub (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"},"limit":{"default":25,"description":"How many recent runs to return (1..100).","type":"integer"}},"additionalProperties":false}},{"name":"excalibur_get_snippet","description":"Read one of your saved snippets by id (full row incl. ``doc`` block\ndocument). Free and owner-scoped. Returns ``{\"success\": true, \"snippet\": …}``\nor ``snippet_not_found``.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"snippet_id":{"type":"string"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["snippet_id"],"additionalProperties":false}},{"name":"excalibur_get_voice","description":"Read your saved writing Voice — a profile blurb plus a list of \"banned\nconstruction\" chips (``{text, on}``) the editor passes to\n``refine_post_region``. Owner-scoped; priced by the operator's pricing model\n(use ``check_price``). When you have not saved a Voice yet this returns an\nempty one (``{\"voice\": {\"profile\": \"\", \"bans\": []}}``) so the editor can seed\nits own defaults, not an error.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_get_x_profile","description":"Fetch the connected X account's handle and name for this patron (free).\n\nUses the patron's vaulted X OAuth token to call X's ``/users/me``. Returns\n``{connected: true, username, name, profile_image_url}`` when connected, or\nthe OAuth situation (``connected`` absent) when X isn't linked yet. Used to\nshow the real @handle on the editor's tweet-card preview.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_harvest_metrics","description":"Operator-only: one cadence-aware metrics harvest sweep.\n\nDrains due ``metrics_harvest_job`` rows (t+15m … t+28d), fetches X\n``non_public_metrics`` / ``organic_metrics`` under each patron's OAuth\ncontext, and appends ``post_metrics_snapshot`` rows. A missed cadence is\npermanent data loss — failed jobs retry up to 5 attempts then land in the\ndead-letter queue; pass ``requeue_dead_id`` to retry one. Also runs as\nphase 3 of every ``process_scheduled_posts`` tick.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"The OPERATOR's npub (npub1...); this tool is operator-only.","type":"string"},"dpop_token":{"default":"","type":"string"},"requeue_dead_id":{"default":"","description":"Optional dead-letter job UUID to requeue before the sweep.","type":"string"}},"additionalProperties":false}},{"name":"excalibur_list_canonical_identities","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_list_constraint_types","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_list_coupons","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_list_my_coupons","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``.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["npub"],"additionalProperties":false}},{"name":"excalibur_list_notarizations","description":"List recent Bitcoin notarization records.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"limit":{"default":20,"type":"integer","description":"Maximum records to return (default 20)."},"status":{"default":"","type":"string","description":"Optional filter (e.g., 'submitted', 'confirmed')."}},"additionalProperties":false}},{"name":"excalibur_list_posts","description":"List your stored posts, server-side sorted, filtered, and offset-paginated.\n\nOptional ``status`` filter — a single status or a comma-separated set\n(e.g. ``draft,scheduled``), matched as set membership. ``sort_col`` is one of\n``created|updated|status|scheduled`` (default ``created``); ``sort_dir`` is\n``asc|desc``. ``search`` is a case-insensitive regular expression matched\nagainst the post text. ``date_from``/``date_to`` accept bare ``YYYY-MM-DD``\n(UTC-calendar day, end-inclusive) or an ISO instant (patron-local midnight from\nthe FE — exclusive upper bound when instant). Bound the ``date_field`` column,\none of ``created|updated|scheduled|sent``\n(default ``created``). ``template_id`` filters to the sent occurrences a recurring\ntemplate fired. ``sent_hour`` (0–23) with ``time_zone`` (IANA) keeps only posts\nwhose ``last_sent_at`` local wall hour in that zone matches — used by the\nPerformance time-of-day chart deep-link. ``page`` is 0-indexed; ``page_size``\nis 1..100. Each row carries ``is_recurring``, ``has_dynamic``, and\n``template_id`` (set on sent occurrences).\nReturns ``{posts:[…], total, page, page_size}`` reflecting the filtered set.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"status":{"default":"","type":"string"},"sort_col":{"default":"created","type":"string"},"sort_dir":{"default":"desc","type":"string"},"page":{"default":0,"type":"integer"},"page_size":{"default":25,"type":"integer"},"search":{"default":"","type":"string"},"date_from":{"default":"","type":"string"},"date_to":{"default":"","type":"string"},"date_field":{"default":"created","type":"string"},"template_id":{"default":"","type":"string"},"sent_hour":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"time_zone":{"default":"","type":"string"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_list_snippets","description":"List your saved post snippets, server-side sorted, filtered, and\noffset-paginated. ``sort_col`` is one of ``favorite|created|updated|name``\n(default ``favorite``); ``sort_dir`` is ``asc|desc``. ``search`` is a\ncase-insensitive regular expression matched against the snippet name or body.\n``date_from``/``date_to`` accept bare ``YYYY-MM-DD`` (UTC-calendar day,\nend-inclusive) or an ISO instant (patron-local midnight from the FE). Bound\nthe ``date_field`` column, one of ``created|updated`` (default ``created``).\n``page`` is 0-indexed; ``page_size`` is 1..200. Free, owner-scoped. Returns\n``{snippets:[…], total, page, page_size}`` reflecting the filtered set.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"sort_col":{"default":"favorite","type":"string"},"sort_dir":{"default":"desc","type":"string"},"page":{"default":0,"type":"integer"},"page_size":{"default":25,"type":"integer"},"search":{"default":"","type":"string"},"date_from":{"default":"","type":"string"},"date_to":{"default":"","type":"string"},"date_field":{"default":"created","type":"string"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_mint_coupon","description":"Create a new operator-owned discount coupon.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"name":{"type":"string","description":"The catchy code patrons type to redeem\n(operator-scoped uniqueness)."},"discount_percent":{"type":"number","description":"Percentage off the base price (0-100)."},"valid_from":{"type":"string","description":"ISO-8601 datetime when the coupon becomes active."},"valid_until":{"type":"string","description":"ISO-8601 datetime when the coupon expires."},"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)."},"total_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"description":"Aggregate cap across all patrons (default None =\nunlimited)."},"dpop_token":{"default":"","type":"string"}},"required":["name","discount_percent","valid_from","valid_until"],"additionalProperties":false}},{"name":"excalibur_notarize_ledger","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_oracle_about","description":"Describe the DPYC ecosystem via the Oracle. Free.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_oracle_get_tax_rate","description":"Get the current DPYC certification tax rate. Free.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_oracle_how_to_join","description":"Get DPYC onboarding instructions from the Oracle. Free.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_oracle_lookup_member","description":"Look up a DPYC community member by npub. Free.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string"}},"required":["npub"],"additionalProperties":false}},{"name":"excalibur_oracle_network_advisory","description":"Get active network advisories from the Oracle. Free.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_post_nostr_message","description":"Publish a public Nostr note (kind 1) authored by your proven npub.\n\neXcalibur cannot sign a note *as* you — a Nostr event must be signed by the\nkey it claims to come from, and eXcalibur never holds your nsec. So for this\none note it mints a fresh, ephemeral \"scribe\" keypair, signs with it, and\n``p``-tags YOUR npub as the author. The p-tag renders the note as a real\nmention and places it in your own Nostr mentions, so you can see — and\ndisown — anything published in your name.\n\nThe author is always your **proven** npub from this session (the same npub\nyou pass for billing); it is never a free-form argument, so no caller can\nscribe as anyone else.\n\nThe note publishes to the DPYC relay set. The call **succeeds if at least\none** relay accepts it; the response lists every relay's accept/reject and\nthe accepted/attempted counts so you can see the note's real reach — a\none-relay publish never reads as a clean broadcast.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"message":{"type":"string","description":"The note text to publish."},"npub":{"default":"","description":"Required. Your PROVEN Nostr public key (npub1...). You are recorded as the note's author.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["message"],"additionalProperties":false}},{"name":"excalibur_post_performance","description":"Patron: derived reach scores across your harvested post corpus.\n\nComputes escape velocity (t+15m vs rolling median), breakout ratio\n(final reach ÷ rolling-median final reach; suppressed below 5 posts),\nlink-placement cohort medians, and snippet/voice attribution from the\ndurable snapshot store — signals that come from owning the curve, not\nproxying a single X endpoint.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"Your npub (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_post_performance_infographic","description":"Patron: SVG infographic of post performance (gold-steel theme).\n\nMirrors ``account_statement_infographic`` — a dark-themed SVG of corpus\nsize, median t+15m impressions, top posts, and link-placement cohorts.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"Your npub (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_post_tweet","description":"Post a text tweet with markdown formatting converted to Unicode rich text.\n\nAccepts standard markdown inline formatting and converts it to Unicode\nMathematical Alphanumeric Symbols that render as styled text on X:\n\n    **bold**          -> bold\n    *italic*          -> italic\n    ***bold italic*** -> bold italic\n    `monospace`       -> monospace","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"text":{"type":"string","description":"Tweet content with optional markdown formatting."},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["text"],"additionalProperties":false}},{"name":"excalibur_post_tweet_image","description":"Post a tweet with a hero banner image to X/Twitter.\n\nProvide either an image_url (fetched and attached) or banner_svg\n(rendered to PNG and attached). Text supports the same markdown\nformatting as post_tweet.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"text":{"type":"string","description":"Tweet content with optional markdown formatting."},"image_url":{"default":"","type":"string","description":"URL of an image to attach to the tweet."},"banner_svg":{"default":"","type":"string","description":"Self-contained SVG markup string, converted to PNG."},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["text"],"additionalProperties":false}},{"name":"excalibur_process_scheduled_posts","description":"Launch a publisher for every due post (operator-only).\n\nSelects ``scheduled`` posts whose ``publish_at`` has arrived, claims each\natomically, and starts one background publisher per post. It does NOT\npublish: composing content, billing the owner, posting to X and recording the\noutcome all belong to the publisher, which runs on the async job queue and so\nmay take the minutes a dynamic block needs. This call returns as soon as the\nwork is dispatched — expect it to be fast even when the publishing itself is\nslow, and read per-post outcomes from ``get_scheduler_log`` or the post rows.\n\nRequires the operator's npub proof; the trigger itself is free. Returns\n``{kind: \"tick\", processed, launched, contended}``.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"The OPERATOR's npub (npub1...); this tool is operator-only.","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_publish_nostr_profile","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","type":"string","description":"The patron's Nostr public key the event must be signed by."},"signed_event":{"default":"","type":"string","description":"A JSON-encoded, client-signed kind-0 event."}},"additionalProperties":false}},{"name":"excalibur_purchase_credits","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The Nostr public key (npub1...) the credits will fund."},"dpop_token":{"type":"string","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."},"amount_sats":{"default":1000,"type":"integer","description":"Satoshis to purchase (default 1000)."}},"required":["npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_receive_credentials","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"sender_npub":{"default":"","type":"string","description":"Required. The npub that sent the credentials."},"service":{"default":"","type":"string","description":"Required. The credential service name (must match\nthe service used in request_credential_channel)."},"dpop_token":{"default":"","type":"string","description":"Required. The session phrase returned by\nrequest_credential_channel for this exact channel."},"credential_card":{"default":"","type":"string","description":"Optional. An ncred1... card to redeem directly\n(bypasses the relay drain; dpop_token not needed)."}},"additionalProperties":false}},{"name":"excalibur_receive_npub_proof","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 the ``dpop_token`` — the same\ntoken. The calling application MUST remember it and pass it as the\n``dpop_token`` parameter on every subsequent paid tool call. The\nproof (a hash of the token) is stored in the vault keyed by that\nhash — the MCP never stores the raw token itself. Free.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"patron_npub":{"default":"","type":"string","description":"Required. The patron's npub to receive proof from."},"dpop_token":{"default":"","type":"string","description":"Required. The dpop_token returned by request_npub_proof."}},"additionalProperties":false}},{"name":"excalibur_redeem_coupon","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string"},"code":{"type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["npub","code"],"additionalProperties":false}},{"name":"excalibur_refine_post_region","description":"Refine a flagged region of a post with an LLM — server-side.\n\nThe operator's LLM key stays in the vault and never leaves the\nserver. Send the flagged ``region``, the surrounding ``full_text``, an\noptional ``instruction`` (what to change), and the editor's ``voice``\nprofile + ``bans`` (JSON array or comma list of banned constructions).\nReturns ``{\"success\": true, \"suggestions\": [...3 strings...]}``.\n\nPaid: the AI cost is metered as a tollbooth fare. The fare is refunded if\nno LLM key is configured or the upstream call returns nothing.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"region":{"type":"string","description":"The flagged span to rewrite."},"full_text":{"default":"","type":"string","description":"The whole tweet, for context."},"instruction":{"default":"","type":"string","description":"What the editor wants changed (optional)."},"voice":{"default":"","type":"string","description":"Voice-profile text fed to the model (optional)."},"bans":{"default":"","type":"string","description":"Banned constructions — JSON array or comma-separated (optional)."},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["region"],"additionalProperties":false}},{"name":"excalibur_report_issue","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"Your Nostr public key (npub1...); the report's author of record."},"dpop_token":{"type":"string","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."},"title":{"type":"string","description":"One-line summary of the problem."},"body":{"type":"string","description":"The details — which tool, what was wrong, what you expected."},"tool_name":{"default":"","type":"string","description":"Optional: the specific tool the report is about\n(e.g. \"schwab_get_option_chain\")."}},"required":["npub","dpop_token","title","body"],"additionalProperties":false}},{"name":"excalibur_request_adoption","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"authority_npub":{"type":"string","description":"npub of the Authority to request adoption from."},"dpop_token":{"default":"","type":"string","description":"operator-npub ownership proof (inline kind-27235 or cached token)."},"service_url":{"default":"","type":"string","description":"this operator's MCP endpoint (advertised to the Authority)."},"note":{"default":"","type":"string","description":"optional message for the Authority owner."}},"required":["authority_npub"],"additionalProperties":false}},{"name":"excalibur_request_credential_channel","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"sender_npub":{"default":"","type":"string","description":"Required. The npub to send the template to."},"service":{"default":"","type":"string","description":"Required. The credential service name (e.g.,\nfrom get_operator_onboarding_status or get_patron_onboarding_status)."}},"additionalProperties":false}},{"name":"excalibur_request_npub_proof","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 demonstrated-proof-of-possession\ntoken that the calling application MUST remember and pass as the\n``dpop_token`` parameter on every subsequent paid tool call. The MCP\ndoes not retain this value across restarts.\n\n**Lifecycle:** The cached proof expires after the patron's\nchosen duration. When it expires, call ``request_npub_proof``\nagain for a fresh challenge, then wait for the user, then\ncall ``receive_npub_proof``.\n\nFree.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"patron_npub":{"default":"","type":"string","description":"Required. The patron's npub to request proof from."},"reason":{"default":"","type":"string","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."},"verify_at":{"default":"","type":"string","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."}},"additionalProperties":false}},{"name":"excalibur_reset_pricing_model","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).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_resolve_dynamic_block","description":"Start resolving a dynamic post block with an LLM — returns a CLAIM CHECK.\n\nA dynamic block's ``prompt`` is run by the model (with web search + web fetch for\nlive data) and woven into the surrounding post ``context`` in the author's\n``voice``. The author's instruction governs length — there is no character cap\n(X supports long-form posts). The operator's LLM key stays in the vault\nand never leaves the server.\n\nBecause that work (paginated fetches + generation) can outlast a client\ntimeout, this returns immediately with a **claim check** instead of the text:\n``{\"success\": true, \"claim_check\": \"...\", \"status\": \"pending\",\n\"poll_after_seconds\": N}``. Redeem it with the free companion\n``fetch_dynamic_block(claim_check)`` until ``status == \"done\"`` (then read\n``result.text``). (The scheduler resolves blocks directly server-side at fire\ntime and does not use this tool.)\n\nPaid: the AI cost is metered as a tollbooth fare on THIS start call, refunded\nif no LLM key is configured or the job ultimately fails.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"prompt":{"type":"string","description":"The dynamic block's prompt to run."},"context":{"default":"","type":"string","description":"The surrounding composed post (may contain the ⟨HERE⟩ marker)."},"voice":{"default":"","type":"string","description":"Voice-profile text fed to the model (optional)."},"bans":{"default":"","type":"string","description":"Banned constructions — JSON array or comma-separated (optional)."},"allowed_domains":{"default":"","type":"string","description":"Author allowlist for web_fetch — JSON array or\ncomma-separated. Blank = fetch any URL the prompt references."},"max_fetches":{"default":5,"type":"integer","description":"Author budget for web lookups (search + fetch), 1..25."},"runtime_limit_seconds":{"default":210,"description":"Author's time budget for this block in seconds (60–1800). Bounds how long the job may run AND sets the poll cadence; the operator may price it ad valorem.","type":"integer"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["prompt"],"additionalProperties":false}},{"name":"excalibur_restore_credits","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"invoice_id":{"type":"string","description":"The BTCPay invoice ID to verify and credit."},"patron_npub":{"type":"string","description":"The patron's npub whose ledger receives the grant."},"dpop_token":{"type":"string","description":"A kind-27235 Nostr event signed by the OPERATOR's nsec\nfor this tool. Patron proofs are rejected."}},"required":["invoice_id","patron_npub","dpop_token"],"additionalProperties":false}},{"name":"excalibur_restore_neon_schema","description":"Re-run ``ensure_schema()`` on every NeonVault this operator uses.\n\nDiagnostic / recovery tool for the case where the Neon HTTP SQL API\nis returning persistent 4xx errors and the operator suspects the\nschema isn't there or grants are wrong. Idempotent — uses\n``CREATE TABLE IF NOT EXISTS`` so a successful re-run is harmless.\n\nReturns the per-step result. If any step raises, surfaces the Neon\nerror message inline (0.31.0 reads the SQL error body that earlier\nwheels swallowed behind ``raise_for_status``).\n\nRESTRICTED to operator — requires proof (nsec-signed).","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_save_snippet","description":"Save a reusable post snippet (opening/footer/CTA). Omit ``snippet_id`` to\ncreate a new one; pass it to update an existing snippet in place (name/text/\nfavorite/doc). On update only the fields you pass change — omit ``favorite``\n(leave it null) to keep it as-is, so a doc-only patch (e.g. toggling a snippet\ndynamic) doesn't reset it. ``doc`` is the same block/flag document a post\ncarries, so the editor is identical for both. Free and owner-scoped. Returns\n``{\"success\": true, \"snippet\": …}``.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"name":{"default":"","type":"string"},"text":{"default":"","type":"string"},"snippet_id":{"default":"","type":"string"},"favorite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null},"doc":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_save_voice","description":"Save your writing Voice (replaces the previous one — it is a per-npub\nsingleton). ``profile`` is free text. ``bans`` is a list of ``{text, on}``\nobjects: ``text`` is the construction to avoid, ``on`` whether it is an active\nconstraint. Blank/duplicate entries are dropped server-side. Owner-scoped;\npriced by the operator's pricing model (use ``check_price``). Returns\n``{\"success\": true, \"voice\": {...}}``.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"profile":{"default":"","type":"string"},"bans":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"default":null},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_scheduler_check_now","description":"Ask the scheduler to run one tick now (free; any proven patron).\n\nPokes the Worker's ``/tick`` — the same work the ~30-minute cron does: it\nclaims a pending proof reply (completing the operator's authorization) and\nfires any due posts. Use it right after the operator approves in Studio so\nnobody waits for the next tick.\n\nDeliberately NOT operator-only. Approving is the operator's act; noticing\nthat they approved is anyone's, and a patron watching a parked scheduler is\noften the one who notices first. The poke carries no authority — it cannot\napprove anything, only ask the Worker to look. The challenge phrase stays\noperator-gated (``scheduler_pending``).\n\nThe Worker runs the tick in the background and returns immediately; re-read\n``scheduler_status`` a few seconds later to see the phase flip. Returns\n``{started: true}`` or ``{started: false}`` if the Worker couldn't be\nreached.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"Your npub (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_scheduler_pending","description":"What is the scheduled-post cron Worker waiting on? (operator-only).\n\nWhen the Worker's authorization lapses it DMs the operator a challenge\nphrase and parks. This returns that pending phrase so the operator can match\nit against the DM before approving in Studio — the Device-Grant second\nsurface for a headless actor. The phrase lives only in the Worker's KV (an\nimpostor can't inject it); we read it AS the operator (a kind-27235 signed\nwith the operator key), so the human never signs anything in the browser.\n\n``restricted``: gated to the operator npub, free. Never returns the active\nsession token. Returns ``{phase, code, reason, requestedAt}`` — ``phase`` is\n``pending`` / ``active`` / ``idle``, or ``unavailable`` if the Worker can't\nbe reached.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"The OPERATOR's npub (npub1...); this tool is operator-only.","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_scheduler_reissue","description":"Send the scheduler's proof request again, now (operator-only).\n\nFor a pending request that is not going to complete — the reply went to an\nolder DM, or ``scheduler_pending`` shows a last check that says the request\nwas replaced or expired. The Worker drops it and DMs a fresh one straight\naway instead of waiting out its hour. Approve the NEWEST DM in Studio, then\n``scheduler_check_now``.\n\nSigned as the operator with a sentinel ``u``-tag the Worker checks\nliterally, like ``scheduler_pending``, so the browser signs nothing. An\nalready-authorized scheduler is left alone. ``restricted``: gated to the\noperator npub, free. Returns ``{success, phase, requestedAt, message}``.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"The OPERATOR's npub (npub1...); this tool is operator-only.","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_scheduler_status","description":"The scheduler's configuration and current status (free; any proven patron).\n\nRelays the cron Worker's public ``/status`` — cadence, version, renewal\nwindow, and current authorization phase (``pending`` / ``active`` / ``idle``,\nno challenge phrase) — and adds the operator npub it acts for. No secrets:\nthe pending phrase (operator-only) is ``scheduler_pending``; the per-tick\ntraffic log is ``get_scheduler_log``. Returns the merged config, or\n``{worker: \"unavailable\"}`` merged in if the Worker can't be reached.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"default":"","description":"Your npub (npub1...).","type":"string"},"dpop_token":{"default":"","type":"string"}},"additionalProperties":false}},{"name":"excalibur_service_status","description":"Check the health and configuration of this service. Free.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"excalibur_session_status","description":"Check operator readiness. Returns the operator lifecycle\nstate and clear guidance on what to do next. Free.\n\nLifecycle states:\n- ready: Operator is warm and fully operational — vault AND pricing\n  model verified. Proceed with tool calls.\n- warming_up: Operator is initializing (cold start). Try a tool call — it will warm up on demand.\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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"patron_npub":{"default":"","type":"string","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."}},"additionalProperties":false}},{"name":"excalibur_set_pricing_model","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.","write_action":false,"price_micros":0,"input_schema":{"type":"object","properties":{"model_json":{"type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["model_json"],"additionalProperties":false}},{"name":"excalibur_update_coupon","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"coupon_id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"discount_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null},"valid_from":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null},"uses_per_patron":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"total_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null},"clear_uses_per_patron":{"default":false,"type":"boolean"},"clear_total_uses":{"default":false,"type":"boolean"},"dpop_token":{"default":"","type":"string"}},"required":["coupon_id"],"additionalProperties":false}},{"name":"excalibur_update_operator_credential","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"field":{"type":"string","description":"The operator credential field to set. Must be declared\nin the operator's credential template."},"value":{"type":"string","description":"The value to store."},"dpop_token":{"type":"string","description":"Operator proof for this tool."}},"required":["field","value","dpop_token"],"additionalProperties":false}},{"name":"excalibur_update_patron_credential","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.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"npub":{"type":"string","description":"The patron's Nostr public key (npub1...)."},"dpop_token":{"type":"string","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."},"field":{"type":"string","description":"The credential field name to set."},"value":{"type":"string","description":"The value to store."}},"required":["npub","dpop_token","field","value"],"additionalProperties":false}},{"name":"excalibur_update_post","description":"Patch a stored post. ``patch`` may set ``doc, publish_at, recurrence,\ncease_at, status`` (omit a field to leave it unchanged). ``text_cache`` is\nwritten when supplied (alongside a doc change). ``client_req_id`` dedupes\ndebounced autosave retries — a repeat is a no-op with no second charge.","write_action":true,"price_micros":0,"input_schema":{"type":"object","properties":{"post_id":{"type":"string"},"patch":{"additionalProperties":true,"type":"object"},"text_cache":{"default":"","type":"string"},"client_req_id":{"default":"","type":"string"},"npub":{"default":"","description":"Required. Your Nostr public key (npub1...) for credit billing.","type":"string"},"dpop_token":{"default":"","type":"string"}},"required":["post_id","patch"],"additionalProperties":false}}],"scan":{"score":81,"grade":"B","scanned_at":"2026-09-20T20:58:55.815Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-20T20:58:55.797Z","components":{"code":{"score":-1,"max":25,"notes":["remote-only server, no package to scan"]},"reliability":{"score":20,"max":20,"notes":["remote reachable in 1544ms"]},"poisoning":{"score":15,"max":15,"notes":["79 tool descriptions checked"]},"auth":{"score":3,"max":15,"notes":["open endpoint exposes 24 write-action tools with no auth"]},"maintenance":{"score":15,"max":15,"notes":["last push 5 days ago"]},"identity":{"score":8,"max":10,"notes":["registry namespace matches repository owner","GitHub account older than a year"]}},"findings":[{"id":"auth.open-write","severity":"high","component":"auth","title":"Write-action tools reachable without authentication"}],"inputs":{"probes":[{"url":"https://excalibur-mcp.fastmcp.app/mcp","reachable":true,"authRequired":false,"latencyMs":1544,"serverInfo":{"name":"eXcalibur","version":"3.4.7"}}],"packages":[],"repo":{"found":true,"owner":"lonniev","repo":"excalibur-mcp","archived":false,"pushedAt":"2026-09-15T22:31:08Z","stars":3,"forks":1,"openIssues":3,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/2193384?v=4","ownerCreatedAt":"2012-08-22T02:07:21Z","license":"NOASSERTION"},"icon":{"url":"https://avatars.githubusercontent.com/u/2193384?v=4&s=128","source":"github"},"presence":{"stars":3,"forks":1,"downloadsWeek":null,"license":"NOASSERTION","lastPushAt":"2026-09-15T22:31:08.000Z","score":26}}}},"grade_history":[],"reviews":[]}