Skip to main content
Glama

food_nutrition

Nutrition facts for a food: calories, protein, fat, carbs, fiber, sodium and vitamins from USDA FoodData Central, scaled to the grams you pass. Paid via x402 ($0.0033 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).

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": {
      "food": "<food>"
    },
    "name": "food_nutrition"
  }
}

Input Schema

NameRequiredDescriptionDefault
foodYesIngredient or food name in English or Spanish, e.g. banana, huevo, chicken breast.
gramsNoEdible grams to scale the nutrients to (default 100).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses per-call cost and chains, the free-trial path, that invalid input is rejected without payment (error/side-effect behavior), and that responses include asOf and source. Only rate-limiting beyond the free tier is unstated.

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?

Front-loads the core purpose, then payment and trial details. Dense but organized; the payment/chain parenthetical is lengthy though justified since no annotations cover it.

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

Completeness4/5

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

No output schema exists, and the description partially addresses returns by naming asOf and source plus the nutrient fields. For a 2-param lookup tool this is largely complete, though the full response shape isn't spelled out.

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 both parameters (food name, grams) are documented there. The description only reinforces grams scaling ('scaled to the grams you pass'); it adds no new syntax or format detail, so baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ('Nutrition facts for a food'), enumerates the exact fields returned (calories, protein, fat, carbs, fiber, sodium, vitamins), names the data source (USDA FoodData Central), and describes scaling behavior. An agent knows exactly what it gets.

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?

Provides rich operational guidance about payment (x402, USDC cost, chains), free trial limits (3/day per IP, X-Free-Trial header), and input validation, but never states when to choose this tool over alternatives or any prerequisites beyond payment. Usage context is implied rather than explicit.

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