upsert_training
Create up to four same-day training records or patch existing ones after confirmation. Provide datestr and movements for new entries, use localid with changed fields for updates, and reuse client_request_id on retries.
Instructions
Create or patch up to four same-day trainings, after the user's confirmation.
Provide datestr and movements for new records. Use localid for updates and include only changed fields. If movements are supplied for an update they replace the entire list, including unfinished sets. Use verified Chinese movement names and reuse client_request_id when retrying the same write.
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": {
"trains": "<trains>",
"client_request_id": "<client_request_id>"
},
"name": "upsert_training"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trains | Yes | ||
| client_request_id | Yes |