Skip to main content
Glama

cancel_stock_correction

Cancels and discards an unreleased stock correction before it affects inventory, leaving stock levels unchanged.

Instructions

Throw away a stock correction that has not been released (no effect on stock).

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": "cancel_stock_correction"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
stock_correction_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does valuable work by stating the operation has 'no effect on stock' and requires an unreleased correction, but it is silent on reversibility, error behavior when the precondition fails, and what dry_run actually does for a mutation.

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?

A single tight sentence with the action first and the scoping constraint immediately after. No filler or redundant restatement of the tool name.

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

Completeness2/5

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

For an unannotated mutation tool with two parameters and no output schema, the description is too thin: dry_run is undocumented and there is no statement about what the caller gets back or what happens on failure. The core scoping and no-stock-impact facts are present, but significant gaps remain.

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 nothing documents either parameter. The description implies stock_correction_id is the target but never mentions dry_run at all, leaving a mutation-control flag entirely unexplained.

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 a specific verb-plus-resource combination ('Throw away a stock correction') and adds the qualifying precondition 'that has not been released'. That precondition implicitly distinguishes it from release_stock_correction, though the sibling is never named.

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 clause 'that has not been released' functions as a precondition for use, which is useful implied guidance. However, there is no explicit statement of when to choose this over release_stock_correction or get_stock_correction, and no mention of what to do if the correction is already released.

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