Skip to main content
Glama

query-meals

Read-only

Retrieve a store's menu to get product codes, names, and prices for ordering or price calculation; read-only demo data, not official McDonald's service.

Instructions

查询指定门店的菜单,返回餐品列表(code、名称、单价,单位元)。下单和试算时 items 里的 productCode 就是这里的 code。只读。演示数据,虚构,不连麦当劳官方服务。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
beTypeYes业务类型,取自 query-nearby-stores 返回的 beType;演示门店为 1(到店取餐)
orderTypeYes订单类型:1 到店,2 外送。演示门店只支持 1
storeCodeYes门店编码,取自 query-nearby-stores 返回的 storeCode;演示里只有 DEMO001

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.2
    • changedInput schema / properties / beType / description
      Previous value: -"1-到店取餐"New value: +"业务类型,取自 query-nearby-stores 返回的 beType;演示门店为 1(到店取餐)"
    • changedInput schema / properties / orderType / description
      Previous value: -"1-到店,2-外送"New value: +"订单类型:1 到店,2 外送。演示门店只支持 1"
    • changedInput schema / properties / storeCode / description
      Previous value: -"门店编码,从 query-nearby-stores 获取"New value: +"门店编码,取自 query-nearby-stores 返回的 storeCode;演示里只有 DEMO001"
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

The '只读' claim merely restates readOnlyHint=true, earning no extra credit. However, '演示数据,虚构,不连麦当劳官方服务' is genuine disclosure beyond the annotations: it warns the agent that results are mock data and must not be presented as real McDonald's information. No rate limits or failure modes are described, but for a read-only demo query the added fidelity is meaningful.

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 clauses with the core purpose front-loaded, followed by the output-to-input linkage and the demo-data caveat. No filler, no restatement of the tool name, and each sentence carries distinct information.

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

Completeness5/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 compensates by enumerating the returned fields (code, name, unit price with unit). All three required parameters are fully documented in the schema, and the demo/fictional disclaimer closes the remaining trust gap for a read-only tool.

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% and every parameter (storeCode, orderType, beType) already documents its source and enum meaning, so the baseline is 3. The description's mention of 'code' refers to the response field, not to any parameter, so it adds nothing to parameter semantics.

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?

States a specific verb and resource (查询指定门店的菜单) plus the exact return payload (code、名称、单价,单位元), and ties its output key to the downstream flow by naming 试算 (calculate-price) and ordering. An agent can distinguish it from query-nearby-stores, calculate-price, and the coupon/time siblings without opening 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?

Frames the tool as the prerequisite step for ordering and price calculation ('下单和试算时 items 里的 productCode 就是这里的 code'), which tells the agent when this call is needed and what it feeds. It gives no explicit exclusions or negative guidance, so it falls short of a full when/when-not statement.

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