Skip to main content
Glama

tollbooth-authority

authority_receive_credentials

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceNoRequired. The credential service name (must match the service used in request_credential_channel).
dpop_tokenNoRequired. The session phrase returned by request_credential_channel for this exact channel.
sender_npubNoRequired. The npub that sent the credentials.
credential_cardNoOptional. An ncred1... card to redeem directly (bypasses the relay drain; dpop_token not needed).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / credential_card / description
      Added value: +"Optional. An ncred1... card to redeem directly\n(bypasses the relay drain; dpop_token not needed)."
    • addedInput schema / properties / dpop_token / description
      Added value: +"Required. The session phrase returned by\nrequest_credential_channel for this exact channel."
    • addedInput schema / properties / sender_npub / description
      Added value: +"Required. The npub that sent the credentials."
    • addedInput schema / properties / service / description
      Added value: +"Required. The credential service name (must match\nthe service used in request_credential_channel)."
  2. First observed

TDQS

A5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden and does so thoroughly. It discloses the deterministic one-shot behavior, relay-only drain, deletion/NACK of wrong DMs, ACK/stop on the first match, courier_not_found failure mode, direct credential_card redemption without relay access, and post-success reinitialization of the payment processor client.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but every sentence earns its place: call timing, one-shot semantics, side effects, failure behavior, and the alternate redemption path are all operationally relevant. The key constraint is front-loaded with bold text and the structure makes the two paths easy to distinguish.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity, the absence of annotations, and the presence of an output schema that handles return-value documentation, the description covers all essential context: preconditions, exact relay behavior, destructive side effects, failure result, alternative credential_card path, and post-success behavior. Nothing critical is left for the agent to guess.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already documents each parameter, the description adds meaning beyond it by grouping sender_npub, service, and dpop_token as the 'response you want' and clarifying that dpop_token is not required when a credential_card is provided. It also ties service to the value used in request_credential_channel, reinforcing schema intent.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the operation: 'Pick up credentials from the Secure Courier' and identifies the flow it completes (CREDENTIAL-DELIVERY). It also explicitly distinguishes itself from the sibling tool receive_npub_proof, which is called the ownership-proof counterpart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides an explicit call condition: 'Call this only after the user confirms they have replied.' It also gives direct usage prohibitions ('Do NOT poll, loop, or retry'), names the alternative tool for ownership proofs, and explains when the credential_card path should be used instead of the relay-draining path.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.