Skip to main content
Glama

Nutrition & Calories: Get a food

nutrition_getFood
Read-onlyIdempotent

Get a food

One food: every nutrient per 100 g (energy, macronutrients, fats incl. saturated, trans, cholesterol and omega-3, sugars, fibre, sodium and salt, 9 minerals, 13 vitamins, caffeine) and its household portions with their weight (e.g. 1 medium tomato = 123 g). Use after a search when the user wants vitamins, minerals or a portion's weight.

GET /v1/nutrition/foods/{id} on Nutrition & Calories (SBX-BESIN). Costs 1 credit per call.

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": {
      "id": "<id>"
    },
    "name": "nutrition_getFood"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesA food id from /nutrition/foods, e.g. 170457.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety and idempotency (readOnly, idempotent, non-destructive, openWorld), so the description does not repeat them. Instead it adds genuinely new context: the underlying endpoint and, importantly, a cost of 1 credit per call, plus a detailed account of what comes back. The only gap is the absence of error behavior for an invalid id.

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-loads the verb and the returned payload, then usage condition, then endpoint and cost — a sensible priority order with no filler. The opening line 'Get a food' duplicates the title slightly, but the sentence that follows earns its space by enumerating the payload.

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 single-parameter lookup with no output schema, the description fully covers what is returned, when to call it, and the credit cost. Nothing an agent needs in order 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 coverage is 100% and the schema itself explains that 'id' is a food id from /nutrition/foods with an example. The description reinforces the search-then-fetch flow but adds no new syntax, format, or constraint information. Baseline 3 is correct when the schema carries the parameter detail.

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 ('Get a food') and immediately enumerates the payload: per-100 g nutrients plus household portions with weights. The clause 'Use after a search' distinguishes it from the search sibling, so an agent can tell the two apart without opening the 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?

Gives a concrete when-to-use condition: call it after a search when the user wants vitamins, minerals, or a portion's weight. That implicitly establishes the prerequisite of an id from a prior lookup. It stops short of naming the alternative tool or stating when not to use it, so it is clear but not fully routing.

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