Skip to main content
Glama

Mango Inventory

Stocktaking status

stocktaking_status
Read-only

Stocktaking overview: without sessionId, all stocktaking sessions with live progress; with sessionId, the per-location and per-counter breakdown of that session. "pending" = not yet counted, "missing" = counted as absent: a CLOSED session can have missing items (missing > 0 while pending = 0 is a completed count that found items missing, not a contradiction). Each session carries a name; its id is the handle for the sessionId argument.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stocktaking_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdNoStocktaking session id

Output Schema

NameRequiredDescriptionDefault
totalsNoOrg-wide counters for one session (expected, confirmed, …)
sessionsNoAll stocktaking sessions — only in the no-argument mode
perCounterNoCounts per person who counted
perLocationNoPer-room progress for one session

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), yet the description adds real domain semantics that annotations cannot: what 'pending' and 'missing' mean and why missing > 0 with pending = 0 on a CLOSED session is a completed count rather than a data error. That preempts the single most likely misinterpretation of the result. It also tells the agent where the sessionId value comes from, which is behavioral guidance, not schema repetition.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the overview purpose, then the mode branch, then the status glossary. Every sentence carries information and none is filler. The status-definition sentence is dense and slightly tangled in its nested parentheses, but the density buys genuine clarification rather than padding.

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 an output schema present, return values need not be documented, and the description nonetheless tells the agent how to read the two enumerated statuses and the closed-session edge case. Tools in this set are unrelated status tools, so no alternative routing is strictly required. Nothing an agent needs in order to call this correctly is missing.

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% with only one optional parameter, so the baseline would be 3. The description earns more by explaining the two-mode semantics of sessionId (omitted = list all; supplied = drill into one) and by clarifying that the session's `id` field is the handle to pass, which the schema does not say. This goes beyond 'Stocktaking session id' in the schema.

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 opens with a specific verb-plus-resource framing ('Stocktaking overview') and immediately splits into two concrete behaviors: the session list and the per-location/per-counter breakdown. An agent can picture the output shape without opening the schema. It stops short of naming any sibling (e.g. get_setup_status, maintenance_status) as the contrasting tool, 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 Guidelines4/5

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

The mode switch is stated explicitly: call without sessionId for the overview list, call with sessionId for the detailed breakdown. That covers the main when-to-use decision. There is no statement of when this tool is the wrong choice versus another status tool, and no prerequisites, but the branching guidance is unambiguous.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources