Skip to main content
Glama

Add to the pantry

add_to_pantry
DestructiveIdempotent

Add or restock pantry items from what the user says in passing: "bought rice and two chickens", "here's what's in the fridge". An item already in the pantry gets the new quantity. Names are matched loosely, so 'Eggs' and 'eggs' are the same item. Returns the whole pantry after the change.

Input Schema

NameRequiredDescriptionDefault
addYesitems to add or update; an item already in the pantry gets the new quantity

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.2/5.0
Behavior4/5

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

Adds context beyond the annotations: existing items are updated to the new quantity (overwriting the prior amount, consistent with destructiveHint=true), name matching is loose/case-insensitive, and the whole pantry is returned. It does not spell out what happens if an existing item is re-added with no quantity, which leaves the mutation semantics partially ambiguous.

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?

Four short sentences, zero waste, each front-loading the most decision-relevant fact in order: what it does, input source, update semantics, matching semantics, return value.

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 tool with a full output schema and annotations, the description covers the important gaps (loose matching, restock-in-place behavior) and needn't explain return values. The remaining hole is the merge rule when an existing item is supplied without a quantity.

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%, so the nested name/quantity fields are already documented, making 3 the baseline. The description adds meaning to the 'quantity' field (free-text amounts in the user's words) but does not add format or edge-case guidance for the 'add' array beyond what the schema states.

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 (add or restock) and resource (pantry items), plus the input source ('what the user says in passing') with concrete examples. An agent can distinguish this from remove_from_pantry or get_pantry without opening any 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 usage context – freeform phrases like 'bought rice and two chickens' or 'here's what's in the fridge' – which tells the agent when this tool applies. However, it never names the alternative (get_pantry for reading, remove_from_pantry for deletion) or states when not to use it.

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.