Create availability
tp_create_availabilityMark a date range as unavailable for training, optionally keeping certain sports available. Returns an availability ID for later deletion.
Instructions
Mark a date range as unavailable for training (or limited to certain sports). limited=false means fully unavailable; with limited=true, sport_types lists the sports that REMAIN available. Returns availability_id, needed for tp_delete_availability.
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": {
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "tp_create_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| athlete | No | Target athlete name or ID (coach accounts only). Omit to use your own profile. | |
| limited | No | ||
| end_date | Yes | YYYY-MM-DD | |
| start_date | Yes | YYYY-MM-DD | |
| description | No | Optional short label shown on the calendar entry | |
| sport_types | No | If limited, sports that REMAIN available — names (e.g. 'Run') or TP sport-type ids |