Skip to main content
Glama

Receive stock

core_receive_stock
Destructive

Increase quantity on hand for a stocked item. Receipts are additive and never retroactive. To correct a count, receive the difference — a negative qty is allowed for that and is visible as a correction in the log. Effects: item.on_hand adjusted.

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>",
      "qty": "<qty>"
    },
    "name": "core_receive_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyYesUnits received. Negative to correct an overstated count.
noteNoWhy — a PO number, a cycle-count reference.
item_idYesThe item received. An existing item id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and readOnlyHint=false, but the description adds substantive semantics beyond them: changes are append-only and never retroactive, corrections are accepted as negative quantities, and they surface as corrections in the log. That explains why a 'receive' can be flagged destructive and non-idempotent, though it stops short of describing error conditions or permissions.

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?

Four short sentences, front-loaded with the action and effect before the correction caveat; no filler. The trailing 'Effects: item.on_hand adjusted.' borders on restating the opening sentence, the only minor redundancy.

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?

For a three-parameter mutation with no output schema and annotations covering the safety profile, this is nearly complete: it covers effect, additivity, correction behavior, and logging. Missing only what the call returns and whether the item must already exist (implied by 'stocked item' and the schema).

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?

Schema coverage is 100%, so all three parameters are already documented, including the negative-qty correction meaning and the note field's purpose. The description reinforces the correction semantics but adds no format, range, or validation detail beyond the schema.

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 and effect: 'Increase quantity on hand for a stocked item,' which tells an agent exactly what changes. It does not reference the closely-named sibling p2p_receive_goods, so the distinction between a stock adjustment and a procurement goods receipt is left to inference.

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?

Gives real usage context: receipts are additive and never retroactive, and a count correction is done by receiving the difference with a negative qty. It does not name an alternative tool or state when NOT to use this one, which keeps it short of a 5.

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.