Skip to main content
Glama

Preview order

preview_order
Read-only

Validates item prices and stock before checkout, then returns a short-lived preview token and order details needed to place a confirmed KFC China order.

Instructions

Server-side price/stock validation before ordering and returns a local previewToken for place_order. 结算预校验,返回金额、门店、服务端账号登录状态和 previewToken(10 分钟内有效);不保证服务端锁价。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preview_order"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses that the token expires in 10 minutes and, importantly, that the result does not guarantee a server-side price lock — a caveat an agent could not derive from the annotations. It also reveals the returned fields (amount, store, server-side login state) in the absence of an output schema.

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 content is front-loaded and compact, but the same information is stated twice, once in English and once in Chinese, with the behavioral caveat appearing only in the Chinese half. Duplicated bilingual phrasing is real redundancy for a reader who needs the caveat surfaced once, prominently.

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?

With no output schema, the description does a reasonable job naming the returned fields and the token's lifetime. However, it never says how validation failures surface (error vs. flag in the response) or whether a stale previewToken is rejected by place_order, which are the gaps an agent most needs closed for a zero-parameter checkout step.

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

Parameters4/5

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

The tool takes zero parameters, so the baseline is 4. The description correctly implies the call is parameterless and context-derived (whatever is in the cart/session), adding no misleading parameter expectations.

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 gives a specific verb-and-resource pairing — server-side price/stock validation plus issuance of a previewToken — and explicitly ties it to the sibling place_order as the follow-up step. That differentiates it from place_order and the cart_* tools without the agent needing to open any schema.

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?

'before ordering' and 'returns a previewToken for place_order' establish the call ordering clearly enough to infer this is a prerequisite step of the checkout flow. There is no explicit 'when not to call' or statement about whether it is mandatory, but the workflow context is unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.