get_food_details
Retrieve a food's full nutrient profile and serving sizes to use after search_foods, providing the nutrient values and measure_ids needed to log entries in Cronometer.
Instructions
Get detailed food information including nutrition and serving sizes.
Use this after search_foods to get the full nutrient profile and available measure_ids needed for add_food_entry.
nutrients is for one serving of serving_grams, keyed and scaled exactly
as add_custom_food and update_custom_food take them, so a value read here
can be written straight back unchanged. Cronometer's own stored rows, per
100 g and by numeric id, are alongside as nutrients_per_100g.
Args: food_id: Food ID from search_foods results.
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": {
"food_id": "<food_id>"
},
"name": "get_food_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| food_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |