Skip to main content
Glama

AgentWorld

check_payment_readiness

[FREE] Find out whether you can complete a payment to an x402 endpoint RIGHT NOW, before you sign anything.

This answers a different question from check_x402_endpoint, which grades a seller's 402. This one runs the buyer's side of the handshake end to end: it reads the endpoint's terms, confirms they are complete enough to sign, calls the facilitator they name to see whether it actually answers /supported and /verify, prices the settlement against live Base gas and the Chainlink ETH/USD feed, and - when you pass a wallet - reads your on-chain balance to confirm it covers the price.

Returns verdict.can_pay_now, a blocking list naming anything that genuinely stops the payment, and a warnings list for defects you can work around yourself.

Two things it reports the way a buyer actually experiences them:

  • A missing or dead facilitator is a WARNING, not a blocker, because you can carry your own.

  • Gas is NOT needed to pay. Settling through a facilitator means signing an EIP-3009 authorization while the facilitator broadcasts, so the gas figures apply only if you broadcast the settlement yourself.

endpoint_url is the full URL. method is the verb the endpoint expects, GET or POST. wallet is an optional 0x address; pass it to check funding and self-broadcast headroom. Free, unauthenticated, and it never sends a payment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
methodNoGET
walletNo
endpoint_urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral disclosure burden and succeeds. It details the exact end-to-end actions (reads terms, checks facilitator, prices settlement, reads balance), the output structure (verdict.can_pay_now, blocking list, warnings list), and important behavioral nuances such as gas not being needed to pay and the tool never sending a payment. This is exemplary transparency for a financial-readiness check.

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?

Although the description is long, every sentence carries meaningful information. It is front-loaded with the core purpose, then organized into clear sections: the different question from the sibling, return value, buyer-experience nuances, and parameter meanings. The bulleted formatting makes the caveats scannable, and no content is redundant with the schema.

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?

For a complex tool with no annotations, this description is fully self-contained. It covers inputs, outputs, safety implications (never sends a payment), authentication (free/unauthenticated), edge-case handling (missing facilitator as warning), and the gas nuance. Even though an output schema exists, the description still explains the returned verdict, blocking list, and warnings list, making the tool highly usable without further research.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate. It does: endpoint_url is described as the full URL, method as the verb the endpoint expects with GET or POST examples, and wallet as an optional 0x address used to check funding and self-broadcast headroom. This gives an agent everything needed to populate all three parameters correctly.

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 outcome: 'Find out whether you can complete a payment to an x402 endpoint RIGHT NOW, before you sign anything.' It clearly distinguishes itself from check_x402_endpoint by stating that this tool runs the buyer's side of the handshake end to end rather than grading the seller's 402, so an agent can tell it apart from the sibling.

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

Usage Guidelines5/5

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

The description explicitly names the alternative tool and the difference: 'This answers a different question from check_x402_endpoint, which grades a seller's 402. This one runs the buyer's side...' It also explains when wallet should be provided, what the tool checks, and covers edge-case interpretations like missing facilitator being a warning rather than a blocker. The use context is concrete and actionable.

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.

Resources