Skip to main content
Glama

whats_expiring

Food expiring within N days (default 3), with a suggested action (cook / freeze / toss).

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

Input Schema

NameRequiredDescriptionDefault
within_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. To its credit it discloses the default window (3 days) and that a per-item suggested action (cook / freeze / toss) is returned, which is useful output context. It omits whether this is strictly read-only, how items are ordered, and how edge cases like negative day values behave.

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

Conciseness5/5

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

A single tight sentence that front-loads the resource, then the filter, then the return shape. Every clause carries information; nothing is redundant or buried.

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 one-parameter read tool with no output schema, the definition covers purpose, default, and output content adequately. The remaining gaps — ordering, empty-result behavior, and explicit read-only framing — are minor but real given the absence of annotations.

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?

Schema coverage is 0% — the only parameter is a bare integer with min/max — so the description must compensate, and it does: it explains that within_days is a day window and supplies the default of 3. It leaves the meaning of zero or negative values unexplained, which prevents a top score.

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 and filter: food expiring within N days, plus the kind of output (suggested action). This is clearly a read/query tool, but it never names the sibling it might be confused with (list_pantry), so an agent must infer the distinction between a full pantry listing and an expiry-focused view.

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?

Usage is implied rather than stated: 'expiring within N days' suggests reaching for this when the user asks about soon-to-spoil food. There is no explicit when-not guidance, no mention of how it differs from list_pantry, and no indication of what happens with an empty result or a negative/zero day window.

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