Skip to main content
Glama

HTAM

prepare_checkout

Record explicit purchase intent for one unit of a catalog item. When enabled and approved, return the seller checkout link. Obtain buyer approval before proceeding. This creates no order or payment and does not verify checkout was reached.

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": {
      "item_id": "<item_id>",
      "purchase_intent": "<purchase_intent>"
    },
    "name": "prepare_checkout"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYes
purchase_intentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations only declare write-shaped, non-idempotent, non-destructive, closed-world behavior; the description adds the important context that no order or payment is created and that checkout completion is not verified. That meaningfully reduces the risk of an agent misreporting success. It stops short of saying what happens on repeat calls (already flagged non-idempotent) or what conditions cause no link to be returned.

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?

Four short sentences, each carrying distinct information: the action, the conditional return, the approval precondition, and the negative guarantees. The negative guarantees are placed last where they act as a caveat, and there is no filler or repetition.

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 2-parameter tool with no output schema, the description covers the action, the returned artifact (seller checkout link), the approval gate, and the limits of its side effects. The remaining gap is failure handling — what an agent should conclude when no link is returned — which matters for correct downstream behavior.

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?

With 0% schema description coverage, the description must carry the semantics. "One unit of a catalog item" clarifies that item_id refers to a catalog item and that quantity is not adjustable, which is useful. It does not explain the item_id format/pattern or why purchase_intent is a boolean constrained to true — an unusual shape an agent could easily get wrong.

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?

"Record explicit purchase intent for one unit of a catalog item" gives a specific verb and resource, and the closing sentence ("creates no order or payment") implicitly separates it from an order-placement tool. It never names a sibling such as get_item or ask_seller, so the differentiation is inferred rather than explicit.

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

Usage Guidelines3/5

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

It states a precondition ("Obtain buyer approval before proceeding" and "when enabled and approved"), which is genuine usage guidance. However, it does not say when to call this versus browsing with get_item or contacting the seller with ask_seller, nor what to do if the call does not return a link.

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.

Resources