Skip to main content
Glama

release_stock_correction

Applies a started stock correction by setting stock to the counted quantity and booking it; completed corrections cannot be voided, so a wrong count needs a new correction.

Instructions

Apply a started stock correction: stock is set to the counted quantity and bookkept. Completed corrections cannot be voided (a wrong count needs a new correction).

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

Input Schema

NameRequiredDescriptionDefault
dry_runNo
stock_correction_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations at all, the description carries the full behavioral burden and does well: it discloses the stock mutation ('set to the counted quantity'), the bookkeeping side effect, and the irreversibility of completion. It omits permission/auth requirements and does not mention the dry-run capability, which is a notable omission for a mutating tool.

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?

Two tight sentences with zero filler; the mutation effect comes first and the irreversibility warning follows. Every clause earns its place.

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 be fairly self-sufficient, and it covers the core semantics and consequences well. However, dropping the dry_run parameter and any indication of what the response contains leaves meaningful gaps for an irreversible mutation.

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 coverage is 0%, so the description must explain both parameters and it explains neither. Most importantly, the dry_run boolean is never mentioned, leaving the agent unaware that a safe preview of this irreversible operation is available.

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 states a specific verb and resource ('Apply a started stock correction') and adds the concrete effect ('stock is set to the counted quantity and bookkept'), so the agent knows what changes. The qualifier 'started' implicitly contrasts with start_stock_correction, though no sibling is named outright.

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?

It gives a clear precondition (the correction must already be started) and a strong caveat that completed corrections cannot be voided, which steers the agent to confirm before calling. It stops short of explicitly routing to cancel_stock_correction as the pre-completion alternative.

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