NutriRef
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NUTRIREF_BASE_URL | No | Base URL of the NutriRef API server. | https://nutriref.xyz |
| PAYER_PRIVATE_KEY | Yes | Private key of the wallet funding payments via USDC on Base mainnet. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| nutrition_searchA | Find foods in the USDA FoodData Central database by free-text name. Use this FIRST when the user mentions a food by name and you need its Args: q: Free-text food name (e.g. "banana", "greek yogurt", "chicken breast"). limit: Max results to return, 1-50. Default 10. Use a small limit unless you need to browse. |
| nutrition_detailA | Get the full per-100g nutrition profile for one specific food. Use this when you have an Args: fdc_id: USDA FoodData Central ID, obtained from nutrition_search. |
| nutrition_compareA | Compare 2 to 5 foods side by side. Use this when the user asks "which is healthier," "which has more protein," or any cross-food comparison — it's cheaper and clearer than calling nutrition_detail multiple times. Returns each food's full nutrition plus per-nutrient winners (highest protein, lowest sodium, etc.). Charges $0.003 USDC per call. Args: fdc_ids: 2 to 5 USDA FDC IDs to compare. |
| nutrition_recipeA | Sum nutrition across a recipe of weighted ingredients. Use this for meal planning, recipe analysis, or any "what are the totals if I combine X grams of A with Y grams of B" task. Each food's per-100g nutrition is scaled by grams/100 then summed. Charges $0.005 USDC per call. Args: ingredients: List of {"fdc_id": int, "grams": float} pairs. At least one; weights in grams. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
Each tool has a clear, distinct purpose: search for foods, get detailed nutrition for one food, compare multiple foods, and sum recipe nutrition. No overlapping functionality.
All tools follow a consistent 'nutrition_' prefix with descriptive verbs/nouns (search, detail, compare, recipe), making the naming pattern predictable and clear.
Four tools is well-scoped for a nutrition database server, covering essential operations without redundancy or excessive overhead.
The set covers the full lifecycle of working with USDA food data: search, retrieve details, compare, and aggregate recipe totals. No obvious gaps for typical use cases.