Get Target Details
get_target_detailsWhere the user's current target for each nutrient comes from, its upper limit, and what the app says about the nutrient. A past diary day can show an earlier target.
origin.type: "standard" (from the standard the user follows), "fallback" (their standard sets none, so another's is used), "custom" (the user set it themselves; the reason isn't recorded), "calculated" (from their body and energy needs) or "default" (Nutriely's own suggestion). origin.outdated means the saved target was worked out before the current values, and recalculating in the app updates it. upper_limit is a level to stay under, separate from the target; vitamin A's is on retinol (RETOL), since it only applies to that form. about and diet_note are the app's guidance on the nutrient.
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": {
"codes": "<codes>"
},
"name": "get_target_details"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| codes | Yes | Nutrient codes, from get_diary or list_components. Up to 20. |