Skip to main content
Glama

Nutrients For Food

nutrients_for_food
Read-onlyIdempotent

Convenience: nutrient values only for a food.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fdc_idYes
nutrient_numbersNoComma-sep nutrient numbers (e.g. "208,205")

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
fdc_idNoFDC food identifier
nutrientsNoArray of nutrient values
descriptionNoFood description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "fdc_id": 1102704,
      +    "nutrient_numbers": "208,205,291"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Nutrient values for a specific food",
      +  "properties": {
      +    "description": {
      +      "description": "Food description",
      +      "type": "string"
      +    },
      +    "fdc_id": {
      +      "description": "FDC food identifier",
      +      "type": "number"
      +    },
      +    "nutrients": {
      +      "description": "Array of nutrient values",
      +      "items": {
      +        "properties": {
      +          "amount": {
      +            "description": "Nutrient amount",
      +            "type": "number"
      +          },
      +          "name": {
      +            "description": "Nutrient name",
      +            "type": "string"
      +          },
      +          "number": {
      +            "description": "Nutrient identifier number",
      +            "type": "string"
      +          },
      +          "unit": {
      +            "description": "Unit of measurement",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  2. 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, openWorldHint, idempotentHint, and destructiveHint=false, so the description's claim of being convenience-oriented aligns. However, it does not add further behavioral details beyond what annotations provide, such as error handling or response format.

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 description is a single sentence, which is concise but too brief to cover necessary details. It is not verbose, but it sacrifices clarity and completeness for brevity.

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 the presence of an output schema the description could be minimal, but it fails to explain that fdc_id is a food code and that nutrient_numbers filters results. The description is incomplete for a tool with two parameters and a specific output.

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 50% schema description coverage (only nutrient_numbers has a description), the tool description adds no parameter explanations. The fdc_id parameter lacks any meaning in both schema and description, which is insufficient for an agent to understand its role without prior knowledge.

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 'nutrient values only for a food' clearly states the tool retrieves nutrient data for a specific food. It distinguishes it from sibling tools like 'get_food' which likely returns full food details. However, it could be more explicit about the scope.

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?

The description provides no guidance on when to use this tool versus alternatives like 'get_food' or 'search_foods'. It does not specify prerequisites or when not to use it, leaving the agent to infer usage solely from the name.

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.