Operations: planning, absences and cover
Restore cancelled classes (preview)
- Permission required
ops.planning.edit
When to use it
Prepares bringing cancelled classes back (same filters as cancel). On confirm they go back to their instructor, or become uncovered if the instructor is absent that day.
Input
| Field | Type | Description |
|---|---|---|
occurrence_id | string | ONE class (otherwise use the range and filters) |
date_from | string | |
date_to | string | Max 62 days |
time_from | string | |
time_to | string | |
worker_id | integer | |
space_id | integer | |
service_id | integer | |
location_id | integer | Centre (id). Without it: every centre you can see |
organization_id | integer | Optional: can only be the key's organization |
Every tool also accepts lang (es | en) for the language of the text answer.
Output
| Field | Type | Description |
|---|---|---|
summaryRequired | string | What will change, in the caller's language |
effectsRequired | object | Structured detail of the change: affected people, classes, dates… |
confirm_tokenRequired | string | Pass it to confirm_action to execute. Single use, 15 minutes, only for this key |
expires_atRequired | string | ISO time when the token expires |
confirm_withRequired | "confirm_action" |
Examples
Example 1: Bring back the classes cancelled on the 24th
Call
{
"name": "ops_occurrence_restore_preview",
"arguments": {
"date_from": "2026-12-24"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_occurrence_restore_preview",
"arguments": {
"date_from": "2026-12-24"
}
}
}