Skip to main content
Glama

List foods

list_foods
Read-onlyIdempotent

Search the user's food library: saved foods, recipes and batches, with ids, nutrition per 100 g, serving weight and each batch's grams left.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_foods"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoall
queryNoPart of a name or brand
include_finishedNoAlso list finished batches

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds value beyond that by disclosing the shape of the result set (ids, nutrition per 100 g, serving weight, remaining batch grams), which matters because there is no output schema. It does not mention result limits, pagination, or that finished batches are hidden by default.

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?

A single sentence with no filler, front-loaded with the verb and resource before the return-value detail. The trailing field list is dense but each item is informative; minor awkwardness in the final clause about batch grams.

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?

With no output schema, the description responsibly compensates by naming the returned fields, which is the main thing an agent needs to decide whether to call it. The remaining gaps — default exclusion of finished batches, result caps, and how query matching works — are modest for a read-only list tool.

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 67% and the enum values for kind are self-explanatory, so the schema largely carries parameter meaning. The description adds nothing about the kind filter, the query string matching, or what include_finished toggles, leaving the finished-batch behavior to be inferred from the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ("Search") against a specific resource ("the user's food library") and enumerates the three entity kinds covered: saved foods, recipes and batches. It also previews the returned fields, so an agent can distinguish it from a single-item fetch like get_food. It stops short of explicitly naming any sibling as the alternative.

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

Usage Guidelines3/5

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

The word "Search" plus the mention of the user's library implies the lookup/discovery use case, but there is no explicit statement of when to call this versus get_food (single lookup) or the various log_* tools. No exclusions or prerequisites are given, so the agent must infer the boundary.

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