Skip to main content
Glama

Report an x402 payment outcome

report_x402_payment
Idempotent

After your agent pays an x402 seller with any wallet, report what came back. Needs the resource URL, the settlement transaction hash and the outcome. Free, no account, no key; the report counts only with on-chain proof.

Input Schema

NameRequiredDescriptionDefault
urlYesThe x402 resource URL that was paid for
outcomeYesWhat came back: ok (the response was usable for its purpose), non_delivery (an error, an empty body or nothing usable after paying), wrong_goods (a usable response, but not what was asked for), overcharge (charged more than the quoted or listed price), duplicate (two settlements for one purchase)
tx_hashYesThe settlement transaction hash on Base: the `transaction` field of the seller's PAYMENT-RESPONSE or X-PAYMENT-RESPONSE header (base64 JSON)
http_statusNoThe HTTP status of the paid response, if known
quoted_usdcNoThe price the 402 quoted, in USDC, if known

Output Schema

NameRequiredDescriptionDefault
payerYesThe paying wallet, read from the transaction (never from the report)
pay_toYes
reasonYesWhy a report was rejected; null otherwise
statusYesverified: counted once folded in (minutes); pending: checked on Base again within minutes; duplicate: this transaction was already reported; rejected: not counted, see reason
sentenceYesThe result in one sentence
amount_usdcYesUSDC moved, read from the transaction
verification_urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotent=true, destructive=false, openWorld=true and readOnly=false, so the safety profile is covered. The description adds valuable context beyond that: it is free, requires no account or key, and only counts with on-chain proof. It omits rate limits and what happens to duplicate reports, but the added auth/cost context is substantial.

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

Conciseness5/5

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

Three short sentences, front-loaded with the trigger and the required inputs. Every sentence earns its place: trigger, required fields, and cost/proof constraint.

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?

With a 100%-covered input schema and an output schema, the description covers the trigger, required inputs, cost/auth profile and proof requirement. It does not explain duplicate-report behavior despite idempotent=true, which is a minor gap for a reporting tool.

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% and the schema descriptions are detailed, including a full explanation of every outcome enum value and the tx_hash format. The description repeats the three required fields (url, tx_hash, outcome) but adds no syntax or format detail beyond the schema. Baseline 3 applies.

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 (report) and resource (an x402 payment outcome), plus the trigger (after your agent pays a seller with any wallet). This clearly distinguishes it from check_x402_seller, list_reliable_sellers and recent_changes, which query seller state rather than record a payment result.

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?

The description gives a clear triggering condition: use it after an agent pays an x402 seller. It also states the prerequisite that the report only counts with on-chain proof. It does not explicitly name alternatives or exclusions, so it falls short of a 5.

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