Skip to main content
Glama
Restaurant MCP Server

Restaurant MCP Server

by serdarpolat

record_stock_purchase

Records received ingredient stock and increases inventory quantities. Use it to update stock after a purchase, with user approval required before changes are applied.

Instructions

Record received stock for an ingredient (increases stock). 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": {
      "ingredient_id": "<ingredient_id>",
      "quantity": "<quantity>"
    },
    "name": "record_stock_purchase"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoManuel alım
quantityYesIn the ingredient's own unit.
ingredient_idYes
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
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, closed-world mutation, and the description is consistent with that while adding a fact the annotations do not carry: a user approval step is required. It stops short of describing the first-call rejection behavior or whether the write is idempotent, leaving some behavioral gaps despite the useful extra context.

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, front-loaded with the action and its effect, with no filler or repetition. Every clause contributes something an agent needs before calling.

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 annotations cover the safety profile. Still missing for a mutation tool with an approval gate: what happens on the first call without confirmation_token, and how the undocumented note/ingredient_id should be supplied.

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 coverage is only 50%, and description adds no parameter meaning whatsoever beyond the word 'ingredient', which loosely maps to ingredient_id. ingredient_id and note (whose default is the Turkish string 'Manuel alım') are left for the caller to figure out, and the description does not compensate for that gap.

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 ('Record') and resource ('received stock for an ingredient') and explicitly notes the directional effect ('increases stock'), which separates it from read-side siblings like get_stock_movements or get_inventory. It does not name any alternative tool outright, so an agent must infer that order-related tools are not the path here.

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?

'Requires user approval' is a real usage prerequisite and signals a two-step flow, which is more than nothing. However it never says when to choose this over siblings (e.g., ordering vs receiving) or what to do when approval is denied, so guidance remains implied rather than explicit.

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