Skip to main content
Glama
Restaurant MCP Server

Restaurant MCP Server

by serdarpolat

void_order_item

Destructive

Cancel a single line item on an open restaurant order, requiring a reason and user approval before completion.

Instructions

Void (cancel) one line of an open order. Requires user approval.

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": {
      "order_id": "<order_id>",
      "order_item_id": "<order_item_id>",
      "reason": "<reason>"
    },
    "name": "void_order_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy it is voided, e.g. 'Müşteri vazgeçti'.
order_idYes
order_item_idYesLine id from get_order (not menu id).
confirmation_tokenNoToken from a previous 'confirmation_required' answer. Omit on first call.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered; the description usefully adds that user approval is required, which is not in the annotations. However, it omits the two-phase confirmation protocol (first call returns 'confirmation_required', then retry with a token) that the confirmation_token parameter implies and that materially changes how an agent must call this tool.

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, zero filler, with the operation and its scope front-loaded ahead of the approval constraint.

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?

An output schema exists, so return values needn't be described, and the annotations carry the destructiveness signal. For a destructive multi-step mutation, though, the description should spell out the confirmation-token retry flow and any failure conditions (closed order, already-voided line) to be complete.

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 75% and the schema itself explains the tricky cases well ('Line id from get_order (not menu id)', token omit-on-first-call, reason example). The description adds no parameter meaning beyond that, so the baseline 3 holds.

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?

States a specific verb and resource with clear scope: 'Void (cancel) one line of an open order.' The 'one line' / 'open order' qualifiers distinguish it from a whole-order cancellation, though the sibling cancel_order is never named explicitly.

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 sentence 'Requires user approval' is a precondition and hints at a confirmation flow, but the description never says when to choose this over cancel_order or add_items_to_order, nor what to do if the order is already closed or paid. Usage is implied rather than stated.

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