Skip to main content
Glama

Item Stock Outlook

get_item_stock_outlook
Read-only

Stock outlook for a list of items (by SKU, max 100): available (net of committed, the units open sales and transfer orders hold, as the Inventory page and Shopify show it), committed, inbound, and the two days-of-supply metrics — daysOnHand (stock before committed units ÷ the planning rate, which already counts open orders: the stockout-urgency signal) and aggregatedInventoryDays (including inbound POs and buildable capacity: the procurement-planning signal) — plus velocity confidence tier, composite health score, and the sales rate with trend over the requested period (week|month|quarter). Two rates, one base: dailyConsumption is the planning rate (the higher of forecast and sales history, plus production pulls; conservative on purpose), unitsPerDay is the sales rate (what sold).

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": {
      "skus": "<skus>"
    },
    "name": "get_item_stock_outlook"
  }
}

Input Schema

NameRequiredDescriptionDefault
skusYesItem SKUs to look up (max 100 per call).
periodNoVelocity period: week, month (default), or quarter.month

Output Schema

NameRequiredDescriptionDefault
okNo
itemsNo
notFoundSkusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedOutput schema / properties / items / items / properties / trendPercentage / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / items / items / properties / unitsPerDay / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / items / items / properties / unitsPerMonth / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / items / items / properties / unitsPerWeek / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/non-destructive/closed-world, and the description adds real value beyond them: reconciliation semantics ('as the Inventory page and Shopify show it'), the explicit warning that the planning rate is 'conservative on purpose', and the distinction between the two rates. It omits response-size or error behavior, but the behavioral disclosure is well above the annotation baseline.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and information-dense, but the content is delivered as one long, deeply nested sentence with stacked parentheticals and em-dashes, which slows parsing of the very definitions that matter most. Several clauses could be split without losing content.

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?

An output schema exists, so return shape needn't be explained, and the description instead supplies the semantics of ambiguous fields, the SKU cap, and the period dimension. It lacks only edge-case handling (unknown SKUs, partial results), which is minor for a read-only lookup.

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 both parameters are already documented, including the period enum. The description does add a small amount of meaning — that period governs the 'sales rate with trend' rather than the snapshot metrics — but that signal is buried inside a long list of return fields rather than framed as parameter guidance.

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 stock outlook) and enumerates the exact metric set returned — available, committed, inbound, daysOnHand, aggregatedInventoryDays, confidence tier, health score, rates — which lets an agent tell it apart from related siblings like get_stock_health or get_stock_movements. It stops short of explicitly naming a sibling or stating the boundary against them.

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?

No explicit when-to-use/when-not section and no named alternative is offered. Usage is only implied through the framing of the two signals ('stockout-urgency signal' vs 'procurement-planning signal'), which hints at the decision contexts but requires inference.

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