Skip to main content
Glama

get_stock_correction

Read-only

Retrieves a single stocktaking or stock correction with its rows, showing counted versus current balances so you can verify inventory adjustments and reconcile discrepancies.

Instructions

One stocktaking / stock correction with its rows (counted vs current balance).

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": {
      "stock_correction_id": "<stock_correction_id>"
    },
    "name": "get_stock_correction"
  }
}

Input Schema

NameRequiredDescriptionDefault
stock_correction_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds only the shape of the returned record (rows with counted vs current balance), with no note on behavior for a missing or cancelled correction id.

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?

A single front-loaded sentence with no filler; the parenthetical adds useful content rather than padding. It is on the terse side, but nothing is wasted.

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?

With no output schema, the description must carry the return-value burden, and it does so partially by naming the rows and the counted-vs-current comparison. For a read-only single-record getter this is close to sufficient, though missing-id or cancelled-correction behavior is unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single parameter, stock_correction_id, at 0% schema description coverage, but its name is largely self-explanatory and the description implies fetching one correction by that identifier. No additional meaning such as valid id source, format, or error behavior is supplied.

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 names the resource ("One stocktaking / stock correction") and its payload ("its rows (counted vs current balance)"), which tells an agent this is a single-record fetch rather than a list. It is clearly separable from list_stock_corrections and get_stock, though the verb is only implied by "One ... with" rather than stated.

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 singular phrasing implicitly signals retrieval of one correction, contrasting with list_stock_corrections, but no explicit when-to-use or when-not-to-use condition is given. There is no mention of how it relates to sibling lifecycle tools like start_stock_correction or release_stock_correction.

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