Skip to main content
Glama

Panes

topup_pay

Destructive

Use one payment header and keep Authorization for the Panes key. Missing payment returns 402 with WWW-Authenticate (MPP) or PAYMENT-REQUIRED (x402) and payment in the JSON body. Stripe SPT payload is {spt,externalId}; x402 v2 payload includes resource, accepted requirements, signature and EIP-3009 authorization. The exact issued quote must match. A pending or uncertain payment must be polled, never repaid. Checkout returns a browser URL.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "topup_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
payment_signatureNo
payment_authorizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only say readOnly=false, idempotent=false, destructive=true; the description adds substantial context beyond them: the 402 failure shape with WWW-Authenticate (MPP) or PAYMENT-REQUIRED (x402) headers, payment details in the JSON body, scheme-specific payload shapes, and the explicit 'never repaid' rule for uncertain payments. That is meaningful non-obvious behavior for a payment mutation, though the success path is covered only by the one-line checkout note.

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

Conciseness3/5

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

Nearly every sentence carries technical content, but the ordering is poor: it opens with a procedural instruction rather than what the tool does, and protocol minutiae (EIP-3009, externalId) appear before the agent knows the basic action. Density is justified; front-loading is not.

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

Completeness3/5

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

For a destructive, non-idempotent payment mutation with no output schema, the error/402 handling and the no-repay safety rule are well covered, but the description says nothing about the success response beyond a browser URL, nor about which credential is required under which scheme. Enough to avoid the worst mistakes, not enough to call it confidently.

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

Parameters4/5

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

Schema coverage is 0%, so the description must carry the meaning, and 'Use one payment header' plus the per-scheme payload descriptions effectively convey that the two payment credential fields are alternatives selected by payment scheme, which the schema does not express (no oneOf/enum). It still never maps the parameter names directly (id as the quote identifier, which credential goes with which scheme), leaving some mapping work to the agent.

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

Purpose3/5

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

The description never states plainly that this tool submits payment for an issued top-up quote; the reader must infer the action from fragments like 'The exact issued quote must match' and 'Checkout returns a browser URL'. The resource (a top-up payment) and the protocol mechanics come through, but there is no clean verb+resource opening sentence that distinguishes it from siblings such as topup_quote or topup_status.

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

Usage Guidelines3/5

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

'The exact issued quote must match' implies a quote must be obtained first, and 'A pending or uncertain payment must be polled, never repaid' gives a concrete conditional rule that steers the agent toward a status/polling path. However, no sibling is named explicitly and there is no statement of when-not to call this tool, so the routing guidance remains inferential.

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.