Skip to main content
Glama

verify_settlement

Free post-payment step. Call only after the merchant x402 payment for a previously approved authorization or transaction clearance. Verifies the Base USDC settlement on-chain and, when it matches the authorization, returns a signed settlement receipt. The authorization_token may come from clearance_x402_ap2 or authorize_x402_ap2; payment_response is the merchant x402 PAYMENT-RESPONSE when available. No additional Trust fee is charged.

Input Schema

NameRequiredDescriptionDefault
payment_responseNoOptional merchant x402 PAYMENT-RESPONSE header/value from the completed payment; omit only when on-chain reconciliation can identify the settlement.
authorization_tokenYesSigned authorization_token returned by clearance_x402_ap2 or authorize_x402_ap2 for the exact merchant request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / authorization_token / description
      Previous value: -"Signed authorization_token returned by authorize_x402_ap2 for the exact merchant request."New value: +"Signed authorization_token returned by clearance_x402_ap2 or authorize_x402_ap2 for the exact merchant request."
  2. Changed2 schema fields changed
    • addedInput schema / properties / authorization_token / description
      Added value: +"Signed authorization_token returned by authorize_x402_ap2 for the exact merchant request."
    • addedInput schema / properties / payment_response / description
      Added value: +"Optional merchant x402 PAYMENT-RESPONSE header/value from the completed payment; omit only when on-chain reconciliation can identify the settlement."
  3. First observed

TDQS

A4.3/5.0
Behavior4/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 well: it discloses cost (free, no additional Trust fee), the on-chain verification action, the ordering prerequisite, and the signed settlement receipt returned on match. It still omits auth/permission requirements, rate limits, and behavior on mismatch (no receipt? error?), which keeps it short of a 5.

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?

Front-loaded and dense, with the critical precondition stated early. Minor waste: 'Free post-payment step' and 'No additional Trust fee is charged' convey the same cost information twice.

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

Completeness4/5

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

For a 2-parameter, fully documented schema with no output schema, the description supplies the ordering constraint, cost, parameter provenance, and the nature of the return value (signed settlement receipt). Only failure/mismatch handling and any auth requirements are left unstated.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents both parameters including provenance and optionality, making 3 the baseline. The description restates that authorization_token comes from clearance_x402_ap2 or authorize_x402_ap2 and that payment_response is the merchant PAYMENT-RESPONSE 'when available', adding only marginal nuance.

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 (verify) and resource (Base USDC settlement on-chain) and frames it as a post-payment step, which cleanly separates it from the pre-payment siblings authorize_x402_ap2 and clearance_x402_ap2.

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?

Gives an explicit gating condition ('Call only after the merchant x402 payment for a previously approved authorization or transaction clearance') and names which sibling tools produce the required authorization_token, so the ordering and prerequisites are unambiguous.

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