Skip to main content
Glama

Record a count

inv_count_stock
Destructive

What was counted on the shelf for one item. The difference from the record becomes a count move, valued at the average cost. Record what the person counted, never what you expect. A count needs a reason, said plainly ("three damaged in the move", "yearly count"). When the count matches the record nothing moves, and that is worth saying too. A difference is valued at the average cost of that moment and posts to Inventory Adjustments: the accountant sees it as shrinkage or a gain, never hidden in cost of sales. Effects: count recorded; the difference moves stock through core.

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": {
      "item_id": "<item_id>",
      "counted": "<counted>",
      "reason": "<reason>"
    },
    "name": "inv_count_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy it was counted, or why it differs.
countedYesHow many are on the shelf, as counted.
item_idYesThe item counted. An existing item id.
counted_atNoThe day it was counted. Defaults to today. ISO date, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the full consequence chain: no movement when counts match, differences valued at the moment's average cost, and posting to Inventory Adjustments where the accountant sees shrinkage or gain rather than cost of sales. This tells the agent exactly what side effects to expect from a destructiveHint=true, idempotentHint=false call.

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

Conciseness3/5

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

The opening sentence is well front-loaded, but the average-cost valuation is explained twice (once at the top, once before the accounting posting) and the closing 'Effects:' fragment is telegraphic rather than informative. Some trimming would sharpen it without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of telling the agent what happens as a result, and it does so: a count record is created, stock moves by the difference, and the offset lands in Inventory Adjustments. Nothing critical is missing, though it never says what a successful call returns to the caller.

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%, so baseline is 3, but the description adds real semantic content: 'counted' means the observed shelf quantity rather than the expected one, and 'reason' must be a plainly stated cause (with example phrasings implied). The 'counted_at' default is covered by the schema rather than the prose.

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+resource: recording the physical shelf count for a single item, with the downstream effect that the difference becomes a count move. It is clear what the tool does, but it never names a sibling (e.g. inv_item_stock, inv_moves) so the agent must infer the distinction from context.

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?

Gives strong input-side guidance ('Record what the person counted, never what you expect') and an implicit obligation (a plain reason is required), which steers correct invocation. However, it offers no explicit when-to-use/when-not guidance and no alternative tool for viewing versus adjusting stock, so routing must be inferred.

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.