Skip to main content
Glama

Ration Kitchen Agent Server

get_expired_items

Read-only

List ALL pantry items whose expiry date is before today (UTC calendar days). No time window by default — expired is expired, regardless of age or stored status. Optional daysBack filters a lookback window. Per-item status is display nuance only. Useful for waste cleanup.

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

Input Schema

NameRequiredDescriptionDefault
daysBackNoOptional UTC calendar days lookback filter (max 90). Omit for all expired items.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
metaNo
toolYes
errorNo
outcomeNo
warningsNo
requestIdNo
retryableNo
operationIdNo
retryAfterMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare a safe read operation, so the description rightly spends its space on non-obvious behavior: UTC calendar-day boundary semantics, the absence of any default time window, and the claim that stored per-item status does not affect inclusion. That last point is genuinely useful because it prevents an agent from assuming status-based filtering; return shape is left to the output schema.

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?

Scope is front-loaded in the first sentence and each following sentence adds a distinct behavioral fact with little waste. 'Per-item status is display nuance only' is slightly cryptic phrasing, but it still earns its place by clarifying filtering semantics.

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 simple tool with no required parameters and an output schema, the description covers scope, default behavior, the optional filter, and the status caveat — enough to call it correctly. The only real gap is explicit sibling routing against get_expiring_items.

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 100% and the schema already documents daysBack including the max of 90 and the omit-for-all behavior. The description restates the lookback idea without adding format or edge-case detail beyond the schema, so it meets the baseline rather than exceeding it.

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 first sentence gives a specific verb and resource plus a precise scope: list pantry items whose expiry date is before today, using UTC calendar days. The contrast with 'expiring' items is only implied through the phrase 'expired is expired' rather than naming the sibling get_expiring_items, so an agent must infer the boundary.

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?

'Useful for waste cleanup' gives a clear use context, and 'No time window by default' plus 'Optional daysBack filters a lookback window' explains when to supply the filter. It stops short of naming an explicit alternative or exclusion (e.g., use get_expiring_items for items not yet expired), leaving that to inference.

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