Skip to main content
Glama

discard_item

Record food waste to remove thrown-away items from stock and flag shelf-life estimates that were too generous.

Instructions

Record waste — food thrown away. Two uses: it removes the item from stock, and it is the only signal that a shelf-life estimate was too generous. Distinct from correct_stock, which says what is left.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "item": "<item>"
    },
    "name": "discard_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes
unitNo
quantityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the whole burden. It usefully discloses that this is a mutation on stock and that it uniquely feeds shelf-life estimation, which is real behavioral context; however it says nothing about failure modes for an unknown item, whether the decrement is reversible, or unit/quantity handling.

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?

Three short clauses, front-loaded with the core action and its consequence. Tight and readable, with only mild redundancy between "record waste" and "food thrown away".

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?

With no annotations, no output schema, and three undocumented parameters, the definition should say more about what the call returns or how errors surface. The conceptual framing is strong, but operational completeness for a state-mutating tool is only partial.

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 description coverage is 0%, so the description should explain item, unit, and quantity. It implies the item is removed from stock but gives no meaning for unit, no note that quantity defaults to 1, and no guidance on partial vs whole-item discard.

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 concrete verb and resource ("Record waste — food thrown away") plus two effects, and explicitly separates itself from correct_stock. An agent can distinguish the two without opening either schema.

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?

Gives a clear selection rule by contrasting with correct_stock ("which says what is left") and framing the two legitimate uses. It stops short of stating when not to use it (e.g., void_event for reversal or consume_items for spoilage-agnostic removal), but the primary alternative is addressed.

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