Skip to main content
Glama

Search foods

list_foods
Read-only

Find foods to log or cook with: the person's own foods (library mine, the default; search it before making a new food), generic ingredients such as eggs, broccoli or rice (library composition, three characters or more), and packaged products by name, brand or barcode (libraries splot and off). This only searches. Pass a result's library and key exactly as food in create_meal, update_meal or a recipe ingredient. Use a short, specific query; if nothing matches, try a simpler query or another library, then ask for the label or offer a clearly marked estimate rather than searching again. A missing match says nothing about ingredients, nutrition or allergy safety.

Input Schema

NameRequiredDescriptionDefault
limitNoThe most foods to return
queryNoA food name, brand or barcode. With library mine, leave it empty to list My foods, most eaten first.
localeNoThe person's language, such as en or fr, for generic ingredient names; English when left out
offsetNoSkip this many results. Pass the nextOffset of the previous page to read on; a null nextOffset means there are no more.
regionNoThe person's two-letter country code, such as US, so Open Food Facts products sold there come first
libraryNomine for the person's own foods, composition for generic ingredients, splot for Splot's shared products, off for Open Food Facts productsmine

Output Schema

NameRequiredDescriptionDefault
foodsYes
nextOffsetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description's job is to add context beyond the safety profile. It does: 'This only searches', how results must be reused ('pass a result's library and key exactly as food in create_meal, update_meal or a recipe ingredient'), and the important caveat that a missing match says nothing about ingredients, nutrition or allergy safety.

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 text is dense but front-loaded: the resource scope and library taxonomy come first, then usage rules, then the safety caveat. Every sentence carries information, though the query/fallback sentence is somewhat long and could be tightened.

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?

An output schema exists, so return-value documentation is not required. Given six optional parameters and the open-ended search behavior, the description covers scope, library semantics, result reuse, and failure handling – nothing an agent needs to call it correctly is 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, but the description adds real value by tying each library value (mine, composition, splot, off) to the kind of food it holds and by giving query-shaping advice ('Use a short, specific query'). It goes beyond restating the schema, though it does not document limit, offset, locale or region.

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 states a specific verb (find/search) and resource (foods) and immediately enumerates the four distinct content sets (own foods, generic ingredients, packaged products) with their library identifiers. An agent can distinguish it from create_meal, save_food, and delete_food without opening a schema.

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?

It gives explicit when-to-use guidance ('search it before making a new food'), names the exact alternative libraries and their conditions, and prescribes a fallback strategy when nothing matches ('try a simpler query or another library, then ask for the label or offer a clearly marked estimate rather than searching again'). This is unusually complete routing guidance.

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