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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quoteIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/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 disclosure burden and succeeds emphatically: it corrects the misleading 'buy' name by stating the server 'holds no wallet' and 'does NOT spend your money.' It also discloses what is returned (amount, asset, payTo, facilitator) and the required follow-up step, which is exactly the high-risk behavioral context an agent needs.

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?

Three sentences, front-loaded with the core purpose before the safety clarification. The second sentence is long, but every clause carries necessary information about the returned fields and the payment flow. No wasted words.

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?

For a one-parameter tool with no output schema and no annotations, the description covers the purpose, the exact returned values, the cardinal safety property, and the next step in the workflow. The only notable absence is explicit quoteId semantics; everything an agent needs to invoke and continue after the call is otherwise present.

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 0%, so the description must compensate for the undocumented quoteId parameter, but it never mentions the parameter by name or states where its value comes from. The phrase 'for a quote' implies quoteId references a previously created quote, but format, source, and validation are left to inference. For a single-param tool this is a noticeable but not severe gap.

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—'Get the x402 payment challenge for a quote'—which clearly distinguishes this from sibling tools like quote (which creates the quote) and order_status (which tracks it). It goes well beyond the bare name 'buy' by stating exactly what is returned and where the operation sits in the payment workflow.

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?

The description gives a clear precondition—'Requires prior human confirmation of the quote'—and maps the workflow position: fetch the challenge here, pay from your own wallet, then POST the quote again with the payment signature. It doesn't explicitly name alternative tools or give when-not-to-use conditions, so it falls short of 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.

Resources