MCPDocumentation
On this page

Operations: planning, absences and cover

Restore cancelled classes (preview)

ops_occurrence_restore_preview
Two-phase write
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

FieldTypeDescription
occurrence_idstringONE class (otherwise use the range and filters)
date_fromstring
date_tostringMax 62 days
time_fromstring
time_tostring
worker_idinteger
space_idinteger
service_idinteger
location_idintegerCentre (id). Without it: every centre you can see
organization_idintegerOptional: can only be the key's organization

Every tool also accepts lang (es | en) for the language of the text answer.

Output

FieldTypeDescription
summaryRequiredstringWhat will change, in the caller's language
effectsRequiredobjectStructured detail of the change: affected people, classes, dates…
confirm_tokenRequiredstringPass it to confirm_action to execute. Single use, 15 minutes, only for this key
expires_atRequiredstringISO time when the token expires
confirm_withRequired"confirm_action"

Examples

Example 1: Bring back the classes cancelled on the 24th

Call

JSON
{
  "name": "ops_occurrence_restore_preview",
  "arguments": {
    "date_from": "2026-12-24"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_occurrence_restore_preview",
    "arguments": {
      "date_from": "2026-12-24"
    }
  }
}