Fooddata Central Tools¶
Configuration File: fooddata_central_tools.json
Tool Type: Local
Tools Count: 2
This page contains all tools defined in the fooddata_central_tools.json configuration file.
Available Tools¶
FoodDataCentral_get_food (Type: FoodDataCentralTool)¶
Get detailed food information by FDC ID from USDA FoodData Central. Returns complete nutrient pro…
FoodDataCentral_get_food tool specification
Tool Information:
Name:
FoodDataCentral_get_foodType:
FoodDataCentralToolDescription: Get detailed food information by FDC ID from USDA FoodData Central. Returns complete nutrient profile, ingredients, serving size, and food attributes. Example: FDC ID 2344723 returns ‘Bananas, raw’ with 70+ nutrients.
Parameters:
fdc_id([‘integer’, ‘string’]) (required) FoodData Central food ID (e.g., 2344723 for bananas, 2012128 for branded banana product). Get IDs from FoodDataCentral_search_foods.
Example Usage:
query = {
"name": "FoodDataCentral_get_food",
"arguments": {
"fdc_id": "example_value"
}
}
result = tu.run(query)
FoodDataCentral_search_foods (Type: FoodDataCentralTool)¶
Search USDA FoodData Central for foods by keyword. Returns matching foods with nutrient data, bra…
FoodDataCentral_search_foods tool specification
Tool Information:
Name:
FoodDataCentral_search_foodsType:
FoodDataCentralToolDescription: Search USDA FoodData Central for foods by keyword. Returns matching foods with nutrient data, brand info, and ingredients. Covers Foundation, Branded, SR Legacy, and Survey data. Example: ‘banana’ finds all banana products.
Parameters:
query(string) (required) Search keywords (e.g., ‘cheddar cheese’, ‘banana’, ‘chicken breast’). Supports multi-word search.page_size(integer) (optional) Number of results per page (default 25, max 200).page_number(integer) (optional) Page number for pagination (starts at 1).data_type(string) (optional) Filter by data type. Options: ‘Foundation’ (reference foods), ‘Branded’ (commercial products), ‘SR Legacy’ (USDA standard reference), ‘Survey (FNDDS)’ (national dietary survey).
Example Usage:
query = {
"name": "FoodDataCentral_search_foods",
"arguments": {
"query": "example_value"
}
}
result = tu.run(query)