Skip to main content
Glama

buy

Get the x402 payment challenge for a quote. This hosted server holds no wallet, so it does NOT spend your money: it returns the exact amount, asset, payTo address and facilitator for you to pay from your own Algorand wallet, then you POST the quote again with your payment signature. Requires prior human confirmation of the quote. Works the same for a quote from quote_vouchers; the paid response is the batch (batchId and claim links) rather than an order.

Input Schema

NameRequiredDescriptionDefault
quoteIdYesthe quoteId returned by quote or quote_vouchers, after the human confirmed it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / quoteId / description
      Added value: +"the quoteId returned by quote or quote_vouchers, after the human confirmed it"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Despite readOnlyHint=false, it explains that the server holds no wallet and does not spend money, then describes the two-step flow (fetch challenge, POST quote again with signature). It also discloses that the paid response for voucher quotes is a batch with batchId and claim links rather than an order – context not derivable from annotations.

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?

The key safety point ('does NOT spend your money') is front-loaded in the first sentence, and each subsequent sentence adds a distinct operational fact: return payload, next step, precondition, and voucher-specific behavior. No filler.

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 no output schema, the description fully covers what the agent receives (amount, asset, payTo, facilitator; batchId and claim links for vouchers) and what the agent must do next. Nothing needed to invoke it correctly is missing.

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 coverage is 100%, and the parameter description already says quoteId comes from quote or quote_vouchers after human confirmation. The description's mention of the same fact adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 and resource ('Get the x402 payment challenge for a quote') and names the sibling tools whose output feeds it (quote, quote_vouchers). An agent can immediately distinguish this from quote, which only produces the quote itself.

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?

Gives a clear precondition ('Requires prior human confirmation of the quote') and clarifies that the same call is used for voucher quotes. It does not explicitly state what to do if confirmation has not happened or name an alternative path, which keeps it just short of 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.

Resources