Skip to main content
Glama

Weight Class

Look up a food

lookup_food
Read-onlyIdempotent

Calories, protein, carbs, fat and fiber of everyday foods from USDA FoodData Central (FNDDS): per 100 g, per household measure (1 cup, 1 large egg…), and for a weight you give.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "lookup_food"
  }
}

Input Schema

NameRequiredDescriptionDefault
gramsNoAlso give the numbers for this many grams.
limitNoHow many foods to return (5 by default).
queryYesThe food in plain words: "greek yogurt plain nonfat", "banana", "chicken breast rotisserie".

Output Schema

NameRequiredDescriptionDefault
foodsYes
queryYes
sourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description still adds real context beyond them: the underlying dataset (FNDDS 'everyday foods'), and the fact that values are reported per 100 g, per household measure, and per supplied weight — telling the agent what shape the answer takes and what the source's coverage limits are.

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?

A single sentence with zero filler, front-loaded with the returned nutrients before the units and data source. Every clause carries information an agent needs.

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?

Return values need no explanation because an output schema exists, and the description covers source, scope, and units. The only gap is what happens on no match or ambiguous queries, which the description leaves unstated.

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 description coverage is 100%, so the baseline is 3. The description earns one step above by clarifying that the requested weight is an additional reporting basis alongside the always-present per-100 g and household-measure figures, rather than a replacement — a distinction the schema's 'Also give the numbers' phrasing only partly conveys.

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 names the resource (everyday foods) and enumerates the exact outputs — calories, protein, carbs, fat, fiber — plus the source (USDA FoodData Central FNDDS) and the three reporting bases. That is specific enough to distinguish it from the restaurant-oriented siblings, though it never explicitly contrasts itself with them.

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?

Usage is implied rather than stated: an agent can infer this is the tool for nutrition values of generic foods, and 'everyday foods' hints at the scope limit. There is no explicit when-to-use, when-not-to-use, or named alternative for branded or restaurant items.

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