Skip to main content
Glama

Remove from the pantry

remove_from_pantry
DestructiveIdempotent

Take items out of the pantry for "used the last onions", "we're out of milk", or empty it with all=true when the user lists what is in the kitchen now, then add_to_pantry. Names are matched loosely. Returns the whole pantry after the change.

Input Schema

NameRequiredDescriptionDefault
allNotrue to empty the pantry, for 'here is what's in my kitchen now' before add_to_pantry
removeNoitem names to take out, for 'used the last onions', 'we're out of milk'

Output Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / items / items / additionalProperties
      Removed value: -false
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so safety is covered. The description adds genuinely new behavioral context: loose name matching and that the whole pantry is returned after the change. It stops short of saying what happens to unmatched names, which slightly limits it.

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?

Two front-loaded sentences cover purpose, when to use, matching behavior, and return value with no filler. The quoted examples slightly duplicate the schema's own descriptions, a small redundancy.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present and full param coverage, the description need only carry intent and behavior. It supplies the triggering scenarios, the destructive/loose-match semantics, the paired follow-up call, and the return shape, leaving nothing an agent needs missing.

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 100%, so the baseline is 3. The description still adds value by framing all=true as an ordered operation followed by add_to_pantry and by tying remove to real user phrasings, clarifying the intent behind each parameter rather than just restating types.

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 specific verb and resource ("Take items out of the pantry") plus the full-empty variant (all=true). The mention of add_to_pantry and the pantry-return behavior distinguishes it clearly from sibling pantry tools like get_pantry and add_to_pantry.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete triggering utterances ("used the last onions", "we're out of milk") and an explicit alternative workflow: use all=true when the user lists the current kitchen contents, then follow with add_to_pantry. Both when-to-use and the paired call are spelled out.

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.