Skip to main content
Glama

BlinkCodes catalog

buy_product

Buy a gift card, service top-up or travel eSIM and receive the delivery. Paid in USDC on Base (x402), no account and no browser. Call it twice: first with the order arguments to get payment requirements and an order_id (nothing is charged), then with that order_id plus the signed x402 payment payload to settle and receive the code.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailNoDelivery address. The code, eSIM profile or number is emailed here, and it is the only identity the order has. Required on the first call.
amountNoOnly for products where get_product reported requires_amount; send instead of item_id.
item_idNoDenomination id from get_product items[].
order_idNoSecond call only: the order_id returned by the first call.
quantityNoCopies to buy. Defaults to 1 — send it only to buy several.
product_idNoProduct id from search_catalog.
product_typeNogiftcard = voucher, topup = service recharge. eSIM data plans from search_catalog are bought as giftcard too — the value names the order shape, not the goods.
account_numberNoOnly for products where get_product reported requires_account: the recipient account the top-up credits.
payment_payloadNoSecond call only: the signed x402 PaymentPayload built from the requirements the first call returned.

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden — and it does substantial work: it discloses the two-phase charging behavior ('nothing is charged' on the first call), the payment rail (USDC on Base x402), that no account/browser is needed, and the email delivery path. What's missing for a payment tool is edge-case behavior: order expiry, what happens if the second call fails, idempotency/retry semantics, and refunds. Strong but not exhaustive.

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?

Purport, payment contract, and two-call flow each get exactly one sentence, with the most critical operational constraint (the two-call sequence) front-loaded before the settle step. Every sentence earns its place; there is zero filler or restatement of the name.

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?

This is a complex tool — 9 parameters, a two-call payment protocol, and no output schema — and the description covers purpose, payment rail, phase split, and delivery without assuming external knowledge. Minor gaps remain for a payment flow: the shape of the returned payment requirements, failure/expiry behavior, and what the first call returns beyond order_id (partially implied). These are secondary given the strong schema support, but a fully complete definition would address them.

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

Parameters4/5

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

Schema coverage is 100%, so every parameter is already documented individually, including cross-references to get_product's requires_amount/requires_account and search_catalog's product_id. The description adds genuine value beyond the schema by partitioning parameters across the two call phases (items like email, amount, product_id on call one; order_id and payment_payload on call two) and by clarifying the amount-vs-item_id exclusivity. This exceeds the baseline 3.

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 names a specific verb (buy) and distinct resources (gift card, service top-up, travel eSIM) plus the delivery outcome, and situates the payment contract (USDC on Base/x402). It clearly separates this from siblings: get_product and search_catalog are discovery/requirements tools, while this one settles a purchase. An agent can distinguish it without opening any schema.

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 an explicit two-call procedure — first with order arguments to obtain payment requirements and an order_id (nothing charged), then with the order_id plus the signed x402 payload to settle. This is strong context for how to drive the tool. However, it never names alternatives or states when NOT to use it (e.g., 'use search_catalog/get_product first to determine requirements'), leaving sibling routing implicit rather than explicit.

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

A4.3/5.0
Disambiguation5/5

Each tool serves a distinct purpose: searching, retrieving details, and purchasing. There is no overlap in their functions, making it clear which tool to use for each operation.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern (buy_product, get_product, search_catalog) with snake_case naming. The pattern is predictable and unambiguous.

Tool Count5/5

3 tools is well within the ideal range for a catalog server. Each tool covers a core operation (search, retrieve, purchase) without unnecessary bloat or missing essentials.

Completeness5/5

The tool set covers the full lifecycle for a catalog: searching for products, getting product details, and purchasing. No obvious gaps exist for the stated purpose of a catalog storefront.