Skip to main content
Glama

View cart

cart_view
Read-only

Display current shopping cart lines, item quantities, and total; set refresh to true to re-read and verify the cart from KFC's server.

Instructions

Show cart lines, quantities and total. Set refresh=true to verify with KFC. 查看购物车,可从服务端刷新。

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": "cart_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
refreshNo是否重新从肯德基服务器读取购物车

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true; the description usefully explains the open-world side by noting refresh pulls from KFC's servers. It does not say what happens on a failed refresh (stale cache vs error) or how fresh non-refreshed data is, which matters for a cached read.

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?

Two short sentences with the resource and return values front-loaded, followed by the one conditional instruction. The Chinese sentence mirrors the English rather than adding new information, which is mildly redundant but not wasteful for a bilingual audience.

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?

With no output schema, the description correctly tells the agent what comes back (lines, quantities, total), and the single optional parameter is fully covered. The one gap is failure/empty-cart behavior, which for a read-only one-parameter tool is a minor omission.

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 coverage is 100% and the single parameter is documented in the schema itself. The description's 'set refresh=true to verify with KFC' restates the schema meaning and adds only the verb 'verify' as extra framing, so this is the baseline case where the schema does the work.

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 names the exact content returned: cart lines, quantities, and total. That is enough to separate it from the mutating cart siblings (cart_add, cart_remove, cart_set_quantity, cart_clear) without opening any schema, though it never explicitly says it is the read-only counterpart.

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?

The only contextual guidance is the conditional 'set refresh=true to verify with KFC', which tells the agent when to force a server read but not when to call cart_view at all, nor how it relates to preview_order or order_status. Usage is implied by the read-only nature rather than stated.

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