Skip to main content
Glama

Paid x402 v2 declaration validator

x402_validate

Statically validate an x402 v2 payment declaration for protocol shape, Base/USDC fields, amount, recipient, timeout, and duplicate accepts. Price: $0.05 USDC on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
declarationYes
payment_signatureNoOptional x402 v2 PAYMENT-SIGNATURE value. Omit it on the first call to receive the live payment requirement; supply the signed value on the second call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the cost ($0.05 USDC on Base) and that validation is static, but omits the payment handshake behavior (the schema's two-call flow) and says nothing about failure modes, rate limits, or what a rejected declaration looks like. The pricing disclosure earns credit above the floor but the safety/interaction profile is thin.

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?

Two tight sentences with zero filler; the core action and its checks are front-loaded and the pricing fact is appended compactly. Every clause earns its place.

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

Completeness3/5

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

There is no output schema and no annotations, and the required `declaration` object is structurally undocumented, so the description must do more than it does. It covers what is validated and the price, but leaves the payment flow, return shape, and validation outcome semantics to the schema's single parameter note.

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 50%: `payment_signature` is well documented in the schema, but `declaration` (a nested object) has no schema description at all. The description partially compensates by naming the fields the declaration is checked for, giving the agent a mental model of the object's shape, but it adds no syntax, format, or example details.

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?

Specific verb ('Statically validate') plus a precise resource ('x402 v2 payment declaration') and an enumeration of the exact checks performed (protocol shape, Base/USDC fields, amount, recipient, timeout, duplicate accepts). This is unmistakably distinct from the catalog/GTIN siblings, which an agent can tell apart without opening any schema.

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?

The description never states when to reach for this tool, what prerequisite state must exist (a drafted x402 v2 declaration), or how it relates to any alternative. 'Statically' hints that no live/on-chain verification occurs, but no explicit usage condition or exclusion is offered.

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.