Skip to main content
Glama

what_should_i_order

Generates a prioritized shopping list of household items to reorder, ranking confirmed out-of-stock items first and inferring others from purchase history and repurchase intervals.

Instructions

The shopping list. Two ways onto it:

  • The user said they were out (correct_stock(item, 0)) — ranked first, because an observation beats an estimate.

  • Inference: >= 3 distinct purchase dates, past the median repurchase interval, excluding items past 3x median (presumed discontinued).

Sorted by overshoot ratio, highest first.

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_should_i_order"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden and does well on prioritization logic: it reveals the ranking key (overshoot ratio, descending) and the discontinuation cutoff, which an agent could not guess. It says nothing about whether the call is read-only, whether it mutates or caches anything, or how large a list comes back — though the presence of an output schema covers return shape, the safety profile is left implicit.

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?

Front-loaded with the outcome, then a two-branch bullet list, then the sort order — a logical order with no filler. The terse phrasing ('Two ways onto it', 'an observation beats an estimate') is dense but each clause carries a distinct rule; a slightly fuller first sentence would cost nothing.

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 zero-parameter ranked-list query with an output schema available, the description supplies the decision logic, thresholds, exclusions, and ordering that the schema cannot. Only the read-only nature and the rough result cardinality are unaddressed, which are minor for a query tool.

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 the baseline is 4; the description correctly spends no words on argument semantics. It does reference a sibling call signature (correct_stock(item, 0)) as an illustrative data source rather than as an argument to this tool, which is clarifying rather than confusing.

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 the output concretely — 'The shopping list' — and enumerates the two inclusion rules that produce it, which is far more specific than the vague name suggests. It stops short of distinguishing itself from every sibling (e.g. get_stock or get_expiring_soon), so an agent must infer that this is the actionable purchase list rather than a raw inventory read.

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?

It gives explicit inclusion conditions: user-reported stockout ranked first, otherwise at least three distinct purchase dates past the median repurchase interval, with items past 3x median excluded as discontinued. What's missing is any statement of when to call this versus other list-like siblings, or any prerequisite such as having history recorded.

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