MCPDocumentation
On this page

Operations: planning, absences and cover

Undo cover (preview)

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

FieldTypeDescription
request_idintegerCover request (from ops_uncovered / ops_overview)
occurrence_idstringOr the class: sessionId@YYYY-MM-DD (from ops_schedule / ops_find_session)
plan_idintegerOr the applied plan (from ops_cover_history)
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: Undo the Pilates cover

Call

JSON
{
  "name": "ops_cover_undo_preview",
  "arguments": {
    "request_id": 812
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_cover_undo_preview",
    "arguments": {
      "request_id": 812
    }
  }
}