Skip to main content
Glama

confirm_purchase

CDK Bot: receive the product key after paying. Two ways to pay: (1) one-shot — pass x_payment, a signed EIP-3009 "exact" X-PAYMENT header (from accepts[] in get_price_quote); the facilitator settles it gaslessly, no tx_hash needed. (2) two-step — send USDC yourself, then pass tx_hash + quote_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoPayment chain (default: "base")
game_idYesGame ID being purchased
tx_hashNoTwo-step flow: the USDC payment transaction hash on Base. Provide this OR x_payment.
quote_idNoRequired WITH tx_hash — locks the quoted price and prevents front-running. Not needed with x_payment.
x_paymentNoOne-shot flow: a base64-encoded EIP-3009 "exact" X-PAYMENT payload signed by the buyer wallet for accepts[0] from get_price_quote. Settles gaslessly via the facilitator — no tx_hash/quote_id needed.

TDQS

A4.5/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. It discloses the two payment flows (one-shot with gasless settlement, two-step with manual USDC transfer) and mentions the facilitator role. However, it does not describe error handling, idempotency, or what happens on failure, which would be useful for a payment-related tool.

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 description is concise at three sentences, each serving a purpose. It front-loads the main purpose, then efficiently outlines the two payment methods with minimal words. No fluff or redundancy.

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?

Given the tool's complexity (5 parameters, two flows, no output schema), the description covers the core functionality well. However, it omits the return value (presumably the product key), which is important for the agent to know what to expect. Additional details like error cases or permissions would improve completeness.

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

Parameters5/5

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

Schema description coverage is 100%, but the description adds significant value by explaining how x_payment and tx_hash/quote_id relate to the two flows. It clarifies that x_payment is a signed EIP-3009 payload from get_price_quote, and that quote_id is required with tx_hash to prevent front-running—details not present in 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?

The description clearly states the tool's purpose: receiving a product key after payment. It explains two distinct payment flows (one-shot and two-step), which distinguishes it from sibling tools like get_price_quote (for quoting) and check_order (for checking status). The verb 'confirm purchase' is implied, and the resource (product key) is explicit.

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 provides clear guidance on when to use each payment method: one-shot requires x_payment from get_price_quote, two-step requires tx_hash and quote_id. It implies that the tool should be used after payment is initiated, but does not explicitly state when NOT to use it or list alternative tools for different scenarios.

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 has a clear, distinct purpose: browsing filters, searching, getting details, quotes, payment confirmation, order checking, refunds, and reviews. No overlap or ambiguity.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with underscores (browse_filters, check_order, confirm_purchase, etc.), making them predictable and easy to understand.

Tool Count5/5

8 tools cover the essential workflows of a digital product marketplace without being excessive. Each tool serves a necessary step in the user journey.

Completeness4/5

The tool set covers search, filtering, pricing, payment, order status, refunds, and reviews. Missing a dedicated tool for listing past orders, but the workflow is otherwise complete.

Resources