Operations: planning, absences and cover
Undo cover (preview)
- Permission required
ops.substitutions.manage
When to use it
Prepares undoing the cover applied to a class (the panel's "Undo" button): if the regular instructor is still absent the class becomes uncovered again; in a chain, the other class goes back to its instructor.
Input
| Field | Type | Description |
|---|---|---|
request_id | integer | Cover request (from ops_uncovered / ops_overview) |
occurrence_id | string | Or the class: sessionId@YYYY-MM-DD (from ops_schedule / ops_find_session) |
plan_id | integer | Or the applied plan (from ops_cover_history) |
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: Undo the Pilates cover
Call
{
"name": "ops_cover_undo_preview",
"arguments": {
"request_id": 812
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_cover_undo_preview",
"arguments": {
"request_id": 812
}
}
}