Skip to main content
Glama
x402 Micropayments & US City Compliance MCP

x402 Micropayments & US City Compliance MCP

Verify x402 payment signature

x402.verify

Verify an x402 PAYMENT-SIGNATURE against PAYMENT-REQUIRED terms through the facilitator before releasing paid content, confirming a buyer’s payment meets the agreed requirements.

Instructions

Verify an x402 PAYMENT-SIGNATURE against PAYMENT-REQUIRED terms via the facilitator. Call after a buyer presents a signature and before releasing paid content.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "payment_signature": "<payment_signature>",
      "payment_required": "<payment_required>"
    },
    "name": "x402.verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoOptional agent identity for quota accounting.
payment_requiredYesPAYMENT-REQUIRED JSON/header the signature is meant to satisfy.
payment_signatureYesPAYMENT-SIGNATURE header value from the buyer.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

The description adds some behavioral context by noting the verification is done 'via the facilitator,' which implies an external network call, and places it in the payment flow. It does not go deeper into side effects, account implications, or failure behavior, and the readOnlyHint=false annotation already suggests this operation might not be truly read-only. The description neither contradicts nor fully clarifies that.

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?

A single, immediately readable sentence. It front-loads the action and then adds the essential lifecycle guidance without unnecessary words. Every clause earns its place.

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 schema covering all parameters and an output schema presumably describing the verification result, the description adds the missing workflow context: when to call and what operation it performs. It is complete enough for a straightforward verification tool, though it could mention what happens if the signature is invalid or if the facilitator is unreachable.

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?

The input schema already documents all parameters and their descriptions, including the optional quota-accounting role of agent_id. The description does not need to repeat parameter details and does not add much beyond what the schema covers. This matches the baseline-3 expectation for high schema coverage.

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 clearly states a specific verb ('verify') applied to a specific resource ('PAYMENT-SIGNATURE against PAYMENT-REQUIRED terms') and identifies the pathway ('via the facilitator'). It immediately reads as distinct from siblings like x402.pay_and_fetch or x402.discover, so an agent can confidently choose this tool.

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 explicit flow guidance: 'Call after a buyer presents a signature and before releasing paid content.' This tells the agent when in the interaction to invoke it. It does not explicitly mention alternatives or exclusions, but the domain context makes the choice clear, so only a small deduction is warranted.

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