Skip to main content
Glama

buy_product

STEP 2 of buying: place the order using the confirm_token from quote_order. IRREVERSIBLE — this SPENDS real balance and delivers the product; returns order_code + the delivered content. PREREQUISITE: a fresh confirm_token from quote_order (same api_key). WHEN TO USE: only AFTER the user has explicitly approved the exact total shown by quote_order. Do NOT call speculatively or to re-price. AFTERWARDS: check_order_status for delivery (set refresh=true if it looks stuck), get_mail_code for OTP, submit_complaint if faulty. Bước 2: đặt mua thật bằng confirm_token (TRỪ TIỀN THẬT & giao hàng); chỉ gọi sau khi người dùng đã đồng ý giá đã báo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesYour shop account API key (must match the one used in quote_order).
confirm_tokenYesThe confirm_token returned by quote_order (valid ~5 minutes, single use).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations provided, the description carries full disclosure responsibility. It fully discloses irreversibility, spending real balance, delivering the product, and returning order_code plus content. It also warns against speculative calls and notes the token's freshness requirement, all of which are critical for an agent to safely invoke this high-stakes action.

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 description is well-structured with clear labels (STEP 2, IRREVERSIBLE, PREREQUISITE, WHEN TO USE, AFTERWARDS) and every sentence serves a purpose. However, the Vietnamese sentence at the end essentially repeats the same information as the English, which is slightly redundant for an AI agent, though not distracting.

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?

For an irreversible, balance-spending action with no output schema, the description is remarkably complete: it explains the return value (order_code + content), prerequisites, when to call, and what to do afterwards. An agent would have everything needed to invoke this tool correctly and safely.

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?

The input schema already covers both parameters with detailed descriptions (api_key matching quote_order; confirm_token validity and single-use). The description reinforces these prerequisites but does not add new semantic meaning beyond the schema. Since schema coverage is 100%, the baseline of 3 is appropriate.

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 specific verb ('place the order') and resource ('confirm_token from quote_order'), and explicitly positions it as 'STEP 2 of buying', distinguishing it from sibling tools like quote_order and check_order_status. The irreversible nature and balance spending are immediately highlighted, leaving no ambiguity about what this tool does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is explicitly gated: 'PREREQUISITE: a fresh confirm_token', 'WHEN TO USE: only AFTER the user has explicitly approved the exact total', and 'Do NOT call speculatively or to re-price.' It also names the follow-up tools (check_order_status, get_mail_code, submit_complaint) and their conditions, giving the agent a complete decision framework.

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.