Skip to main content
Glama

get_expiring_soon

Find perishable items nearing or past their estimated use-by date, sorted soonest first, to help you use or discard stock before it spoils.

Instructions

Perishables at or past their estimated use-by, soonest first. Only items with a shelf life set and at least one purchase.

Two exclusions keep this list honest rather than merely long: items the user has confirmed are gone (they cannot spoil), and items expired for longer than their own shelf life again — a chicken ten days past a three-day use-by was eaten or binned a week ago, and nagging about it is how a list stops being read.

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

Input Schema

NameRequiredDescriptionDefault
within_daysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses filtering rules, ordering, and two named exclusions with rationale (consumed items and items expired beyond their own shelf life). It doesn't cover auth/rate limits, but for a read tool the behavioral disclosure is strong.

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-loads the core purpose and ordering, then the exclusions. The chicken anecdote is colorful but earns its place by justifying the stale-expiry exclusion; overall it is well-structured with only minor verbosity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 values needn't be described, and filtering behavior is well covered. The key gap is the undocumented within_days parameter, which is the only input and central to the tool's behavior.

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

Parameters2/5

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

There is one parameter, within_days, at 0% schema description coverage, and the description never mentions it. The text describes the list's date logic but does not explain what the window parameter controls or its default behavior, so it fails to compensate for the coverage gap.

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 verb and resource: 'Perishables at or past their estimated use-by, soonest first,' with return ordering and inclusion criteria. The exclusions help distinguish it from a plain stock listing, but it never names a sibling tool to route against, so it stays just short of full differentiation.

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?

Explains what is included (shelf life set, at least one purchase) and two explicit exclusions, which implies usage context. However, it never says when to prefer this over alternatives like get_stock or what_should_i_order, leaving the choice to inference.

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