Skip to main content
Glama
profit-lens

profit-lens

Inventory reorder alerts

get_inventory_reorder_alerts
Read-onlyIdempotent

Identify SKUs at stockout risk and calculate recommended reorder quantities using days of cover, inbound POs, and reorder points; flag overstock and reorder-now actions.

Instructions

Per-SKU inventory health: days of cover, projected stockout date, reorder point, inbound POs, and a recommended order quantity rounded to case pack and MOQ. Flags stockout risk (runs out before replenishment can land), reorder-now, and overstock (cash tied up).

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

Input Schema

NameRequiredDescriptionDefault
includeHealthyNoAlso return SKUs that need no action.
velocityWindowDaysNoDays of sales used to measure velocity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: it defines what each flag means (stockout risk = runs out before replenishment can land; overstock = cash tied up) and discloses that quantities are normalized to case pack and MOQ, which materially affects interpretation. Missing only things like result volume or ordering.

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?

Two sentences, front-loaded with the returned metrics, then the flag semantics. The metric enumeration is long but each item conveys distinct information; nothing is padding. A brief clause on default filtering would have been a better use of space than nothing, but there is no waste.

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?

There is no output schema, so the description must carry the return-value burden, and it does so by naming the fields and defining the risk flags. For a two-optional-parameter read tool this is close to complete; what remains unstated is result volume/pagination and how many SKUs are typically returned.

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 both parameters (includeHealthy, velocityWindowDays) are already fully documented with defaults and bounds. The description does not reference either parameter, though 'days of cover' loosely ties to the velocity window without stating the relationship. Baseline 3 is appropriate when the schema carries the parameter burden.

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 names a specific resource (per-SKU inventory health) and enumerates exactly what the caller gets back: days of cover, projected stockout date, reorder point, inbound POs, and a recommended order quantity rounded to case pack/MOQ. It is clearly distinct from siblings like get_sku_margins or forecast_cash_13_weeks. The only gap is that the action verb is implicit (it reports/returns rather than saying so directly).

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 only implied: the flag descriptions (stockout risk, reorder-now, overstock) suggest the tool is for replenishment triage, but there is no explicit 'use this when X, use Y instead' guidance and no exclusions. The absence of the healthy-SKU default in the prose also means the agent must read the schema to learn the tool is exception-focused by default.

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