Skip to main content
Glama

Liquid Agent

Can this wallet pay this endpoint?

payment_readiness
Read-onlyIdempotent

Free. One call to know if a wallet can pay an x402 endpoint right now: reads the endpoint's 402, checks the wallet's balance on each accepted network, and if it cannot pay, returns the cheapest fix (e.g. move USDC from the chain where it sits, with the exact bridge_quote arguments).

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).
addressYesThe paying wallet.
requirementNoInstead of url: the PAYMENT-REQUIRED header value (base64) or the 402 JSON body.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fixNoCheapest step to become able to pay
noteNoNotes
readyNoCan pay right now
addressNoPayer
optionsNoEach payment option with balance and whether it is enough

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld). The description adds context beyond them: it is free, it makes one unpaid outbound call to the endpoint to read its 402, and on failure it returns a computed remedy with exact bridge_quote arguments. Missing any note on rate limits or failure modes, so not a 5.

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?

Single sentence, front-loaded with the two most decision-relevant facts ('Free', 'One call'). It is dense but every clause earns its place; slightly long, but no filler.

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, the description need not explain return values, yet it usefully names the failure-path output (cheapest fix). It leaves the url/requirement interaction to the schema, which is acceptable given 100% coverage, but a short note on choosing between them would have closed the gap.

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%, so the schema already documents all five parameters including the url/requirement distinction. The description only restates that the endpoint's 402 is read from the url; it adds no format, precedence, or defaulting nuance beyond the schema.

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 a specific verb+resource ('know if a wallet can pay an x402 endpoint right now') and specifies the mechanism: reads the endpoint's 402, checks balance per accepted network. This clearly distinguishes it from siblings like x402_check or bridge_quote, which it references as the downstream remedy.

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

Usage Guidelines3/5

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

Usage is implied by the description ('if it cannot pay, returns the cheapest fix') and the 'Free' tag hints at when it is cheap to call, but the description never explicitly says when to use this versus x402_check or bridge_quote, nor does it state exclusions or prerequisites (e.g. that a URL or requirement is needed).

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.