Import food history from another app
trainrec_import_foodImports past meals from another nutrition app or file: each entry's day, meal, name, numbers PER SERVING and servings. Up to 200 entries per call; the same batch id on later calls makes one import, undone together. Entries already imported from the same app are skipped.
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": {
"app": "<app>",
"entries": "<entries>"
},
"name": "trainrec_import_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | Where these came from, e.g. "MyFitnessPal". | |
| batch | No | Returned by the first call; pass it on later calls in the same import. | |
| entries | Yes |