Skip to main content
Glama

Validate a captured x402 402 payment envelope (PAID $0.25)

v1_payment_envelope_validate

Validates a captured x402 402 payment envelope against the resource URL and current epoch, confirming payment details are correct before settlement.

Instructions

Validate a captured x402 402 payment envelope (PAID $0.25)

Remote route: POST /v1/payment/envelope/validate (0.25 USD x402/base/usdc on eip155:8453).

Input Schema

NameRequiredDescriptionDefault
envelopeNo
now_epochNo
resource_urlNo

Output Schema

NameRequiredDescriptionDefault
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior3/5

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

The description adds real context beyond annotations: the call is paid ($0.25 USDC on eip155:8453 base) and is a remote POST route, which is valuable for an agent budgeting calls. But it never says what validation actually checks (signature, amount, deadline, replay), nor why readOnlyHint=false for a tool named 'validate' — a meaningful gap an agent must resolve.

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?

Short and front-loaded, but the $0.25 price is stated twice (parenthetical plus route line) and the remote route largely restates the tool name. Little waste, but also very little payload per sentence.

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

Completeness2/5

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

An output schema exists, so return values need no explanation, but for a paid, non-read-only, open-world tool with three undocumented parameters and zero coverage, the description leaves the agent without enough to call it correctly or predict side effects.

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

Parameters2/5

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

Schema description coverage is 0% and the description documents none of the three parameters. 'envelope' is at least inferable from the prose, but 'now_epoch' (untyped, no description) and 'resource_url' (default "") are completely unexplained, so an agent must guess their format and role.

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+resource: validate a captured x402 payment envelope. It distinguishes itself from the x402 quote/index/anchor siblings by targeting an already-captured envelope, but never names those siblings or the capture step, so differentiation is implied rather than explicit.

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

Usage Guidelines2/5

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

No guidance on when to use this versus v1_x402_quote, v1_payment_deadline, v1_settlement_receipt or v1_receipts_mint, and no prerequisites such as how an envelope is obtained or what a passing validation authorizes. The only usage signal is the price.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools