Skip to main content
Glama
cryptomotifs

cipher-x402-mcp

by cryptomotifs

usda_food_nutrition

Get nutrition information for any food from the USDA database. Returns per 100g macro breakdown and alternative matches. Requires x402 authorization.

Instructions

USDA FoodData Central nutrition lookup. Query any food (brand or generic) and receive the best-matching record with a clean per_100g macro block (calories_kcal, protein_g, carb_g, fat_g, fiber_g, sugar_g, potassium_mg), plus alternates. Priced at $0.002 USDC on Base (x402). Pass a signed x402 v2 authorization as the '_payment' argument to unlock the paid response. Without it, the tool returns the 402 accept-list for your wallet to sign.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoAlternates to return (1-10). Default 5.
queryYesFood name (e.g. 'banana', 'chicken breast raw').
_paymentNoOptional. Signed x402 v2 X-PAYMENT header value (base64-encoded EIP-3009 authorization). If present, forwarded upstream; if absent, tool returns the 402 accept-list.
Behavior4/5

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

With no annotations provided, the description fully discloses the payment mechanism: it requires a signed x402 v2 authorization via the '_payment' parameter to unlock the paid response, and without it returns a 402 accept-list. The description also states it returns a clean macro block plus alternates, giving clear behavioral expectations.

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?

The description is about five sentences and front-loads the purpose ('USDA FoodData Central nutrition lookup'). It is efficient and all sentences add value, briefly covering input, output, and payment. However, it could be slightly more structured (e.g., bullet points) for easier scanning.

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

Completeness3/5

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

The description explains the return of a 'clean per_100g macro block' and alternates but does not detail the full return format (e.g., food name, description, or how alternates are structured). There is no output schema to compensate. Error handling and edge cases (e.g., invalid query) are not addressed. For a paid tool, this is adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with all three parameters described in the schema. The description adds value for the '_payment' parameter by explaining the x402 v2 authorization format and that it unlocks the paid response. For 'query' and 'limit', the schema descriptions suffice, but the extra payment context raises the score above baseline 3.

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 clearly states the tool performs a 'USDA FoodData Central nutrition lookup' and specifies what it returns: 'best-matching record with a clean per_100g macro block' plus alternates. This distinguishes it from sibling tools which are unrelated (e.g., solana_wallet_scan, pubmed_medical_search).

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 description says 'Query any food (brand or generic)' and explains the payment workflow, but does not provide when to use this tool versus alternatives or any conditions to avoid using it. It implicitly assumes the user wants nutrition data but offers no comparative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cryptomotifs/cipher-x402-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server