Skip to main content
Glama

Restock forecast

get_restock_forecast
Read-onlyIdempotent

Stock against demand over the next 30 days, from the last 30 complete days of sales (a run rate, nothing cleverer): per product its units sold (unitsLast30, unitsPrior30), units on hand, days of cover, the forecast for the next 30 days, shortfall30 (units the stock cannot cover), revenueAtRisk and marginAtRisk (that shortfall at the price it actually sold at), and restockQuiet when Nuira deliberately does not ask for a restock (inactive, gift_card, add_on, tagged, burst, one_off, discontinued, dont_restock — say why rather than recommending one). totals sum the whole catalogue; byType splits sold vs on hand by product type; rows are the products most at risk first (totalRows counts them all). Use for 'what should I restock', 'how much revenue is at risk from stockouts', 'how much will I sell next month'.

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

With no output schema, the description carries the full disclosure burden and meets it: it names every returned field (unitsLast30, days of cover, shortfall30, revenueAtRisk, marginAtRisk), explains the run-rate method honestly ('nothing cleverer'), and discloses that restockQuiet suppresses recommendations for specific product classes with an instruction to explain rather than recommend. Row ordering and totalRows are also stated.

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 core definition and method are front-loaded in the first clause, and every clause carries information (fields, exclusions, ordering, use cases). It is a single very long run-on packed with parentheticals, which makes it dense to parse even though little is redundant.

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?

Zero params, no output schema, read-only annotations — the only real gaps would be return-value and method disclosure, and the description covers both thoroughly, plus the suppression cases and row ordering. Nothing an agent needs to call or interpret this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The description correctly adds no parameter discussion and instead spends its space on return semantics.

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 resource and computation: stock vs demand over the next 30 days derived from the last 30 complete days of sales. The forward-looking framing implicitly separates it from current-state siblings like get_stock_overview and get_inventory_health, but no sibling is named, so an agent must infer the boundary itself.

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?

Ends with concrete user phrasings — 'what should I restock', 'how much revenue is at risk from stockouts', 'how much will I sell next month' — which gives a clear trigger context. It offers no when-not guidance or named alternative for the adjacent stock/inventory tools.

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