Skip to main content
Glama

Nutrients: proof-backed nutrition data

get

Read-only

Full cards by id: every value with unit, basis, rank and source; unlisted is unknown. Misses carry contribute.

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": {
      "ids": "<ids>"
    },
    "name": "get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes
fieldsNoNutrient keys, e.g. energy, protein
regimeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • changedInput schema / properties / fields / description
      Previous value: -"Only return these nutrient keys (e.g. [\"energy\",\"protein\"]). Saves tokens. A group name returns every key under it, each as its own value in its own unit, never added or converted: \"vitamin_a\" gives vitamin_a.rae (µg) and vitamin_a.iu (IU); \"carbohydrate\" gives carbohydrate.total (includes fibre), carbohydrate.available (excludes it) and carbohydrate.available_mse. A key that is itself a registry key (e.g. \"fat\") is just that key. A name that matches nothing comes back missing with the closest keys."New value: +"Nutrient keys, e.g. energy, protein"
    • removedInput schema / properties / fields / maxItems
      Removed value: -100
    • removedInput schema / properties / ids / items / 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 / ids / items / maxLength
      Removed value: -64
    • removedInput schema / properties / ids / items / minLength
      Removed value: -3
    • removedInput schema / properties / ids / maxItems
      Removed value: -100
    • removedInput schema / properties / ids / minItems
      Removed value: -1
    • removedInput schema / properties / regime / description
      Removed value: -"Add values derivable for this regime (e.g. EU adds salt and available carbohydrate when exact)."
  2. Changed1 schema field changed
    • changedInput schema / properties / ids / items / 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.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description need only add retrieval-specific behavior. It does note that unlisted values are unknown, which is useful data-completeness context, but "Misses carry contribute" is too cryptic to convey what happens for missing IDs, and there is no mention of ordering, truncation, or response shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is short and front-loads the retrieval purpose, but the second sentence is elliptical to the point of being opaque. Brevity here costs clarity rather than eliminating waste.

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

Completeness2/5

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

For a tool with three parameters, low schema coverage, and no output schema, the description is far too thin. It should explain what a card contains, how fields and regime affect the result, and what happens when IDs are missing.

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?

With only 33% schema description coverage across three parameters, the description must compensate. It implies ids but says nothing about the fields parameter (which nutrient keys to select) or the regime parameter, leaving two of three inputs unexplained in both schema and description.

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 phrase "Full cards by id" does identify a retrieval operation and its key input, but "cards" is undefined domain jargon, and the description never distinguishes this from siblings such as describe, query, or nutrition. An agent can guess it fetches detailed records by ID but cannot confidently map it to a task.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no alternatives named, and no preconditions. The sentence "Misses carry contribute" is not actionable as usage guidance and does not clarify when to prefer this tool over search or describe.

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