Get Macros
get_macrosRetrieve per 100 g calories, protein, total fat, and carbohydrates for a FoodData Central entry. Get macro nutrient breakdown for any food item in one request.
Instructions
Return per 100 g calories, protein, total fat, and carbohydrates for a FoodData Central entry.
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": {
"fdcId": "<fdcId>"
},
"name": "get_macros"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fdcId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| nutrients | Yes |