Skip to main content
Glama

What to reorder

what_to_reorder
Read-onlyIdempotent

What to reorder: items that will run out before a new order arrives, from the last 30 days of Shopify sales, stock on hand and each item's lead time (14 days if not set) and safety days, with how many to order and a draft order per supplier (not sent). Set lead_time_days, safety_days, supplier_name and supplier_email with update_inventory_item.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many items to list (default 20).
cover_daysNoHow many days a new order should last after it arrives (default 30).
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false; the description adds genuinely useful context beyond them: default 14-day lead time when unset, the 30-day sales window used for the calculation, and critically that the per-supplier draft orders are 'not sent'. That last point resolves an ambiguity left by openWorldHint=true, since an agent could otherwise assume external order creation.

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 core definition and followed by the configuration pointer. The first sentence is dense with nested clauses, but every clause (data sources, defaults, output shape, not-sent caveat) carries information an agent needs.

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?

With no output schema, the description still conveys what comes back: per-item reorder quantities and draft orders grouped by supplier. Combined with the stated calculation inputs and defaults, an agent has everything needed to call this correctly and set expectations for the result.

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 67%, with limit and cover_days already documented in the schema. The description explains the calculation behind cover_days but never mentions limit, and project_id is undocumented in both places. It adds conceptual model rather than parameter-level meaning, so this sits at the baseline.

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 computed resource (items that will run out before a new order arrives) plus the exact inputs driving it (last 30 days of Shopify sales, stock on hand, lead time, safety days) and the output (quantities plus a draft order per supplier). This is clearly distinguishable from read-only siblings like audit_stock, get_attention_items, and list_inventory.

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?

Implies the planning use case and routes configuration to update_inventory_item by naming the exact fields (lead_time_days, safety_days, supplier_name, supplier_email). It does not explicitly contrast with get_attention_items or audit_stock, so a small gap remains, but the when-to-use context is clear.

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.