# io.github.lonniev/excalibur-mcp (remote · excalibur-mcp.fastmcp.app)

FastMCP server for posting formatted content to X (Twitter) — Tollbooth-monetized, DPYC-native

- Trust score: 60/100 (medium)
- Change this week: +8
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-08-03

## Components

- remote · `excalibur-mcp.fastmcp.app`: 60/100 (this document), [markdown](https://verifymcp.io/servers/lonniev-excalibur-mcp/excalibur-mcp.md), [page](https://verifymcp.io/servers/lonniev-excalibur-mcp/excalibur-mcp)

## Channel facts

- Endpoint: `https://excalibur-mcp.fastmcp.app/mcp`
- Transports: `streamable-http`
- Auth: `none`
- Version: `0.37.0`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically against the live server, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-08-03.

- **Endpoint Security**: 57/100
  - The endpoint's TLS certificate is valid, in date, and uses a strong key.
  - Authorisation not fully verified: no authorisation is required to call this server, and 76 tool(s) never declared a destructiveHint. The MCP spec treats an absent hint as destructive by default, so we cannot call this surface safe.
  - HTTPS is enforced; there's no plaintext access path.
  - HSTS check failed: the Strict-Transport-Security header is absent.
  - DNSSEC check failed: this domain isn't protected by DNSSEC.
- **Transport & Reachability**: 100/100
  - Verified streamable-http transport via a live MCP handshake.
- **Schema Quality & AI Usability**: 53/100
  - AI-judged instruction clarity (good).
  - Context-footprint check failed: tool/resource definitions use about 14026 tokens (~184/item across 76 items; 76 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 27/100
  - Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 75/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 14% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### Claude

```bash
claude mcp add --transport http lonniev-excalibur-mcp https://excalibur-mcp.fastmcp.app/mcp
```

### Codex

```toml
[mcp_servers.lonniev-excalibur-mcp]
url = "https://excalibur-mcp.fastmcp.app/mcp"
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "lonniev-excalibur-mcp": {
      "type": "remote",
      "url": "https://excalibur-mcp.fastmcp.app/mcp",
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add lonniev-excalibur-mcp --url https://excalibur-mcp.fastmcp.app/mcp --transport streamable-http
```

### Hermes

```yaml
mcp_servers:
  lonniev-excalibur-mcp:
    url: "https://excalibur-mcp.fastmcp.app/mcp"
```

### Other

```json
{
  "mcpServers": {
    "lonniev-excalibur-mcp": {
      "type": "http",
      "url": "https://excalibur-mcp.fastmcp.app/mcp"
    }
  }
}
```

The mcpServers block is a cross-client convention. Remote transports vary, so check your client's docs.

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-08-03 (score 60, +1)

- [functional] New tool “excalibur_post_performance”
- [functional] New tool “excalibur_post_performance_infographic”
- [functional] New tool “excalibur_harvest_metrics”
- [functional] New tool “excalibur_get_post_metrics”

### 2026-08-01 (score 59, +1)

No change was recorded against any check on this day. Stability & Change Management went from 17 to 20. That category is still filling its 30-day observation window: 5 days of observed history at the previous scan, 6 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-07-31 (score 58, +2)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-30 (score 56, +1)

- [functional regression] Schema quality: good → unverified
- [functional] MCP protocol: Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.
- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-28 (score 55, +3)

- [functional] Schema quality: fair → good

### 2026-07-27 (score 52, 0)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-07-26 (score 52)

First indexed and scored.

## MCP tools (76)

### `excalibur_check_balance` (~227 tokens)

Check a patron's credit balance at this operator.

This is the patron's spending balance — credits purchased via
Lightning for tool calls at this operator. For the operator's
own balance at the Authority (needed to certify patron purchases),
use authority_check_balance instead.

Free — no credits required. Proof of npub ownership is required
to prevent anyone-with-the-registry from enumerating balances.

Args:
    npub: The Nostr public key (npub1...) whose balance to check.
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.

Input parameters:

- `dpop_token` (string, required)
- `npub` (string, required)

### `excalibur_purchase_credits` (~223 tokens)

Buy credits via Bitcoin Lightning.

Creates a Lightning invoice. Pay it with any Lightning wallet,
then call check_payment to confirm. Proof of npub ownership is
required so credits land in the correct ledger.

Free — no credits required to call.

Args:
    npub: The Nostr public key (npub1...) the credits will fund.
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.
    amount_sats: Satoshis to purchase (default 1000).

Input parameters:

- `amount_sats` (integer)
- `dpop_token` (string, required)
- `npub` (string, required)

### `excalibur_check_payment` (~218 tokens)

Check the payment status of a Lightning invoice.

Call after paying the invoice from purchase_credits.
Free — no credits required. Proof of npub ownership is required
to prevent credit-grant front-running by an observer of the
invoice ID.

Args:
    invoice_id: The invoice ID returned by purchase_credits.
    npub: The Nostr public key (npub1...) that purchased the invoice.
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.

Input parameters:

- `dpop_token` (string, required)
- `invoice_id` (string, required)
- `npub` (string, required)

### `excalibur_restore_credits` (~255 tokens)

Credit a patron's ledger from a BTCPay-settled invoice.

\**RESTRICTED to the operator** — the operator owns the books and is
the only party who can issue a manual credit grant. Patrons who
believe they paid but never got credits must escalate to the
operator's support, who then invokes this tool on their behalf.

Use cases: cold-start vault races during check_payment, ncred
delivery hiccups, patrons closing Top-Off sheets before settle,
any infrastructure incident that left an invoice settled at BTCPay
but uncredited on the operator's ledger.

Idempotent — if the invoice is already credited (in the patron's
\``credited_invoices``), returns success with credits_granted=0.

Args:
    invoice_id: The BTCPay invoice ID to verify and credit.
    patron_npub: The patron's npub whose ledger receives the grant.
    dpop_token: A kind-27235 Nostr event signed by the OPERATOR's nsec
        for this tool. Patron proofs are rejected.

Input parameters:

- `dpop_token` (string, required)
- `invoice_id` (string, required)
- `patron_npub` (string, required)

### `excalibur_account_statement` (~245 tokens)

Generate a patron's account statement at this operator.

Returns the patron's purchase history, active credit tranches,
per-tool usage breakdown, and recent daily usage logs. This is
the patron's spending account — not the operator's Authority
tax balance.

Free — no credits consumed. Proof of npub ownership is required
to prevent statement-scraping of arbitrary patrons.

Args:
    npub: The patron's Nostr public key (npub1...).
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.
    days: Number of days of daily usage history to include (default 30).

Input parameters:

- `days` (integer)
- `dpop_token` (string, required)
- `npub` (string, required)

### `excalibur_account_statement_infographic` (~245 tokens)

Generate a visual SVG infographic of your account statement.

Returns the same data as account_statement, rendered as a dark-themed
SVG graphic with balance hero, metrics cards, health gauge, tranche
table, and tool usage breakdown. Costs 1 api_sat per call. Proof is
verified by ``debit_or_deny`` before any cost is incurred.

Args:
    npub: The Nostr public key (npub1...) whose statement to render.
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.
    days: Number of days of daily usage history to include (default 30).

Input parameters:

- `days` (integer)
- `dpop_token` (string, required)
- `npub` (string, required)

### `excalibur_report_issue` (~381 tokens)

File a field report about this service as a GitHub issue on the operator's repo.

Found a tool's metadata or response wrong or confusing? Report it where the tool
lives. The **author of record is your npub** — no npub / no proof, no issue — and it
is stamped into the issue so the report is attributed to you, not the operator. Costs
a small fee (a free write to an issue tracker would be abused). The report is PUBLIC
and goes to the maintainers' normal triage; nothing is verified here.

Returns the filed issue's repo, number, and url. If this operator has not enabled
field reports, returns an "issue reporting not configured" situation and you are not
charged.

Args:
    npub: Your Nostr public key (npub1...); the report's author of record.
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.
    title: One-line summary of the problem.
    body: The details — which tool, what was wrong, what you expected.
    tool_name: Optional: the specific tool the report is about
        (e.g. "schwab_get_option_chain").

Input parameters:

- `body` (string, required)
- `dpop_token` (string, required)
- `npub` (string, required)
- `title` (string, required)
- `tool_name` (string)

### `excalibur_service_status` (~22 tokens)

Check the health and configuration of this service. Free.

### `excalibur_get_operator_onboarding_status` (~58 tokens)

Report this operator's configuration readiness.

Shows which operator settings are configured, which are missing,
and how to deliver each missing value. For patron-level credential
status, use get_patron_onboarding_status instead. Free.

### `excalibur_get_patron_onboarding_status` (~153 tokens)

Report a patron's credential readiness for this operator.

For set-once services (eXcalibur, TheBrain), shows which patron
secrets are configured and which are missing. For dynamic/OAuth2
services (Schwab), reports that no patron credentials are needed.
Free. Proof of npub ownership is required because credential
presence is sensitive information about the patron's setup.

Args:
    patron_npub: The patron's Nostr public key (npub1...).
    dpop_token: A kind-27235 Nostr event signed by patron_npub for this tool.

Input parameters:

- `dpop_token` (string, required)
- `patron_npub` (string, required)

### `excalibur_session_status` (~299 tokens)

Check operator readiness. Returns the operator lifecycle
state and clear guidance on what to do next. Free.

Lifecycle states:
\- ready: Operator is warm and fully operational — vault AND pricing
  model verified. Proceed with tool calls.
\- warming_up: Operator is initializing (cold start). Try a tool call — it will warm up on demand.
\- misconfigured: Persistence rejected a query with a permanent SQL
  error (permission denied, missing relation). Paid tools will fail
  until the operator repairs the database — retrying does not help.
\- quota_exceeded: The persistence provider (Neon) answered HTTP 402 —
  the operator's database has exhausted its compute/storage quota, so
  the books are locked for billing. Paid tools fail; retrying does NOT
  help. The operator's Authority must restore capacity (upgrade the
  plan or wait for the quota reset). Free tools remain available.
\- not_registered: Operator has no Authority relationship yet. Call register_operator first.
\- no_identity: Operator nsec is not configured. Deployment issue.

Args:
    patron_npub: Optional. If supplied, the response includes an
        ``upstream_oauth`` block with the patron's stored OAuth
        token expiry (runtime-derived from vault state) so a
        client can refresh proactively rather than reactively
        after a stale-token failure.

Input parameters:

- `patron_npub` (string)

### `excalibur_request_credential_channel` (~267 tokens)

Open a Secure Courier channel for credential delivery.

This is the CREDENTIAL-DELIVERY flow — use it to hand over a service
secret (API keys, tokens). To merely prove you control an npub (the
usual answer to a ``proof_required`` error), use ``request_npub_proof``
instead. Note: dynamic/OAuth2 services (e.g. Schwab) need NO couriered
secret — check ``service_status`` first.

Sends a welcome DM with a credential template. The recipient
must read the DM in their Nostr client, fill in the fields,
and reply manually. **This is a human-in-the-loop flow.**

After calling this tool, STOP and tell the user what to do.
Wait for the user to confirm they have replied before calling
\``receive_credentials``. Do NOT poll or retry — each
\``receive_credentials`` call destructively drains the relay
mailbox.

Args:
    sender_npub: Required. The npub to send the template to.
    service: Required. The credential service name (e.g.,
        from get_operator_onboarding_status or get_patron_onboarding_status).
Free.

Input parameters:

- `sender_npub` (string)
- `service` (string)

### `excalibur_receive_credentials` (~353 tokens)

Pick up credentials from the Secure Courier.

Completes the CREDENTIAL-DELIVERY flow (the ownership-proof
counterpart is ``receive_npub_proof``).

\**Call this only after the user confirms they have replied.**
Deterministic, one-shot retrieval: name the response you want with
\``(sender_npub, service, dpop_token)`` and the tool drains ONLY the
rendezvous relay that channel was pinned to. Every popped DM with the
wrong session phrase is deleted and its sender is NACK'd; the first DM
with the matching phrase is accepted (ACK'd) and the scan stops. If
none match, the queue is drained and a ``courier_not_found`` result is
returned. Do NOT poll, loop, or retry.

If a credential_card (ncred1...) is provided, it is redeemed directly
without any relay access (dpop_token not required for that path). On
success, the payment processor client is reinitialized from the new
credentials — no server restart needed.

Args:
    sender_npub: Required. The npub that sent the credentials.
    service: Required. The credential service name (must match
        the service used in request_credential_channel).
    dpop_token: Required. The session phrase returned by
        request_credential_channel for this exact channel.
    credential_card: Optional. An ncred1... card to redeem directly
        (bypasses the relay drain; dpop_token not needed).
Free.

Input parameters:

- `credential_card` (string)
- `dpop_token` (string)
- `sender_npub` (string)
- `service` (string)

### `excalibur_forget_credentials` (~220 tokens)

Delete vaulted credentials for a specific service and npub.

For operator credentials, pass the operator's own npub. For patron
credentials, pass the patron's npub. Always requires proof of
npub ownership — a deletion is as destructive as a write.

Args:
    service: The credential service to forget.
    npub: The Nostr public key (npub1...) whose credentials to forget.
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.
Free.

Input parameters:

- `dpop_token` (string, required)
- `npub` (string, required)
- `service` (string, required)

### `excalibur_update_patron_credential` (~244 tokens)

Add or update a single patron credential field.

Merges into existing stored credentials without affecting
other fields. Useful for setting an account identifier
after OAuth, changing a default brain, etc. Free. Proof of
npub ownership is required — this is a write to the patron's
sensitive credential vault.

Args:
    npub: The patron's Nostr public key (npub1...).
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.
    field: The credential field name to set.
    value: The value to store.

Input parameters:

- `dpop_token` (string, required)
- `field` (string, required)
- `npub` (string, required)
- `value` (string, required)

### `excalibur_delete_patron_credential` (~207 tokens)

Remove a single patron credential field.

Deletes one field from stored credentials without affecting
other fields. Free. Proof of npub ownership is required —
this is a write to the patron's sensitive credential vault.

Args:
    npub: The patron's Nostr public key (npub1...).
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.
    field: The credential field name to remove.

Input parameters:

- `dpop_token` (string, required)
- `field` (string, required)
- `npub` (string, required)

### `excalibur_get_patron_credential_fields` (~252 tokens)

List stored patron credential field names (not values).

Returns the names of fields stored for a patron, plus each
field's ``delivered_at`` ISO-8601 timestamp when known (null
for secrets vaulted before timestamps were recorded). Values
are never exposed — use this to verify which fields are
configured and how old each one is. Free. Proof of npub
ownership is required: the list of configured fields is itself
sensitive (reveals which integrations a patron has set up).

Args:
    npub: The patron's Nostr public key (npub1...).
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing. Its
        `u` tag must hold THIS tool's exact name (from tools/list), not
        the endpoint URL; content:"", created_at within 60s of now, and a
        random `nonce` tag recommended. Or a cached dpop_token phrase.

Input parameters:

- `dpop_token` (string, required)
- `npub` (string, required)

### `excalibur_begin_oauth` (~277 tokens)

Start the OAuth2 authorization flow.

Returns an authorization URL. Open it in a browser to log in
and authorize. Then call ``check_oauth_status`` with the
same npub to complete. Free. Proof of npub ownership is
required so an observer cannot DOS your account by
initiating OAuth flows in your name.

Do NOT call this pre-emptively. If a session may still be valid,
attempt the live tool call first and only begin OAuth when it
fails with ``upstream_auth_refresh_needed``. A 'pending'
\``check_oauth_status`` is not evidence that an existing session
has lapsed.

Args:
    npub: Your DPYC patron npub (npub1...).
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing.
        Its `u` tag must hold THIS tool's exact name (from
        tools/list), not the endpoint URL; content:"", created_at
        within 60s of now, and a random `nonce` tag recommended. Or a
        cached dpop_token phrase.

Input parameters:

- `dpop_token` (string, required)
- `npub` (string, required)

### `excalibur_check_oauth_status` (~269 tokens)

Check whether the OAuth2 authorization flow has completed.

Call after opening the authorization URL from ``begin_oauth``
and completing the login in your browser. Free. Proof of npub
ownership is required: OAuth status exposes which upstream
services a patron has connected.

A 'pending' result here does NOT prove an existing session has
lapsed — it only reports this authorization attempt. To find out
whether a session still works, attempt the live call; fall back
to ``begin_oauth`` only on an explicit
\``upstream_auth_refresh_needed`` error.

Args:
    npub: The same Nostr public key (npub1...) used in begin_oauth.
    dpop_token: Raw JSON of a kind-27235 Nostr event signed by npub —
        not base64, not NIP-98 'Authorization: Nostr <b64>' framing.
        Its `u` tag must hold THIS tool's exact name (from
        tools/list), not the endpoint URL; content:"", created_at
        within 60s of now, and a random `nonce` tag recommended. Or a
        cached dpop_token phrase.

Input parameters:

- `dpop_token` (string, required)
- `npub` (string, required)

### `excalibur_request_npub_proof` (~514 tokens)

Request npub ownership proof from a patron via Nostr DM.

This is the npub-OWNERSHIP-PROOF flow — use it when a call returns
\``proof_required``. It proves the caller controls an npub; it does
NOT deliver any service secret. To hand an operator its API keys or
OAuth secrets, use ``request_credential_channel`` instead.

Sends a challenge DM that the patron must sign and reply to
using their Nostr client. **This is a human-in-the-loop flow.**

After calling this tool, STOP and tell the user to check their
Nostr client and reply to the challenge. Wait for the user to
confirm they have replied before calling ``receive_npub_proof``.
Do NOT poll or retry — each ``receive_npub_proof`` call
destructively drains the relay mailbox.

\**Returns** a ``dpop_token`` — the demonstrated-proof-of-possession
token that the calling application MUST remember and pass as the
\``dpop_token`` parameter on every subsequent paid tool call. The MCP
does not retain this value across restarts.

\**Lifecycle:** The cached proof expires after the patron's
chosen duration. When it expires, call ``request_npub_proof``
again for a fresh challenge, then wait for the user, then
call ``receive_npub_proof``.

Free.

Args:
    patron_npub: Required. The patron's npub to request proof from.
    reason: Optional. A human-readable purpose for the request
        ("I'm working on your request XYZ and need the Operator to do
        ABC for you"). Signed into the provenance attestation and shown
        in the DM, so the recipient sees *why* they are being asked —
        especially useful when the signer is unknown to them.
    verify_at: Optional. A free-form statement of WHERE you (the
        initiating agent) already showed this proof's one-time code to
        the user — a URL, or "your Claude.ai conversation", "the Grok
        session". The OAuth 2.0 Device Grant ``verification_uri``,
        generalized: the user approves only if the code in the DM matches
        the one you displayed there, so an uns…

Input parameters:

- `patron_npub` (string)
- `reason` (string)
- `verify_at` (string)

### `excalibur_receive_npub_proof` (~325 tokens)

Receive npub ownership confirmation from a patron.

Completes the npub-OWNERSHIP-PROOF flow (the credential-delivery
counterpart is ``receive_credentials``).

\**Call this only after the user confirms they have replied.**
Deterministic, one-shot retrieval: name the response with
\``(patron_npub, dpop_token)`` — the ``dpop_token`` being the value
returned by ``request_npub_proof``. The tool drains ONLY the pinned
rendezvous relay that challenge was published on, stopping at the DM
whose phrase matches. Mismatched DMs are deleted and NACK'd (without
revealing the expected phrase). If called before the user replies,
their message will never be found. Do NOT poll, loop, or retry.

The signed DM itself proves npub ownership (the patron's nsec
signed it). On success, returns the ``dpop_token`` — the same
token. The calling application MUST remember it and pass it as the
\``dpop_token`` parameter on every subsequent paid tool call. The
proof (a hash of the token) is stored in the vault keyed by that
hash — the MCP never stores the raw token itself. Free.

Args:
    patron_npub: Required. The patron's npub to receive proof from.
    dpop_token: Required. The dpop_token returned by request_npub_proof.

Input parameters:

- `dpop_token` (string)
- `patron_npub` (string)

### `excalibur_check_proof_status` (~154 tokens)

Check whether a previously-cached dpop_token is still valid.

Mirrors ``check_oauth_status`` for the npub-proof flow: a calling
agent can ask "will my next paid call accept this dpop_token?"
before burning credits on a guaranteed failure.

Free, no side effects — does not evict the cache or touch relays.

Args:
    patron_npub: Required. The patron's npub (npub1...).
    dpop_token: Required. The dpop_token phrase returned by
        ``request_npub_proof`` / ``receive_npub_proof``.

Input parameters:

- `dpop_token` (string)
- `patron_npub` (string)

### `excalibur_oracle_how_to_join` (~26 tokens)

Get DPYC onboarding instructions from the Oracle. Free.

### `excalibur_oracle_get_tax_rate` (~25 tokens)

Get the current DPYC certification tax rate. Free.

### `excalibur_oracle_lookup_member` (~34 tokens)

Look up a DPYC community member by npub. Free.

Input parameters:

- `npub` (string, required)

### `excalibur_oracle_about` (~23 tokens)

Describe the DPYC ecosystem via the Oracle. Free.

### `excalibur_oracle_network_advisory` (~26 tokens)

Get active network advisories from the Oracle. Free.

### `excalibur_check_authority_balance` (~74 tokens)

Check this operator's tax balance at the Authority.

Returns the sats available for certifying patron credit purchases.
When this balance reaches zero, patron top-ups cannot be certified
and the operator must call purchase_credits on the Authority.

This is the operator's own funding — not a patron balance. Free.

### `excalibur_get_pricing_model` (~52 tokens)

Get the active pricing model for this operator. Free.

If no model exists, self-initializes a scaffold with all
registered tools at 0 sats.  No economic data from code.

### `excalibur_set_pricing_model` (~69 tokens)

Set the active pricing model. RESTRICTED to operator.

Requires a valid proof (Schnorr-signed kind-27235 event)
proving the caller holds the operator's nsec.

Input parameters:

- `dpop_token` (string)
- `model_json` (string, required)

### `excalibur_reset_pricing_model` (~82 tokens)

Erase all pricing models and restore a viable default.

Deletes every stored model, then self-initializes a fresh one
from the tool registry — all tools at 0 sats with proper UUIDs.
Returns the new model.

RESTRICTED to operator — requires proof (nsec-signed).

Input parameters:

- `dpop_token` (string)

### `excalibur_request_adoption` (~217 tokens)

Ask a chosen Authority to adopt this operator (deferred courtship).

RESTRICTED to the operator — requires proof the caller controls this
operator's npub. Resolves the Authority's MCP endpoint from the
community registry, mints an inline ownership proof with this
operator's nsec, and delivers the request MCP-to-MCP. The Authority
records it as pending; its owner approves on their own time. Poll
\``adoption_status`` for progress; the operator flips to ``ready``
once the Authority provisions it.

Args:
    authority_npub: npub of the Authority to request adoption from.
    dpop_token: operator-npub ownership proof (inline kind-27235 or cached token).
    service_url: this operator's MCP endpoint (advertised to the Authority).
    note: optional message for the Authority owner.

Input parameters:

- `authority_npub` (string, required)
- `dpop_token` (string)
- `note` (string)
- `service_url` (string)

### `excalibur_adoption_status` (~71 tokens)

Check this operator's adoption-request status at a chosen Authority.

Free. Polls the Authority MCP-to-MCP for the status of this operator's
request (pending / approved / rejected / provisioned).

Input parameters:

- `authority_npub` (string, required)
- `dpop_token` (string)

### `excalibur_restore_neon_schema` (~149 tokens)

Re-run ``ensure_schema()`` on every NeonVault this operator uses.

Diagnostic / recovery tool for the case where the Neon HTTP SQL API
is returning persistent 4xx errors and the operator suspects the
schema isn't there or grants are wrong. Idempotent — uses
\``CREATE TABLE IF NOT EXISTS`` so a successful re-run is harmless.

Returns the per-step result. If any step raises, surfaces the Neon
error message inline (0.31.0 reads the SQL error body that earlier
wheels swallowed behind ``raise_for_status``).

RESTRICTED to operator — requires proof (nsec-signed).

Input parameters:

- `dpop_token` (string)

### `excalibur_list_canonical_identities` (~126 tokens)

Return canonical (tool_id, mcp_name, …) for every registered tool.

The authoritative source for any client (Studio, agents, FE)
that needs to know how this MCP identifies its tools.
Reconcile uses this output to UUID-join against the stored
pricing model — no name-based UUID derivation, no guessing.

If the operator renames a function or rebrands a slug, the
mcp_name in this output changes but tool_id stays. That's the
whole point of the canonical-UUID design.

Free, no side effects.

### `excalibur_get_nostr_profile` (~89 tokens)

Read an npub's public Nostr profile (NIP-01 kind-0 metadata).

Free, no proof — the data is already public on relays. Returns the
latest metadata fields (name, display_name, about, picture, banner,
nip05, website, lud16) or an empty profile if none is published.

Input parameters:

- `npub` (string)

### `excalibur_publish_nostr_profile` (~163 tokens)

Publish a CLIENT-SIGNED kind-0 profile to relays for an npub.

The wheel never holds a patron nsec. The frontend signs the kind-0
metadata event with the patron's session key or a NIP-07 extension and
passes the signed event (JSON) here; the wheel verifies the signature
matches the npub, then relays it to public relays. The signature is the
authorization — no proof token, no key custody. Free.

Args:
    npub: The patron's Nostr public key the event must be signed by.
    signed_event: A JSON-encoded, client-signed kind-0 event.

Input parameters:

- `npub` (string)
- `signed_event` (string)

### `excalibur_check_price` (~198 tokens)

Preview the effective cost of a tool call.

Shows the base cost and any constraint effects (discounts, free
trials, surge pricing). Free — no credits required.

Args:
    tool_id: Either the tool's UUID (from the pricing model) or a
        bare capability string (e.g. ``"deal_scenario"``). FE
        callers usually have the capability name; this resolves
        both so the FE doesn't need to derive UUIDs locally.
    tool_kwargs: Optional JSON object with tool call parameters
        for ad valorem / categorical-multiplier pricing preview
        (e.g. '{"amount_sats": 5000}' or
        '{"difficulty": "sovereign", "mode": "live"}').

Input parameters:

- `dpop_token` (string)
- `npub` (string)
- `tool_id` (string, required)
- `tool_kwargs` (string)

### `excalibur_list_constraint_types` (~52 tokens)

List all available constraint types and their parameter schemas.

Returns the type, category, description, and parameter specs for
every constraint that can be used in a pricing pipeline.
Free — no credits required.

### `excalibur_mint_coupon` (~222 tokens)

Create a new operator-owned discount coupon.

Args:
    name: The catchy code patrons type to redeem
        (operator-scoped uniqueness).
    discount_percent: Percentage off the base price (0-100).
    valid_from: ISO-8601 datetime when the coupon becomes active.
    valid_until: ISO-8601 datetime when the coupon expires.
    uses_per_patron: How many tool calls one patron can claim the
        discount on (default 1; pass null/None for unlimited
        within the window).
    total_uses: Aggregate cap across all patrons (default None =
        unlimited).

Returns the new coupon row. RESTRICTED to operator — requires
proof (nsec-signed kind-27235 or cached dpop_token token).

Input parameters:

- `discount_percent` (number, required)
- `dpop_token` (string)
- `name` (string, required)
- `total_uses`
- `uses_per_patron`
- `valid_from` (string, required)
- `valid_until` (string, required)

### `excalibur_list_coupons` (~72 tokens)

List every coupon this operator has minted (newest first).

Each row carries the current ``times_redeemed`` counter — the
Studio renders a progress bar from this against ``total_uses``.
RESTRICTED to operator — requires proof.

Input parameters:

- `dpop_token` (string)

### `excalibur_update_coupon` (~168 tokens)

Patch a coupon's editable fields.

Pass only the fields you want to change.  To set a cap to
unlimited (NULL in the schema), pass ``clear_uses_per_patron=true``
or ``clear_total_uses=true``.  Renaming the code is allowed —
existing patron redemption rows survive (they key on coupon id).

RESTRICTED to operator — requires proof.

Input parameters:

- `clear_total_uses` (boolean)
- `clear_uses_per_patron` (boolean)
- `coupon_id` (string, required)
- `discount_percent`
- `dpop_token` (string)
- `name`
- `total_uses`
- `uses_per_patron`
- `valid_from`
- `valid_until`

### `excalibur_delete_coupon` (~83 tokens)

Delete a coupon.  Cascades to all patron redemptions.

Any chain step referencing the deleted coupon_id becomes a
no-op (the constraint returns neutral on unknown ids) — the
Studio surfaces orphan references as warnings.

RESTRICTED to operator — requires proof.

Input parameters:

- `coupon_id` (string, required)
- `dpop_token` (string)

### `excalibur_redeem_coupon` (~135 tokens)

Claim a coupon by its name (the code the operator shared).

Looks up the operator's coupon by ``code``, validates the window
and total cap, and records a per-patron redemption row.
Subsequent paid tool calls on this MCP auto-apply the discount
until ``uses_per_patron`` is exhausted.

Free — no credits required.  Requires proof of ``npub``.
Idempotent: redeeming the same code twice returns the existing
redemption.

Input parameters:

- `code` (string, required)
- `dpop_token` (string)
- `npub` (string, required)

### `excalibur_list_my_coupons` (~90 tokens)

List the coupons this patron has redeemed on this operator.

Returns both active and exhausted redemptions with a per-row
\``status`` (``active`` / ``window_closed`` / ``patron_limit`` /
\``total_limit``).  Free — requires proof of ``npub``.

Input parameters:

- `dpop_token` (string)
- `npub` (string, required)

### `excalibur_forget_coupon` (~89 tokens)

Remove a coupon from this patron's redemption list.

Cosmetic only — the coupon itself still exists at the operator,
and the patron can re-redeem the same code later while the
window allows.  Free — requires proof of ``npub``.

Input parameters:

- `coupon_id` (string, required)
- `dpop_token` (string)
- `npub` (string, required)

### `excalibur_notarize_ledger` (~55 tokens)

Build a Merkle tree of all patron balances and submit the root
to Bitcoin via OpenTimestamps.

Operator-only background task. Bitcoin confirmation takes 1-6 hours.
Free — no credits required.

### `excalibur_get_notarization_proof` (~84 tokens)

Generate a Merkle inclusion proof that a patron's balance was
included in a Bitcoin-notarized snapshot.

Args:
    notarization_id: The notarization record ID.
    npub: The patron's Nostr public key (npub1...).

Input parameters:

- `notarization_id` (string, required)
- `npub` (string, required)

### `excalibur_list_notarizations` (~63 tokens)

List recent Bitcoin notarization records.

Args:
    limit: Maximum records to return (default 20).
    status: Optional filter (e.g., 'submitted', 'confirmed').

Input parameters:

- `limit` (integer)
- `status` (string)

### `excalibur_post_tweet` (~159 tokens)

Post a text tweet with markdown formatting converted to Unicode rich text.

Accepts standard markdown inline formatting and converts it to Unicode
Mathematical Alphanumeric Symbols that render as styled text on X:

    **bold**          -> bold
    *italic*          -> italic
    ***bold italic*** -> bold italic
    `monospace`       -> monospace

Args:
    text: Tweet content with optional markdown formatting.
    npub: Your DPYC patron Nostr public key (npub1...) for credit attribution.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `text` (string, required)

### `excalibur_get_x_profile` (~127 tokens)

Fetch the connected X account's handle and name for this patron (free).

Uses the patron's vaulted X OAuth token to call X's ``/users/me``. Returns
\``{connected: true, username, name, profile_image_url}`` when connected, or
the OAuth situation (``connected`` absent) when X isn't linked yet. Used to
show the real @handle on the editor's tweet-card preview.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).

### `excalibur_post_nostr_message` (~342 tokens)

Publish a public Nostr note (kind 1) authored by your proven npub.

eXcalibur cannot sign a note *as* you — a Nostr event must be signed by the
key it claims to come from, and eXcalibur never holds your nsec. So for this
one note it mints a fresh, ephemeral "scribe" keypair, signs with it, and
\``p``-tags YOUR npub as the author. The p-tag renders the note as a real
mention and places it in your own Nostr mentions, so you can see — and
disown — anything published in your name.

The author is always your **proven** npub from this session (the same npub
you pass for billing); it is never a free-form argument, so no caller can
scribe as anyone else.

The note publishes to the DPYC relay set. The call **succeeds if at least
one** relay accepts it; the response lists every relay's accept/reject and
the accepted/attempted counts so you can see the note's real reach — a
one-relay publish never reads as a clean broadcast.

Args:
    message: The note text to publish.
    npub: Your DPYC patron npub (npub1...) — proven, billed, and recorded as
        the note's author.

Input parameters:

- `dpop_token` (string)
- `message` (string, required)
- `npub` (string): Required. Your PROVEN Nostr public key (npub1...). You are recorded as the note's author.

### `excalibur_post_tweet_image` (~177 tokens)

Post a tweet with a hero banner image to X/Twitter.

Provide either an image_url (fetched and attached) or banner_svg
(rendered to PNG and attached). Text supports the same markdown
formatting as post_tweet.

Args:
    text: Tweet content with optional markdown formatting.
    image_url: URL of an image to attach to the tweet.
    banner_svg: Self-contained SVG markup string, converted to PNG.
    npub: Your DPYC patron Nostr public key (npub1...) for credit attribution.

Input parameters:

- `banner_svg` (string)
- `dpop_token` (string)
- `image_url` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `text` (string, required)

### `excalibur_create_post` (~541 tokens)

Store a new post (draft or scheduled). Returns its ``post_id``.

Args:
    doc: The editable Doc — a JSON object whose consumed key is ``blocks``,
        a list of block objects. A minimal static post is one block:
        ``{"blocks": [{"text": "gm. stack sats.", "flags": []}]}``. Blocks
        are joined with a blank line between them to form ``text_cache``.
        Each block:
          - ``text`` (str): the block's copy (for a dynamic block, a prompt).
          - ``flags`` (list): editor highlight regions, each
            ``{"start": int, "end": int, "note": str, "colorIdx": int}``
            (char offsets into ``text``) — pass ``[]`` when there are none.
          - ``dynamic`` (bool, optional): when true ``text`` is a prompt the
            server resolves with an LLM at post time; ``fallback`` (str) is
            posted if it fails, and ``domains``/``maxFetches``/``runtimeLimit``
            bound its web access.
        Voice/bans live in your separate Voice profile and the schedule in
        ``publish_at``/``recurrence``/``cease_at`` — neither belongs in ``doc``.
    text_cache: Composed text (blocks joined) for scheduler + list excerpts.
    publish_at: ISO-8601 first/next publish time; required when status='scheduled'.
    recurrence: ``{"freq": "daily|weekly|monthly", "interval": n}`` or null.
    cease_at: ISO-8601 stop time for recurrence; null = open-ended.
    status: ``draft`` or ``scheduled``.
    client_req_id: Idempotency key — re-sending the same id returns the same
        post without a second charge.
    title: Optional human label for the post; the list falls back to the
        first body line when it is blank.
    npub: Your DPYC patron Nostr public key for credit attribution.

Input parameters:

- `cease_at`
- `client_req_id` (string)
- `doc` (object, required)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `publish_at`
- `recurrence`
- `status` (string)
- `text_cache` (string)
- `title` (string)
- `tweet_url` (string)

### `excalibur_get_post` (~62 tokens)

Read one stored post by id (owner-scoped).

Input parameters:

- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `post_id` (string, required)

### `excalibur_list_posts` (~342 tokens)

List your stored posts, server-side sorted, filtered, and offset-paginated.

Optional ``status`` filter — a single status or a comma-separated set
(e.g. ``draft,scheduled``), matched as set membership. ``sort_col`` is one of
\``created|updated|status|scheduled`` (default ``created``); ``sort_dir`` is
\``asc|desc``. ``search`` is a case-insensitive regular expression matched
against the post text. ``date_from``/``date_to`` (``YYYY-MM-DD``, end-inclusive)
bound the ``date_field`` column, one of ``created|updated|scheduled|sent``
(default ``created``). ``template_id`` filters to the sent occurrences a recurring
template fired. ``page`` is 0-indexed; ``page_size`` is 1..100. Each row carries
\``is_recurring``, ``has_dynamic``, and ``template_id`` (set on sent occurrences).
Returns ``{posts:[…], total, page, page_size}`` reflecting the filtered set.

Input parameters:

- `date_field` (string)
- `date_from` (string)
- `date_to` (string)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `page` (integer)
- `page_size` (integer)
- `search` (string)
- `sort_col` (string)
- `sort_dir` (string)
- `status` (string)
- `template_id` (string)

### `excalibur_update_post` (~150 tokens)

Patch a stored post. ``patch`` may set ``doc, publish_at, recurrence,
cease_at, status`` (omit a field to leave it unchanged). ``text_cache`` is
written when supplied (alongside a doc change). ``client_req_id`` dedupes
debounced autosave retries — a repeat is a no-op with no second charge.

Input parameters:

- `client_req_id` (string)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `patch` (object, required)
- `post_id` (string, required)
- `text_cache` (string)

### `excalibur_delete_post` (~88 tokens)

Delete a stored post. Default is a soft delete (``status='archived'``);
pass ``hard=True`` to remove the row permanently.

Input parameters:

- `dpop_token` (string)
- `hard` (boolean)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `post_id` (string, required)

### `excalibur_list_snippets` (~262 tokens)

List your saved post snippets, server-side sorted, filtered, and
offset-paginated. ``sort_col`` is one of ``favorite|created|updated|name``
(default ``favorite``); ``sort_dir`` is ``asc|desc``. ``search`` is a
case-insensitive regular expression matched against the snippet name or body.
\``date_from``/``date_to`` (``YYYY-MM-DD``, end-inclusive) bound the
\``date_field`` column, one of ``created|updated`` (default ``created``).
\``page`` is 0-indexed; ``page_size`` is 1..200. Free, owner-scoped. Returns
\``{snippets:[…], total, page, page_size}`` reflecting the filtered set.

Input parameters:

- `date_field` (string)
- `date_from` (string)
- `date_to` (string)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).
- `page` (integer)
- `page_size` (integer)
- `search` (string)
- `sort_col` (string)
- `sort_dir` (string)

### `excalibur_get_snippet` (~95 tokens)

Read one of your saved snippets by id (full row incl. ``doc`` block
document). Free and owner-scoped. Returns ``{"success": true, "snippet": …}``
or ``snippet_not_found``.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).
- `snippet_id` (string, required)

### `excalibur_save_snippet` (~202 tokens)

Save a reusable post snippet (opening/footer/CTA). Omit ``snippet_id`` to
create a new one; pass it to update an existing snippet in place (name/text/
favorite/doc). On update only the fields you pass change — omit ``favorite``
(leave it null) to keep it as-is, so a doc-only patch (e.g. toggling a snippet
dynamic) doesn't reset it. ``doc`` is the same block/flag document a post
carries, so the editor is identical for both. Free and owner-scoped. Returns
\``{"success": true, "snippet": …}``.

Input parameters:

- `doc`
- `dpop_token` (string)
- `favorite`
- `name` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).
- `snippet_id` (string)
- `text` (string)

### `excalibur_delete_snippet` (~64 tokens)

Delete one of your saved snippets by id. Free and owner-scoped.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).
- `snippet_id` (string, required)

### `excalibur_get_voice` (~144 tokens)

Read your saved writing Voice — a profile blurb plus a list of "banned
construction" chips (``{text, on}``) the editor passes to
\``refine_post_region``. Owner-scoped; priced by the operator's pricing model
(use ``check_price``). When you have not saved a Voice yet this returns an
empty one (``{"voice": {"profile": "", "bans": []}}``) so the editor can seed
its own defaults, not an error.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).

### `excalibur_save_voice` (~158 tokens)

Save your writing Voice (replaces the previous one — it is a per-npub
singleton). ``profile`` is free text. ``bans`` is a list of ``{text, on}``
objects: ``text`` is the construction to avoid, ``on`` whether it is an active
constraint. Blank/duplicate entries are dropped server-side. Owner-scoped;
priced by the operator's pricing model (use ``check_price``). Returns
\``{"success": true, "voice": {...}}``.

Input parameters:

- `bans`
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).
- `profile` (string)

### `excalibur_refine_post_region` (~289 tokens)

Refine a flagged region of a post with an LLM — server-side.

The operator's LLM key stays in the vault and never leaves the
server. Send the flagged ``region``, the surrounding ``full_text``, an
optional ``instruction`` (what to change), and the editor's ``voice``
profile + ``bans`` (JSON array or comma list of banned constructions).
Returns ``{"success": true, "suggestions": [...3 strings...]}``.

Paid: the AI cost is metered as a tollbooth fare. The fare is refunded if
no LLM key is configured or the upstream call returns nothing.

Args:
    region: The flagged span to rewrite.
    full_text: The whole tweet, for context.
    instruction: What the editor wants changed (optional).
    voice: Voice-profile text fed to the model (optional).
    bans: Banned constructions — JSON array or comma-separated (optional).
    npub: Your DPYC patron npub for credit billing.

Input parameters:

- `bans` (string)
- `dpop_token` (string)
- `full_text` (string)
- `instruction` (string)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `region` (string, required)
- `voice` (string)

### `excalibur_resolve_dynamic_block` (~550 tokens)

Start resolving a dynamic post block with an LLM — returns a CLAIM CHECK.

A dynamic block's ``prompt`` is run by the model (with web search + web fetch for
live data) and woven into the surrounding post ``context`` in the author's
\``voice``. The author's instruction governs length — there is no character cap
(X supports long-form posts). The operator's LLM key stays in the vault
and never leaves the server.

Because that work (paginated fetches + generation) can outlast a client
timeout, this returns immediately with a **claim check** instead of the text:
\``{"success": true, "claim_check": "...", "status": "pending",
"poll_after_seconds": N}``. Redeem it with the free companion
\``fetch_dynamic_block(claim_check)`` until ``status == "done"`` (then read
\``result.text``). (The scheduler resolves blocks directly server-side at fire
time and does not use this tool.)

Paid: the AI cost is metered as a tollbooth fare on THIS start call, refunded
if no LLM key is configured or the job ultimately fails.

Args:
    prompt: The dynamic block's prompt to run.
    context: The surrounding composed post (may contain the ⟨HERE⟩ marker).
    voice: Voice-profile text fed to the model (optional).
    bans: Banned constructions — JSON array or comma-separated (optional).
    allowed_domains: Author allowlist for web_fetch — JSON array or
        comma-separated. Blank = fetch any URL the prompt references.
    max_fetches: Author budget for web lookups (search + fetch), 1..25.
    runtime_limit_seconds: Author's time budget (clamped 60..900). Sets the
        job's runtime ceiling and the poll cadence (first poll ~75% of it),
        and is available to the operator's pricing model for ad-valorem fares.
    npub: Your DPYC patron npub for credit billing.

Input parameters:

- `allowed_domains` (string)
- `bans` (string)
- `context` (string)
- `dpop_token` (string)
- `max_fetches` (integer)
- `npub` (string): Required. Your Nostr public key (npub1...) for credit billing.
- `prompt` (string, required)
- `runtime_limit_seconds` (integer): Author's time budget for this block in seconds (60–900). Bounds how long the job may run AND sets the poll cadence; the operator may price it ad valorem.
- `voice` (string)

### `excalibur_fetch_dynamic_block` (~195 tokens)

Redeem a ``resolve_dynamic_block`` claim check (free, proof-gated).

Poll this with the ``claim_check`` from ``resolve_dynamic_block`` until
\``status == "done"`` (the resolved fragment is ``result.text``). While the
job runs it returns ``{"status": "running", "poll_after_seconds": N}``; on
failure ``{"status": "error", ...}`` (the start fare is refunded); an unknown
or aged-out claim returns ``{"status": "expired", ...}``. Owner-scoped — only
the npub that started the job can redeem it. Also acts as the watchdog: a
stalled job is re-kicked when polled.

Input parameters:

- `claim_check` (string, required)
- `dpop_token` (string)
- `npub` (string): Required. Your Nostr public key (npub1...).

### `excalibur_harvest_metrics` (~187 tokens)

Operator-only: one cadence-aware metrics harvest sweep.

Drains due ``metrics_harvest_job`` rows (t+15m … t+28d), fetches X
\``non_public_metrics`` / ``organic_metrics`` under each patron's OAuth
context, and appends ``post_metrics_snapshot`` rows. A missed cadence is
permanent data loss — failed jobs retry up to 5 attempts then land in the
dead-letter queue; pass ``requeue_dead_id`` to retry one. Also runs as
phase 3 of every ``process_scheduled_posts`` tick.

Input parameters:

- `dpop_token` (string)
- `npub` (string): The OPERATOR's npub (npub1...); this tool is operator-only.
- `requeue_dead_id` (string): Optional dead-letter job UUID to requeue before the sweep.

### `excalibur_get_post_metrics` (~112 tokens)

Patron: raw metrics snapshot series for one owned post.

Returns the append-only ``post_metrics_snapshot`` rows (impressions, likes,
clicks, cadence_key, t_offset, link_placement, snippet_ids) ordered by
capture time. Empty when the post has not been harvested yet.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Your npub (npub1...).
- `post_id` (string, required): The post UUID whose snapshot series to return.

### `excalibur_post_performance` (~105 tokens)

Patron: derived reach scores across your harvested post corpus.

Computes escape velocity (t+15m vs rolling median), breakout ratio
(impressions ÷ followers), link-placement cohort medians, and
snippet/voice attribution from the durable snapshot store — signals that
come from owning the curve, not proxying a single X endpoint.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Your npub (npub1...).

### `excalibur_post_performance_infographic` (~85 tokens)

Patron: SVG infographic of post performance (gold-steel theme).

Mirrors ``account_statement_infographic`` — a dark-themed SVG of corpus
size, median t+15m impressions, top posts, and link-placement cohorts.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Your npub (npub1...).

### `excalibur_process_scheduled_posts` (~206 tokens)

Launch a publisher for every due post (operator-only).

Selects ``scheduled`` posts whose ``publish_at`` has arrived, claims each
atomically, and starts one background publisher per post. It does NOT
publish: composing content, billing the owner, posting to X and recording the
outcome all belong to the publisher, which runs on the async job queue and so
may take the minutes a dynamic block needs. This call returns as soon as the
work is dispatched — expect it to be fast even when the publishing itself is
slow, and read per-post outcomes from ``get_scheduler_log`` or the post rows.

Requires the operator's npub proof; the trigger itself is free. Returns
\``{kind: "tick", processed, launched, contended}``.

Input parameters:

- `dpop_token` (string)
- `npub` (string): The OPERATOR's npub (npub1...); this tool is operator-only.

### `excalibur_get_scheduler_log` (~207 tokens)

Read recent scheduler-tick outcomes.

Each ``process_scheduled_posts`` run — fired by the Cloudflare cron Worker or
a manual trigger — records its summary. This surfaces them so the FE debug
log can show what the Worker is doing: the per-tick heartbeat (proof it ran)
and per-post outcomes (posted / skip+error reasons like
\``insufficient_balance`` or ``oauth_token_expired``).

Owner-scoped: the operator sees every tick in full; any other proven patron
sees the global heartbeat (``processed`` count + ``run_at``) plus only the
per-post entries for THEIR OWN posts. Free; npub proof required. Returns
\``{runs:[{run_at, summary}], scope}``.

Input parameters:

- `dpop_token` (string)
- `limit` (integer): How many recent runs to return (1..100).
- `npub` (string): Your npub (npub1...).

### `excalibur_scheduler_pending` (~224 tokens)

What is the scheduled-post cron Worker waiting on? (operator-only).

When the Worker's authorization lapses it DMs the operator a challenge
phrase and parks. This returns that pending phrase so the operator can match
it against the DM before approving in Studio — the Device-Grant second
surface for a headless actor. The phrase lives only in the Worker's KV (an
impostor can't inject it); we read it AS the operator (a kind-27235 signed
with the operator key), so the human never signs anything in the browser.

\``restricted``: gated to the operator npub, free. Never returns the active
session token. Returns ``{phase, code, reason, requestedAt}`` — ``phase`` is
\``pending`` / ``active`` / ``idle``, or ``unavailable`` if the Worker can't
be reached.

Input parameters:

- `dpop_token` (string)
- `npub` (string): The OPERATOR's npub (npub1...); this tool is operator-only.

### `excalibur_scheduler_status` (~158 tokens)

The scheduler's configuration and current status (free; any proven patron).

Relays the cron Worker's public ``/status`` — cadence, version, renewal
window, and current authorization phase (``pending`` / ``active`` / ``idle``,
no challenge phrase) — and adds the operator npub it acts for. No secrets:
the pending phrase (operator-only) is ``scheduler_pending``; the per-tick
traffic log is ``get_scheduler_log``. Returns the merged config, or
\``{worker: "unavailable"}`` merged in if the Worker can't be reached.

Input parameters:

- `dpop_token` (string)
- `npub` (string): Your npub (npub1...).

### `excalibur_scheduler_check_now` (~168 tokens)

Run one scheduler tick now (operator-only).

Pokes the Worker's ``/tick`` — the same work the ~30-minute cron does: it
claims a pending proof reply (completing your authorization) and fires any
due posts. Use it right after approving in Studio so you don't wait for the
next tick. The Worker runs the tick in the background and returns
immediately; re-read ``scheduler_status`` a few seconds later to see the
phase flip. Returns ``{started: true}`` or ``{started: false}`` if the
Worker couldn't be reached.

Input parameters:

- `dpop_token` (string)
- `npub` (string): The OPERATOR's npub (npub1...); this tool is operator-only.

## Diagnostics

Captured diagnostic sections: TLS, DNSSEC, Authorisation, Transports. The full working is on the page: https://verifymcp.io/servers/lonniev-excalibur-mcp/excalibur-mcp#diagnostics

## Score history

- 2026-08-03: 60
- 2026-08-02: 59
- 2026-08-01: 59
- 2026-07-31: 58
- 2026-07-30: 56
- 2026-07-28: 55
- 2026-07-27: 52
- 2026-07-26: 52

## Links

- Remote endpoint: https://excalibur-mcp.fastmcp.app/mcp
- Repository: https://github.com/lonniev/excalibur-mcp
- Changelog RSS feed: https://verifymcp.io/servers/lonniev-excalibur-mcp/excalibur-mcp/changelog.xml
- Changelog JSON feed: https://verifymcp.io/servers/lonniev-excalibur-mcp/excalibur-mcp/changelog.json
- HTML version of this page: https://verifymcp.io/servers/lonniev-excalibur-mcp/excalibur-mcp
