Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_food_nutrient_search

Read-onlyIdempotent

Search USDA FoodData Central branded/foundation foods with caller-owned API key; return actual per-food nutrient quantities and units. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": "api_food_nutrient_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum foods 1 to 10
queryYesFood/ingredient name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new operational context: a per-call cost of 0.01 USDC on Base x402 and the need for caller-owned provider credentials via an X-Provider-Key header — both material to whether and how an agent should invoke it. It stops short of error/rate-limit or result-count behavior, so not a 5.

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 dense clauses that front-load the purpose before cost and auth details; no filler sentences. The semicolon-chained style is slightly compressed but every clause carries information an agent needs.

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?

With only two simple parameters and no output schema, the description does the important extra work of indicating that nutrient quantities and units are returned, plus cost and credential requirements. Missing only edge details such as result pagination or failure modes, which are minor for a read-only two-parameter search.

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% (query = food/ingredient name, limit = 1 to 10), so the schema carries parameter meaning. The description adds only the general promise of nutrient quantities and units, not syntax or filtering semantics for either parameter. Baseline 3 is appropriate.

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 ('Search USDA FoodData Central branded/foundation foods') and narrows scope to two dataset types, which clearly separates it from siblings like api_recipe_search or api_marketplace_product_search. It also says what comes back ('actual per-food nutrient quantities and units'), so the agent knows the output shape without opening a schema.

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 when-to-use or when-not-to-use guidance and no named alternative among the many sibling search tools (recipe, product, marketplace). The branded/foundation qualifier hints at scope but the agent must infer whether to route here or to a recipe/product search.

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