Skip to main content
Glama

start_stock_correction

Starts a stock correction by creating a stocktaking with one counted row and returning current vs counted balance. Use when a count is wrong; nothing changes until the correction is released.

Instructions

Step 1 of correcting a stock balance (= a stocktaking with one counted row). Creates and starts it and returns the current balance next to the counted one. Nothing changes until release_stock_correction. Use when the count is wrong; for a real physical event (scrap, found goods) use a manual delivery.

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": {
      "article_number": "<article_number>",
      "counted_quantity": "<counted_quantity>",
      "reason": "<reason>"
    },
    "name": "start_stock_correction"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYes
dry_runNo
responsibleNomcp
article_numberYes
counted_quantityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the crucial trait: the correction is staged, not applied, until release_stock_correction. It also states the return payload ('returns the current balance next to the counted one'). It omits permission/auth expectations and says nothing about the dry_run flag, which is the one behavior an agent could easily get wrong.

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?

Three compact sentences: what it is, what it returns and its staged nature, then when to use it versus the alternative. Front-loaded and free of redundancy, with no sentence that could be dropped without losing routing value.

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?

No output schema and no annotations mean the description must cover the whole contract; it handles the workflow and return summary well but leaves 4 of 5 parameters undefined. For a mutation-starting tool with a dry-run switch, that leaves a meaningful gap an agent must guess through.

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% across 5 parameters, and the description documents essentially none of them beyond implying a counted quantity ('the counted one'). article_number, reason, responsible, and especially dry_run (a boolean that changes whether anything is written) are given no meaning in either place.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('correcting a stock balance') and immediately disambiguates with a definition ('a stocktaking with one counted row') that rules out other interpretations. It also identifies itself as 'Step 1', distinguishing it from release_stock_correction and the manual delivery siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives an explicit when-to-use ('Use when the count is wrong') and an explicit alternative for the adjacent case ('for a real physical event (scrap, found goods) use a manual delivery'). It also states the sequencing constraint ('Nothing changes until release_stock_correction'), which tells the agent it must follow up rather than treat this as a one-shot fix.

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