Skip to main content
Glama

Verify x402 settlement

settle_verify
Read-onlyIdempotent

0.003 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

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnly/idempotent/non-destructive), the description discloses price (0.003 USDC), the unpaid-call failure mode (PaymentRequired with a retry via params._meta['x402/payment']), and the full set of return states. That is substantial operational context. The one omission is whether an unpaid attempt is itself charged or rate-limited.

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?

The text is dense but every sentence carries information — price, purpose, return values, auth, fallback. The main structural weakness is ordering: the payment/pricing sentence leads, pushing the actual purpose into second position, when the verb+resource should be front-loaded.

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 eight-parameter, zero-required, no-output-schema tool, the description covers cost, auth, failure handling, and the enumerated result states, so an agent can call it correctly. The remaining gap is combination logic — with no required params, the description never states the minimum sufficient input (e.g., tx alone vs payer+nonce+payTo).

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 explains each of the eight parameters, which sets the baseline at 3. The description adds some meaning by grouping parameters into alternative lookup modes (tx vs payer+nonce vs paymentPayload via USDC.authorizationState), but it does not clarify which combinations are actually required given zero required parameters.

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 names a specific verb and resource — verify an x402 settlement on Base USDC — and scopes it with 'right now', which separates it from the watch/monitoring siblings. It also enumerates the three identification paths (tx hash, payer+nonce, paymentPayload), so an agent knows exactly what this call does without opening the schema.

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?

It gives clear routing for the authentication branch (no key → call settle_trial_key; paid plan via x402) and states the immediate-verification use case. It stops short of an explicit exclusion such as 'use settle_watch instead if you need to poll until settlement', so it is strong but not fully disambiguating against the watch siblings.

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