Skip to main content
Glama

Calories & Recipes | Nutrista

Search foods and calories

search_foods
Read-onlyIdempotent

Use this when the user asks how many calories, how much protein, carbs, fat or fiber a food has, or wants to compare foods. Searches the Nutrista food database (thousands of foods and grocery products, values per 100 g) and shows food cards. Food values are estimates.

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": "search_foods"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
languageNo

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, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context beyond them: values are normalized per 100 g, the output is rendered as food cards, and the values are estimates rather than exact. It does not mention result-count defaults or how ties are ranked.

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 trigger condition is front-loaded in the first clause, and each of the three sentences contributes something distinct: when to use, what it searches, and the estimate caveat. There is no filler, though the result-count and parameter details could have been folded in without bloat.

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 does the work of explaining returns — food cards with per-100 g values and an estimate disclaimer. For a three-parameter read-only search this is close to sufficient; the missing piece is how many results come back and how to narrow a broad query.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden for the three parameters and does not meet it. Nothing is said about what 'query' should contain (name, brand, partial match?), what 'limit' defaults to, or what 'language' controls. The per-100 g note is the only semantic hint, and it applies to results, not inputs.

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 states a specific verb and resource: it searches the Nutrista food database and shows food cards with per-100 g nutrient values. It is clear about what comes back, but it does not contrast itself with the sibling 'get_food' (single food lookup) or 'search_recipes', so an agent must infer the split between searching and direct retrieval.

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 gives concrete activation triggers: the user asks about calories/protein/carbs/fat/fiber for a food, or wants to compare foods. That is strong when-to-use guidance. It omits when-not-to-use — no mention of using 'get_food' when the food is already identified, or of logging flows via 'log_food'.

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