MCPDocumentation
On this page

Operations: planning, absences and cover

Move a class (preview)

ops_session_move_preview
Two-phase write
Permission required
ops.planning.edit

When to use it

Prepares changing the time, day or room of a recurring class with a scope (that day only, from that day, up to a date or the whole series), with the panel's rules (room busy, instructor busy, qualification). The preview already checks those rules.

Input

FieldTypeDescription
occurrence_idRequiredstring
scopeRequired"single" | "future" | "until" | "all"single: that day only · future: from that day · until: up to until · all: the whole series
untilstring
startstringNew start time
endstringNew end time (default keeps the duration)
weekdayintegerNew day: 1 = Monday … 7 = Sunday
space_idintegerNew room
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: Monday's Body Pump moves to 11:00 from that day

Call

JSON
{
  "name": "ops_session_move_preview",
  "arguments": {
    "occurrence_id": "120@2026-11-30",
    "scope": "future",
    "start": "11:00"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_session_move_preview",
    "arguments": {
      "occurrence_id": "120@2026-11-30",
      "scope": "future",
      "start": "11:00"
    }
  }
}