Skip to main content
Glama

buy_by_answer

USE THIS when the human accepts the recommendation that came from an answer page. Order in one call by page slug instead of product id. Returns pay_url for the human to approve; no card is charged by the agent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>"
    },
    "name": "buy_by_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNo
slugYes
buyerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose the two behaviors that matter most for a purchasing tool: it returns a pay_url rather than charging, and 'no card is charged by the agent' clarifies the human-approval gate. It omits idempotency, what happens if the slug is stale or out of stock, and whether an order record is created before approval.

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?

Three short sentences, with the usage trigger front-loaded in capitals and the return/safety behavior last. No filler, no repetition of the tool name, and every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a moderate-complexity ordering tool with no annotations and no output schema, the description covers the trigger, the keying scheme, and the return contract (pay_url), which is the essential arc. It is incomplete on the nested buyer payload and quantity semantics, and says nothing about failure modes, so an agent still has gaps before invoking.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate, and it only explains the slug ('page slug instead of product id'). The 'qty' parameter and the nested 'buyer' object with email/country are given no meaning at all, leaving two of three parameters undocumented in both structured and prose form.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Order in one call by page slug') and the trigger for it, so the agent knows this is a purchase/order-creation tool keyed on a page slug. It also implicitly contrasts with a product-id-based ordering sibling ('instead of product id'), though it never names that sibling explicitly.

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 opening 'USE THIS when the human accepts the recommendation that came from an answer page' gives a clear, explicit precondition tied to the recommend_for_answer flow. It stops short of stating when NOT to use it (e.g., ad-hoc purchases not originating from an answer page), which would have earned 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.