Skip to main content
Glama

pay_payment_request_x402

Pay an open FortFi invoice via x402 EIP-3009 from a governed Turnkey vault. Requires Delegated Access on human developer keys or an agent account. Base mainnet first.

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": {
      "paymentRequestPid": "<paymentRequestPid>",
      "fromWalletId": "<fromWalletId>"
    },
    "name": "pay_payment_request_x402"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromWalletIdYesPayer vault id (must match invoice chain)
paymentRequestPidYesPublic invoice pid from checkout URL or create_payment_request

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the auth model and signing scheme (EIP-3009), which is more than most mutation tools offer. However, for a funds-moving operation it stays silent on irreversibility, idempotency/retry safety, gas or allowance requirements, and what happens when the wallet's chain does not match the invoice — all material for an agent about to spend money.

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

Conciseness4/5

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

Three compact, front-loaded clauses with no filler; the core action leads and prerequisites follow. The only weak spot is the trailing 'Base mainnet first', which is terse enough to be slightly ambiguous about whether it is an ordering rule or a hard chain restriction.

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 no-annotation, no-output-schema mutation tool that transfers value, the definition covers action, mechanism, and authorization but omits outcome and failure semantics entirely. An agent could invoke it correctly but could not predict what it gets back or whether a retry would double-pay.

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 100% and both parameters are already well documented ('Payer vault id (must match invoice chain)' and 'Public invoice pid from checkout URL or create_payment_request'), so the baseline is 3. The description adds a little genuine meaning beyond the schema by tying fromWalletId to 'a governed Turnkey vault' and by flagging 'Base mainnet first', which contextualizes the chain-match constraint the schema mentions.

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?

States a specific verb and resource ('Pay an open FortFi invoice') plus the exact mechanism ('x402 EIP-3009') and source ('governed Turnkey vault'). This is unmistakably distinct from the payment-request siblings (create_payment_request, get_payment_request, cancel_payment_request, extend_payment_request), which only manage the invoice rather than settle it.

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

Usage Guidelines4/5

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

Gives a clear precondition ('open' invoice), an authorization gate ('Requires Delegated Access on human developer keys or an agent account'), and a chain scope ('Base mainnet first'). What it lacks is explicit routing guidance against alternatives, e.g. whether to call get_payment_request first to confirm the invoice is still open or which sibling handles settlement on other chains.

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.

Resources