Skip to main content
Glama

remove_inventory_unit

Removes a stock line by its unit id. The parent item's stock totals are recomputed from remaining lines. Returns true if a line was removed.

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": {
      "unitId": "<unitId>"
    },
    "name": "remove_inventory_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/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 burden, and it does disclose two real behavioral facts: the parent item's stock totals are recomputed from remaining lines, and the call returns true if a line was removed. It omits whether the removal is permanent or reversible, what happens when unitId does not exist (false vs error), and whether any permission or quantity precondition applies.

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 short sentences, front-loaded with the action and target, then the side effect, then the return value. No filler and nothing that could be cut without losing information.

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?

For a simple one-parameter mutation with no output schema, the description covers what it does, its side effect, and its return value, which is adequate. With zero annotation coverage it should also address permanence/reversibility and failure behavior, which are the gaps an agent would hit when calling it.

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% for the single unitId parameter, so the description is expected to compensate. It only restates the parameter name as 'unit id' and never explains the expected format, provenance (e.g. from list_inventory_units), or behavior for an unknown id, adding almost nothing 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 ('Removes') and a specific resource ('a stock line by its unit id'), and clarifies that the target is a unit-level line rather than a whole item. It never names the sibling it must be told apart from, chiefly delete_inventory_item, so the unit-vs-item distinction is left for the agent to infer from the resource wording.

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?

There is no explicit when-to-use or when-not-to-use statement and no named alternative. The phrase 'a stock line by its unit id' implicitly tells the agent this is the single-unit deletion path rather than an item-level delete, which is enough to infer usage but not enough to be confident.

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.

Resources