Skip to main content
Glama

Verify x402 settlement

settle_verify
Read-onlyIdempotent

0.005 USDC per call via x402, no key (unpaid call returns PaymentRequired; retry with params.meta["x402/payment"]). Verify an x402 settlement on Base USDC right now (by tx hash, or payer+nonce / paymentPayload via USDC.authorizationState). Returns settled|failed|pending|not_settled|expired|unknown. Needs a key mts (X-API-Key header or apiKey argument). No key? call settle_trial_key (free, 50 calls/7 days). Full plan 1 USDC/30d incl. 1,000 calls via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
txNoSettlement tx hash on Base, 0x + 64 hex.
nonceNoEIP-3009 authorization nonce, 0x + 64 hex.
payToNoSeller receiving address 0x….
payerNoPayer / agent wallet address 0x… (40 hex).
amountNoExpected amount in USDC atomic units (6 decimals), e.g. "10000" = 0.01 USDC.
apiKeyNoYour MoneyTools Settle key mts_… (alternative to the X-API-Key header). No key: call settle_trial_key.
validBeforeNoAuthorization validBefore (unix seconds).
paymentPayloadNoThe x402 PAYMENT-SIGNATURE / X-PAYMENT payload (base64 JSON or object).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered; the description adds real context beyond that: a per-call charge, the exact unpaid-call failure mode (PaymentRequired) with the retry field, the mts_ key requirement and header/argument alternatives. It does not describe latency or how pending/unknown should be re-checked, 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.

Conciseness3/5

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

The purpose sentence is preceded by pricing and a plan pitch ('Full plan 1 USDC/30d incl. 1,000 calls'), and the key/auth instruction is repeated after the schema already documents apiKey. The content is useful but not front-loaded and carries marketing weight that does not help tool selection.

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 an 8-parameter read tool with no output schema, the description covers the operation, the three identifying lookups, the payment gate, the auth path and the full set of return statuses. What remains thin is guidance on interpreting non-terminal statuses such as pending or unknown.

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 coverage is 100%, so every parameter is already documented, giving a baseline of 3. The description adds only the grouping of which parameters combine into which lookup mode ('payer+nonce', 'paymentPayload via USDC.authorizationState'), which is mild added meaning rather than new syntax or constraints.

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

Purpose4/5

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

States a specific verb and resource ('Verify an x402 settlement on Base USDC') with a scope qualifier ('right now') that implicitly separates it from the polling sibling settle_watch. The core statement is clear, but it is buried after a payment-pricing preamble rather than front-loaded.

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 concrete invocation paths (by tx hash, or payer+nonce, or paymentPayload via USDC.authorizationState) and routes keyless callers to settle_trial_key explicitly. It does not state when to prefer this over settle_watch for ongoing monitoring, so the exclusions are only implied.

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