Skip to main content
Glama

x402 Pal

Check an x402 payment request

check_payment_request
Read-only

Checks an x402 payment request (the HTTP 402 response from a paid service) before it is paid. Verifies the token is the official USDC contract for the network, converts the price to dollars, checks the pay-to address against the seller's record, flags test networks, and looks the seller up on Agent Radar. Returns a verdict: no_problems_found, caution or do_not_pay. Never pays, signs or needs a wallet. Checks are logged in aggregate by the operator (seller host, price, network, pay-to address).

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": "check_payment_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoOptional. The https address of the paid endpoint. If no quote is given, the address is fetched with a plain GET and the quote it returns is checked.
quoteNoThe 402 response to check: the JSON body (as an object or a string) or the value of the PAYMENT-REQUIRED header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond them by naming the verdict outputs (no_problems_found, caution, do_not_pay), confirming no wallet or signing is involved, and disclosing that checks are logged in aggregate along with the exact fields recorded (seller host, price, network, pay-to address). That privacy/telemetry disclosure is exactly the kind of behavioral context annotations cannot convey.

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 dense paragraph, front-loaded with purpose, then the check list, then the verdict vocabulary, then the safety/logging caveats. Every clause carries information; there is no filler or restatement of the tool name.

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

Completeness5/5

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

With only two optional parameters, full schema coverage, and no output schema, the description supplies the missing return-value semantics by enumerating the verdicts and explaining what each check targets. An agent has everything needed to call it and interpret the result.

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%, and the schema already explains that url is optional and that quote accepts the JSON body or the PAYMENT-REQUIRED header value. The description adds no format or syntax detail beyond that, so the baseline 3 applies when the schema does the heavy lifting.

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 opens with a specific verb and resource ('Checks an x402 payment request (the HTTP 402 response from a paid service)') and scopes it in time ('before it is paid'). It then enumerates the exact checks performed and the three possible verdicts, so an agent knows precisely what the tool 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?

Usage context is clear: call it on a 402 quote before paying, and it explicitly states 'Never pays, signs or needs a wallet,' which tells the agent this is a pre-payment inspection step, not a payment step. There are no sibling tools to disambiguate against and no explicit when-not-to-use case, which keeps it just below 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.