Skip to main content
Glama

Inventory risk triage

get_inventory_risk_triage
Read-only

Returns ranked inventory risk signals across FBA/AWD stock, sales velocity, inventory health, and suppressed-listing data, including days-of-cover and risk scores derived from the same coverage definition as get_days_of_cover. Grain: ASIN/SKU risk rows. Do not use for raw snapshots or movement audit; use inventory snapshot or ledger tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuNoFilter by SKU.
asinNoFilter by ASIN.
limitNoMax risk rows to return (1-100, default 20). Values above 100 are clamped to 100.
risk_focusNoRisk category to focus on. Defaults to all non-healthy risks.all
include_healthyNoSet true to include healthy rows after risks. Defaults to false.
include_raw_rowsNoFalse returns compact rows. Default true.
include_diagnosticsNoTrue may add expanded freshness diagnostics. Basic empty-result data-window diagnostics are included by default when available.
sales_lookback_daysNoSales velocity lookback window in days.
stockout_threshold_daysNoFlag stockout risk at or below this many days of cover.
overstock_threshold_daysNoFlag overstock risk at or above this many days of cover.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
evidenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, so the safety profile is covered. The description adds meaningful behavioral context beyond that: the risk scores share a coverage definition with get_days_of_cover (important for consistency), and it discloses the output grain. Return format is deferred to the existing output schema, which is acceptable.

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?

Three dense sentences with no filler, front-loading what is returned before the exclusions. Slightly overpacked in the first sentence (four data domains plus a cross-reference plus grain), but every clause carries information.

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 10-param read-only tool with an output schema and full annotation coverage, the description supplies the essentials: scope, grain, distinguishing cross-reference, and misuse exclusions. It does not explain how the risk_focus categories interact with the day thresholds, but that gap is minor given the schema detail.

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% across all 10 parameters, including defaults, ranges, and clamping behavior, so the schema does the heavy lifting. The description mentions days-of-cover and risk scores conceptually but adds no syntax, units, or interaction details beyond what the schema already documents. Baseline 3 applies.

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?

States a specific verb and resource ('Returns ranked inventory risk signals') and enumerates the domains covered: FBA/AWD stock, sales velocity, inventory health, and suppressed listings. It also declares the grain (ASIN/SKU risk rows), which lets an agent distinguish it from siblings like get_fba_inventory, get_inventory_health, and get_days_of_cover.

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?

Explicitly excludes two misuse cases ('raw snapshots or movement audit') and points to alternatives. The guidance is clear but the alternatives are described by category ('inventory snapshot or ledger tools') rather than by exact sibling names, so an agent must still map those to get_fba_inventory or get_inventory_movements itself.

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.