Skip to main content
Glama
Restaurant MCP Server

Restaurant MCP Server

by serdarpolat

get_stock_movements

Read-only

Track an ingredient's stock movements by sales, purchases, waste, and adjustments over a date range, and optionally filter by reason to explain why inventory changed.

Instructions

Stock ledger of one ingredient (sales, purchases, waste). Explains WHY stock changed.

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>"
    },
    "name": "get_stock_movements"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
reasonNo
ingredient_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

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 establish this as a read-only, closed-world operation. The description adds useful scope by naming the ledger's movement categories and its causal purpose, but it omits behavior around the time window, default days, and filter behavior; it also does not mention the 'adjustment' category even though the schema exposes it.

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?

The description is two tight sentences with the resource and scope front-loaded, followed by the causal benefit. There is no redundant or filler language.

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?

The presence of an output schema and safety annotations reduces the description's burden, and the core purpose is understandable. However, for a three-parameter tool with no schema descriptions, it does not explain the days range or reason filter, and it gives no alternative-tool guidance, so it is only minimally complete.

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 0%, so the description must carry parameter meaning. It only implies ingredient_id through 'one ingredient' and says nothing about the days window or the reason filter, leaving two of three parameters unexplained beyond their basic schema types and enum values.

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 clearly identifies the resource as a stock ledger for one ingredient and lists the included movement types: sales, purchases, and waste. The phrase 'Explains WHY stock changed' gives the tool a distinct diagnostic purpose, though it does not explicitly contrast itself with get_inventory or other siblings.

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 description implies a diagnostic use case by saying it explains why stock changed, but it gives no explicit guidance on when to choose this tool over get_inventory, get_daily_summary, or record_stock_purchase. There are no exclusions or alternative-selection cues.

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