Skip to main content
Glama

Liquid Agent

x402 debugger

x402_check
Read-onlyIdempotent

Free. Decode any x402 payment request (from a URL, a PAYMENT-REQUIRED header or a 402 body) into plain English with warnings, and optionally verify a signed payment (PAYMENT-SIGNATURE / X-PAYMENT header) the way a facilitator would: recipient, amount, time window, EIP-712 signature against the token's real domain, nonce reuse and balance. Every failed check comes with the fix.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoThe paid endpoint URL (https). It is called once, without payment, to read its 402.
bodyNoJSON body for a POST url.
methodNoHTTP method for url (default GET).
paymentNoOptional signed payment header value to verify.
requirementNoInstead of url: the PAYMENT-REQUIRED header value (base64) or the 402 JSON body.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
requirementNoDecoded payment request: options in plain English, warnings
verificationNoIf a payment was given: each facilitator check, pass/fail, and the fix

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the safety profile is covered. The description adds genuinely useful context beyond that: it is "Free", every failed check includes a fix, and verification mirrors what a facilitator checks (recipient, amount, time window, EIP-712 domain, nonce reuse, balance). It does not detail rate limits or output shape, but the output schema covers returns.

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

Conciseness4/5

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

Front-loaded with the essential facts ("Free.", the decode action, the optional verify). It is one long sentence but every clause carries information; the only slight cost is density, where the parameter mappings could have been split for readability.

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 an output schema present, return values need not be explained, and the description covers both modes plus error behavior (warnings, fixes). The one implicit gap is that it never states that at least one of url/requirement/payment must be supplied, though the schema hints at this via "Instead of url".

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaning on top by mapping parameters to the real protocol artifacts (PAYMENT-REQUIRED header / 402 body for requirement, PAYMENT-SIGNATURE / X-PAYMENT for payment) and by framing url as the called-once-for-402 path, which clarifies the mutually exclusive inputs better than the schema alone.

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 specific verbs and resource: decode an x402 payment request and optionally verify a signed payment. The two input paths (request decoding vs. payment verification) are named explicitly, and none of the siblings (bridge_*, payment_readiness, stocks_*) overlap this debugging role.

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?

"Decode any x402 payment request... optionally verify a signed payment" gives clear context for both operating modes. It does not name exclusions or point to an alternative tool (e.g. payment_readiness) for cases where the caller wants a broader readiness verdict, so it stops short of full when/when-not guidance.

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.