Skip to main content
Glama

Find Dead Stock

find_dead_stock
Read-only

Dead stock: on-hand items with ZERO sales velocity over the window (week/month/quarter, default month) — the same definition as the stock-health dead-stock factor (days-of-supply is null when there is stock on hand but no sales). Returns a value-ranked, paged list; each item carries its available quantity (reserved units excluded: they are already sold) and dead value (those units at the item's cost-layer unit cost). Velocity is tenant-wide per item, so this has no warehouse filter. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_dead_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items to return (default 50, max 200).
offsetNoPagination offset (default 0).
periodNoVelocity window: week, month, or quarter (default month).month

Output Schema

NameRequiredDescriptionDefault
okNo
itemsNo
limitNo
totalNo
offsetNo
periodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that reserved units are excluded, how dead value is computed from cost-layer unit cost, that results are value-ranked and paged, and that no warehouse filter applies because velocity is tenant-wide. It also clarifies the underlying dead-stock semantics, which materially helps an agent understand what the tool will return.

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?

The definition is front-loaded with the core dead-stock criterion and then layers return details efficiently. It is dense but every clause contributes useful meaning, with only minor repetition of the read-only status already covered by annotations.

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

Completeness5/5

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

Given an output schema and complete annotation coverage, the description supplies the conceptual definition, exclusion rules, valuation basis, and pagination/ranking behavior an agent needs to interpret the tool correctly. No critical behavioral or scoping detail appears to be missing.

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 description coverage is 100%, so the input schema already documents limit, offset, and period. The description reinforces the period window as a velocity window but adds no syntax or behavioral detail for limit and offset beyond what the schema provides, making the baseline score appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description defines dead stock precisely as on-hand items with zero sales velocity over a specified window, and distinguishes it from the stock-health dead-stock factor by noting the shared definition and the list-oriented return. An agent can immediately tell what resource this tool surfaces and how it differs from related stock tools.

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?

Usage is implied through the dead-stock definition and the explicit note that velocity is tenant-wide with no warehouse filter, but the description does not explicitly state when to use this tool versus siblings such as get_stock_health. It gives enough context to infer the use case but leaves the routing decision partly to the agent.

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