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

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it clearly states the most important safety property: the hosted server holds no wallet and does NOT spend money. It also enumerates the returned fields. It omits edge behavior such as challenge expiration or error conditions, which prevents 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?

The purpose is front-loaded in the first sentence, and the safety clarification immediately follows. Each of the three sentences earns its place, though the description is slightly longer than strictly necessary.

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, this description is unusually complete: it gives the input context, the exact returned data, the payment flow, and the follow-up action. Minor gaps remain around formal error behavior and challenge expiration semantics.

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 0% and the description never explicitly names quoteId, only referring to 'a quote' and 'prior human confirmation of the quote.' With one required parameter the inference is easy, but the description could have explicitly mapped quoteId to the identifier returned by the quote tool.

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 an explicit verb ('Get'), a specific resource ('x402 payment challenge'), and the relationship to a quote. The clarification that it does not spend money distinguishes it from what the name 'buy' would otherwise suggest and from siblings like quote and verify_receipt.

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?

Provides a concrete prerequisite: 'Requires prior human confirmation of the quote.' It also positions the tool in a multi-step flow by explaining that the user pays from their own wallet and then POSTs the quote again with a signature. It does not explicitly name alternative sibling tools, so it stops 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.

TDQS

A3.7/5.0
Disambiguation4/5

Each tool has a distinct role in the purchase lifecycle: browsing offers, looking up numbers, quoting, buying, checking orders, and verifying receipts. Some overlap exists between list_offers and lookup_phone, and buy and quote require careful reading, but the descriptions resolve the boundaries.

Naming Consistency3/5

Names mix noun-only tools (ledger, fx), bare verbs (buy, quote), and verb_noun pairs (list_offers, lookup_phone, verify_receipt, order_status). All are lowercase with underscores, so they are readable, but the naming pattern is not consistent.

Tool Count5/5

Eight tools is well-scoped for a top-up and payment service. Each tool maps to a necessary step or informational need, with no obvious bloat or redundancy.

Completeness4/5

The core lifecycle is covered: discover offers, quote, buy, check order status, and verify receipts. Minor gaps exist such as no explicit quote cancellation or order history listing, but the public ledger and expiry mechanism mitigate these.

Resources