Skip to main content
Glama

buy_product

STEP 2 of buying: place the order using the confirm_token from quote_order. This SPENDS real balance and delivers the product. Bước 2: đặt mua thật bằng confirm_token từ quote_order (TRỪ TIỀN THẬT & giao hàng). Chỉ gọi sau khi người dùng đã đồng ý mua với giá đã báo. Trả order_code và nội dung sản phẩm đã giao.

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).

TDQS

A4.2/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 burden. It prominently warns that this SPENDS real balance / TRỪ TIỀN THẬT, discloses that the product is delivered, and states the return value. For a high-stakes mutating purchase tool, this is excellent behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The essential information is front-loaded and impactful, but the full content is duplicated in Vietnamese immediately after the English text. The bilingual repetition adds only a small amount of unique return-value detail while roughly doubling length, so it is less concise than it could be.

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 spending operation with no output schema and no annotations, the description covers the prerequisite, the risk, the delivered outcome, and the returned payload. It does not discuss failure modes such as expired tokens or insufficient balance, but the schema already notes token expiry, and the coverage is adequate for the tool's complexity.

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 100%. Both api_key and confirm_token are already well described in the input schema, including the requirement that the key match quote_order and the token validity/single-use window. The description only reinforces the token source without adding new semantic detail.

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 action (place the order), identifies it as STEP 2 after quote_order, and states the resource being affected: real balance spent, product delivered, order_code returned. This clearly differentiates it from sibling tools like quote_order and check_order_status.

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 explicitly says to call only after the user has agreed to the quoted price, and to use the confirm_token from quote_order. That is clear when-to-use guidance. It does not enumerate alternatives, but the preconditions are strong enough to prevent misuse.

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
Disambiguation3/5

Product discovery tools such as best_sellers, latest_products, recommend_products, and similar_products have related listing purposes and could be confused, though descriptions clarify sorting and filtering criteria. Social-check tools also overlap: check_live_facebook, deep_inspect, and check_health_bulk can all verify Facebook accounts. Most tools are distinct, but the boundaries are not always crisp.

Naming Consistency4/5

The dominant convention is snake_case verb_noun, e.g. buy_product, search_products, list_categories, check_order_status. A few names deviate, such as best_sellers, latest_products, similar_products, how_to_start, and deep_inspect, but they are still readable and predictable.

Tool Count3/5

With 19 tools, the set falls into the 16-25 heavy range and could be trimmed: there are nine product-listing/search/recommend tools and three overlapping social-check tools. The count is not extreme, and the combined commerce-plus-verification scope is covered, but it feels heavier than necessary.

Completeness4/5

The core commerce workflow is complete: discover products, quote, confirm purchase, check order status, and view balance. Minor gaps include no order-history tool, no cancellation tool, and no actual top-up execution, but these are workaroundable for the stated shop purpose.

Resources