Skip to main content
Glama
Restaurant MCP Server

Restaurant MCP Server

by serdarpolat

pay_order

Destructive

Process payment for an open restaurant order and close it to free the table, with required approval.

Instructions

Take payment for an open order and close it (frees the table). 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>",
      "method": "<method>"
    },
    "name": "pay_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodYes
order_idYes
discount_reasonNoRequired with a discount.
discount_percentNo
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

B3.3/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 mutation profile is covered. The description adds useful context beyond that: the order is closed and the table is freed, and user approval is required. However, it never mentions the confirmation-token two-step flow that the schema implies, which is the most consequential behavioral detail of 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?

A single dense sentence with the action front-loaded and the side effect parenthesized. Nothing is wasted and nothing important is buried.

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 need not be explained, and the mutation/destructive profile is covered by annotations. What is missing is the retry/confirmation flow and the discount-with-reason coupling, both of which affect whether a call succeeds.

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

Parameters2/5

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

Schema description coverage is only 40% and the description compensates for none of it, saying nothing about method, order_id, discount_percent, discount_reason, or confirmation_token. The two-step approval flow (first call returns 'confirmation_required', then resubmit with a token) is central to invoking this tool correctly and is never surfaced in the description.

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 names a specific verb and resource ('Take payment for an open order') and adds the state change it causes ('close it, frees the table'), which distinguishes it from cancel_order and void_order_item. It stops short of explicitly naming which sibling to use when the order is not open or the payment fails, so it is clear but not fully differentiated.

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?

Usage context is only implied: the order must be 'open' and 'user approval' is a stated prerequisite, which is a real gating rule. There is no explicit guidance on when to prefer this over cancel_order or void_order_item, nor what to do if payment cannot be taken.

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