Skip to main content
Glama

Nutrimeniu Nutrition Calculator

Search foods

search_foods
Read-onlyIdempotent

Search the Nutrimeniu food database (Romanian and European foods, names in English and Romanian, diacritics optional) and return matching foods with their food_id, data source and nutrition values per 100 g (energy kJ/kcal, fat, saturates, carbohydrate, sugars, protein, salt). Use this to look up a food by name, for example an ingredient that matched several foods or none in a nutrition calculation. Searches share a budget of 50 food lookups per conversation with incomplete calculations. Values are estimates from the source data, not laboratory analysis.

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
langNoLanguage of the query and of the returned names. Default en.
limitNoMaximum number of results, 1 to 20. Default 10.
queryYesFood name to look for, in English or Romanian (diacritics optional).

Output Schema

NameRequiredDescriptionDefault
foodsYes
limit_reachedNoPresent only when a limit was reached: no search or calculation was made. message explains the limit; register_url, when present, opens the Nutrimeniu sign-up page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so the safety bar is low; the description still adds real behavioral context beyond them: a shared budget of 50 food lookups per conversation, the provenance of values (source data, not laboratory analysis), and diacritics-tolerant matching. These are constraints an agent could not infer from structured fields.

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?

Front-loaded and waste-free in intent, with scope, usage and caveat in sequence. The first sentence is long and enumerates every nutrient field even though an output schema exists, which is minor duplication rather than a clarity problem.

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?

For a three-parameter, read-only search with an output schema, the description covers domain, multilingual behavior, budget limits, data provenance and a caveat on estimate quality. Nothing an agent needs to invoke it correctly is missing.

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 100%, so query, lang and limit are already documented with ranges and defaults. The description reinforces the cross-language and diacritics behavior of the query parameter but adds no syntax or semantics not present in the schema, so the baseline of 3 applies.

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?

States a specific verb and resource (search the Nutrimeniu food database) plus the domain scope (Romanian/European foods, English and Romanian names, diacritics optional) and what is returned (food_id, data source, per-100g nutrition). An agent can distinguish this from calculate_nutrition without opening either schema.

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?

"Use this to look up a food by name, for example an ingredient that matched several foods or none in a nutrition calculation" gives a concrete trigger and implicitly routes the agent here after/around the calculate_nutrition sibling. It lacks an explicit when-not-to-use statement, but the intended invocation context is clear.

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