Skip to main content
Glama

USDA FoodData Central food search: FDC ID, description

gov_usda_fooddata_central
Read-only

USDA FoodData Central food search: FDC ID, description, data type (Branded, Foundation, SR Legacy and others), brand owner and publication date, for a food name. Search results only; nutrient values are not returned here. Usually answers in about 7 s, up to 17 s on slower calls; allow a 30 s timeout. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "query": "<query>"
    },
    "name": "gov_usda_fooddata_central"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoFoods to return, 1 to 10 (default 5)
queryYesFood name, 2 to 60 characters

Output Schema

NameRequiredDescriptionDefault
foodsNo
queryNo
sourceNo
checkedAtNo
totalHitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses expected latency (~7 s, up to 17 s, recommend a 30 s timeout), the price ($0.002 per successful call), the payment rail (x402 with USDC on Base, Solana and others), and that failed calls are not charged. These are exactly the operational facts an agent needs before invoking a paid network call.

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?

Content is front-loaded: what it returns, then the scope exclusion, then operational constraints. It is dense but each sentence carries distinct information; the pricing clause is long but material, though the description reads as one run-on block rather than separated lines.

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

Completeness5/5

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

With an output schema present, the description need not explain return values in depth, and it still summarizes them. For a 2-parameter read tool it covers purpose, scope, latency, cost, and payment mechanics — nothing an agent needs for correct invocation is missing.

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 description coverage is 100% and both parameters (query, limit) are fully documented in the schema, including the 1–10 range and default of 5. The description adds only the framing 'for a food name', which duplicates rather than extends the schema; 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?

The description names the specific resource (USDA FoodData Central), the lookup key (food name), and enumerates the returned fields (FDC ID, description, data type, brand owner, publication date). It also draws a hard boundary — 'Search results only; nutrient values are not returned here' — which lets an agent distinguish it from any nutrient-oriented lookup without opening the schema.

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

Usage Guidelines4/5

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

Usage context is clear: search by food name to identify foods, not to retrieve nutrient values. The exclusion of nutrient values functions as a when-not hint, but no specific alternative tool is named for that case, so it stops short of full alternative routing.

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