Skip to main content
Glama

get_pantry

Read-only

Read the user's PANTRY — the foods they keep ON HAND (their staples), so you can suggest meals from what they actually have and pre-fill macros when they log one. Returns each item's name and, when the user saved them, macros (for the item's serving), a serving label, a source, and a short note. The pantry is the user's CURATED list of what they stock — separate from what they've logged (their diary) and from their frequents (what they log often). IMPORTANT: a source (e.g. 'usda') is the user's own CLAIM about where the macros came from, NOT a server-verified guarantee — treat it as a hint, never as certified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true, so the description doesn't need to state the operation is read-only. The description adds crucial behavioral context: it details the return structure (name, macros, serving label, source, note) and, critically, warns that `source` is the user's own claim, not a server-verified guarantee. This is exactly the kind of nuance that goes beyond annotations.

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?

The description is a bit long, but every sentence earns its place: it explains purpose, return contents, use case, conceptual distinctions, and the source caveat. Some redundancy exists ('their staples' and 'curated list of what they stock' overlap), but the structure is front-loaded and information-dense. It could be slightly tighter, so 4.

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?

There is no output schema, so the description must carry the burden of explaining return values – and it does: 'Returns each item's name and, when the user saved them, macros...a serving label, a source, and a short note.' It also explains the nontrivial caveat about source trustworthiness. For a tool with zero params, this description fully covers what an agent needs to know.

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?

The tool has 0 parameters, so the schema trivially covers 100%. Per the rubric, 0 params earns a baseline of 4. The description doesn't waste space on parameters, and it doesn't need to. It focuses on output semantics instead, which is appropriate.

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?

The description opens with 'Read the user's PANTRY' – a specific verb + resource. It goes further to differentiate the pantry from 'what they've logged (their diary)' and 'their frequents', clearly distinguishing this tool from sibling tools like get_day or get_range. This is a textbook example of purpose clarity.

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?

It states the tool is for 'suggesting meals from what they actually have' and 'pre-fill macros when they log one', giving practical use cases. It implicitly says when NOT to use it by separating pantry from diary and frequents, but does not explicitly name alternative tools by their tool names (e.g., 'use get_day for diary'). Since the distinction is clear, it earns a 4 rather than a 5.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool targets a distinct resource and action: pantry vs diary vs food search vs preferences vs diagnostics. Even similar tools like get_day/get_range are clearly differentiated by scope, and search_foods/lookup_barcode are distinguished by input type (text vs barcode).

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with lowercase snake_case (add_pantry_item, get_day, log_meal, search_foods). The only exception is whoami, which is a standard diagnostic convention and does not disrupt the overall consistency.

Tool Count5/5

With 12 tools, the server is well-scoped for its food-tracking domain. Each tool covers a necessary function (pantry CRUD, diary CRUD, food search, preferences, diagnostics) without redundancy or bloat.

Completeness5/5

The tool set provides full lifecycle coverage for the core domain: pantry items can be added, read, and removed (upsert covers update); diary entries can be created, read (single/day/range), updated, and deleted; food lookup includes text search and barcode; and preferences are accessible. No obvious gaps hinder agent workflows.

Resources