Skip to main content
Glama

Nutrients: proof-backed nutrition data

resolve

Read-only

Match food phrases ("2 large eggs") to ranked candidates with grams and values; the first is selected, assumed says what was guessed. 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": {
      "texts": "<texts>"
    },
    "name": "resolve"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocandidates
kindsNo
limitNo
textsYes
fieldsNoNutrient keys, e.g. energy, protein
localeNo
marketNoISO country
regimeNo
portionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 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 / kinds / items / type
      Removed value: -"string"
    • removedInput schema / properties / limit / default
      Removed value: -5
    • removedInput schema / properties / limit / description
      Removed value: -"Candidates per phrase."
    • removedInput schema / properties / limit / maximum
      Removed value: -10
    • removedInput schema / properties / limit / minimum
      Removed value: -1
    • removedInput schema / properties / locale / description
      Removed value: -"BCP 47 locale, e.g. en-US, en-GB, ja-JP. Decides household measure sizes (a US cup is 236.6 ml, a metric cup 250 ml)."
    • removedInput schema / properties / locale / maxLength
      Removed value: -16
    • changedInput schema / properties / market / description
      Previous value: -"ISO 3166-1 country where the item is sold or eaten, e.g. US, GB, JP."New value: +"ISO country"
    • removedInput schema / properties / market / maxLength
      Removed value: -2
    • removedInput schema / properties / market / minLength
      Removed value: -2
    • removedInput schema / properties / mode / type
      Removed value: -"string"
    • removedInput schema / properties / portions / default
      Removed value: -6
    • removedInput schema / properties / portions / description
      Removed value: -"Portions per candidate."
    • removedInput schema / properties / portions / maximum
      Removed value: -20
    • removedInput schema / properties / portions / minimum
      Removed value: -0
    • removedInput schema / properties / regime / description
      Removed value: -"With fields: add values derivable for this regime (e.g. EU adds salt from sodium)."
    • removedInput schema / properties / texts / items / maxLength
      Removed value: -300
    • removedInput schema / properties / texts / items / minLength
      Removed value: -1
    • removedInput schema / properties / texts / maxItems
      Removed value: -50
    • removedInput schema / properties / texts / minItems
      Removed value: -1
  2. First observed

TDQS

C2.7/5.0
Behavior3/5

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

The description adds some behavior beyond the read-only annotation: it returns ranked candidates with grams and values, selects the first, and mentions assumptions. However, it is cryptic about modes, failure behavior, and what "Misses carry contribute" means, leaving significant behavioral gaps.

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

Conciseness2/5

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

The description is short and front-loads the main point, but the second sentence is malformed and opaque ("Misses carry contribute"), undermining clarity. It is under-specified rather than appropriately concise.

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?

Given nine parameters, no output schema, and resolution behavior that likely varies by mode, the description is far too thin to be complete. It gives only a partial picture of output and omits most parameter and mode semantics.

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 22% across nine parameters, so the description should compensate heavily but does not. It does not explain mode, kinds, limit, locale, market, regime, portions, or fields beyond an oblique reference to grams and values.

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 action and resource: matching food phrases such as "2 large eggs" to ranked candidates with grams and values. This is clear enough to understand the tool's core purpose, though it does not explicitly distinguish it from siblings like search, query, or lookup_barcode.

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 explicit guidance on when to use this tool versus alternatives, nor when not to use it. The mention that "the first is selected" hints at a pick mode but does not explain when an agent should choose candidates versus pick mode or use other resolution tools.

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