Skip to main content
Glama
nutrition-mcp
by asachs01

nutrition

Search USDA FoodData Central to find foods, retrieve detailed nutrient data by FDC ID, or compare multiple foods for diet tracking.

Instructions

Search USDA FoodData Central, get nutrition details, or compare foods. Actions: search, get, compare.

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": {
      "action": "<action>"
    },
    "name": "nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
fdcIdNoFDC ID (for get action)
queryNoSearch query (for search action)
actionYesAction to perform
fdcIdsNoFDC IDs (for compare action)
dataTypeNoFilter by data type
pageSizeNoResults per page (default 10)
pageNumberNoPage number (default 1)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: no auth/API-key requirements, no rate limits, no return shape, and no note that compare requires multiple ids or that pagination applies to search. It only restates the action names.

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?

Two short sentences, front-loaded with the data source and purpose, with zero filler. The trailing 'Actions: search, get, compare' is slightly redundant with the sentence before it and with the schema enum, but the overall size is appropriate.

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?

This is a 7-parameter, three-mode tool with no annotations and no output schema, yet the description says nothing about return content, pagination behavior, dataType filtering, or multi-id requirements for compare. It is far too thin for the tool's complexity.

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 every parameter carries an inline description tying it to an action, so the schema already does the explanatory work. The description adds no meaning beyond the schema and merely echoes the action enum.

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 names a specific verb set and resource ('Search USDA FoodData Central', 'get nutrition details', 'compare foods') and enumerates the three actions. An agent can tell what domain the tool covers, though it never contrasts itself with the meal_log or targets siblings.

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

Usage Guidelines3/5

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

The action list implies which mode to pick (search with a query, get with an fdcId, compare with fdcIds), but there is no explicit when-to-use guidance, no mention of prerequisites, and no statement about when to prefer meal_log or targets instead. Usage is inferable, not stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools