Skip to main content
Glama

Nutrients: proof-backed nutrition data

label

Read-only

The nutrition panel as a country prints it: rounding, mandatory rows, salt, allergens.

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

Input Schema

NameRequiredDescriptionDefault
idYes
basisNo
regimeNoUS, CA, EU, UK, AU_NZ, JP, CN or CODEX

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / basis / type
      Removed value: -"string"
    • removedInput schema / properties / id / description
      Removed value: -"Entity id, e.g. fd_k3m9x2q8vt7w4p (food), pr_ (product), sp_ (supplement), mi_ (menu item), rc_ (recipe). A source id also works: fdc:<USDA fdcId>, ndb:<NDB number>, dsld:<DSLD id>, fndds:<food code>, lnhpd:<LNHPD id>, ciqual:<alim_code>, cnf:<food code>, cofid:<food code>, matvaretabellen:<food id>, slv:<Livsmedelsverket number>."
    • removedInput schema / properties / id / maxLength
      Removed value: -64
    • removedInput schema / properties / id / minLength
      Removed value: -3
    • removedInput schema / properties / regime / default
      Removed value: -"US"
    • changedInput schema / properties / regime / description
      Previous value: -"US, CA, EU, UK, AU_NZ, JP, CN, CODEX"New value: +"US, CA, EU, UK, AU_NZ, JP, CN or CODEX"
  2. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"Entity id, e.g. fd_k3m9x2q8vt7w4p (food), pr_ (product), sp_ (supplement), mi_ (menu item), rc_ (recipe). A source id also works: fdc:<USDA fdcId>, ndb:<NDB number>, dsld:<DSLD id>, fndds:<food code>."New value: +"Entity id, e.g. fd_k3m9x2q8vt7w4p (food), pr_ (product), sp_ (supplement), mi_ (menu item), rc_ (recipe). A source id also works: fdc:<USDA fdcId>, ndb:<NDB number>, dsld:<DSLD id>, fndds:<food code>, lnhpd:<LNHPD id>, ciqual:<alim_code>, cnf:<food code>, cofid:<food code>, matvaretabellen:<food id>, slv:<Livsmedelsverket number>."
  3. First observed

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description does add real behavioral value by disclosing that output varies by country in rounding, mandatory rows, salt versus sodium, and allergen declarations — traits an agent would not otherwise know. It stops short of saying whether the label is computed from stored data or errors for unknown ids, so it adds context but not a full behavioral picture.

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 compact sentence with no wasted words, and the core differentiator (country-specific formatting) is front-loaded. It is terse to the point of being cryptic, but that is a clarity issue rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With three simple params, one required, and no output schema, the description covers the nature of the return value reasonably well by listing the panel elements. What remains missing is critical: the meaning of the required 'id', defaults for the optional parameters, and any failure mode. Adequate but with clear gaps for a tool the agent must call with a mandatory identifier.

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 only 33%: 'id' and 'basis' have no descriptions at all, and only 'regime' carries its enum of country codes. The description gestures at the country dimension ('as a country prints it') but never explains what 'id' identifies or what 'per_serving' versus 'per_100g' does, so the undocumented parameters remain opaque and the description does not compensate.

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

Purpose3/5

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

The description identifies the resource produced — a nutrition panel formatted as a given country prints it — and names the varied elements (rounding, mandatory rows, salt, allergens). But it is phrased elliptically ('as a country prints it') and never states the verb or that the label is generated for the item identified by 'id'. Siblings such as 'nutrition' and 'label_lines' are not differentiated, so the agent must guess how this differs.

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

Usage Guidelines2/5

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

There is no when-to-use guidance and no mention of alternatives: nothing says whether to call this instead of 'label_lines' or 'nutrition', nor under what circumstances a country-specific panel is wanted. Choices the agent must make — how 'regime' and 'basis' interact — are left entirely unaddressed.

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