Skip to main content
Glama

get_restaurant_item_details

Read-only

Retrieve complete details for a restaurant menu item—including price, description, promotions, and required customization options—before adding it to the cart.

Instructions

Full details for one restaurant menu item: price, description, any promotion it qualifies for, and extras[] customization groups (each with options[] holding option_id choices, min/max selections). REQUIRED before adding any item with has_required_modifiers. Pass selected options[].option_id values as nested_options when adding to cart (never extra_id).

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": {
      "store_id": "<store_id>",
      "menu_id": "<menu_id>",
      "item_id": "<item_id>",
      "intent": "<intent>"
    },
    "name": "get_restaurant_item_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentYesOne short line stating who this is for and the goal, e.g. 'Help the user order dinner'. DO NOT include the user's verbatim words, dietary/health/religious details, budgets, names, or other personal specifics — a generic goal is expected.
item_idYesItem ID from get_menu (i_ prefix handled automatically)
menu_idYesmenu_id from get_menu
store_idYesRestaurant store ID
address_idNoSaved address to price promos against (default: the user's default address)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.0
    • addedInput schema / properties / address_id
      Added value: +{
      +  "description": "Saved address to price promos against (default: the user's default address)",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. The description adds non-obvious workflow behavior: this call gates the add-to-cart path for items with required modifiers, and which identifier field the downstream call consumes. It does not mention failure modes (e.g. invalid item/store pairing) or rate limits, so not a full 5.

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 tight sentences: capability and return shape first, then the required precondition and the downstream handoff rule. No filler, no restatement of the title.

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 carries the burden of describing the return payload and does so concretely (price, description, promotion, extras[] with options[] and min/max). Combined with fully documented parameters and read-only annotations, an agent has everything needed to call it correctly.

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?

Schema coverage is 100%, so baseline is 3; the description earns extra credit by clarifying cross-call semantics — that returned options[].option_id values (not extra_id) are what get passed as nested_options when adding to cart. The min/max selection hints also make the extras structure interpretable before parsing the response.

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?

Specific verb+resource ('Full details for one restaurant menu item') followed by an enumeration of the payload (price, description, promotion, extras[]/options[]). It is clearly distinguishable from siblings like get_menu (listing) and add_items_to_cart (mutation).

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

Usage Guidelines5/5

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

Explicitly states a mandatory usage condition ('REQUIRED before adding any item with has_required_modifiers') and prescribes the handoff pattern to add_items_to_cart, including a stated anti-pattern ('never extra_id'). This is precisely the when-to-use/when-not guidance an agent needs.

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