MCPDocumentation
On this page

Operations: planning, absences and cover

Is it free?

ops_worker_free
Read
Permission required
ops.planning.view

When to use it

Is an instructor free on a day (and slot)? Looks at their classes, absences, declared availability, whether they cover, and with service_id whether they can teach that activity.

Input

FieldTypeDescription
worker_idRequiredinteger
dateRequiredstring
time_fromstring
time_tostringDefault time_from + 1 h
service_idintegerActivity to cover: also checks they can teach it
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
workerRequiredobject
worker.idRequirednumber
worker.nameRequiredstring
dateRequiredstring
time_fromRequiredstring | null
time_toRequiredstring | null
freeRequiredboolean
verdictRequiredstring
absentRequiredboolean
absence_idRequirednumber | null
classes_that_dayRequiredobject[]
classes_that_day[].occurrence_idRequiredstringId of the class that day: sessionId@YYYY-MM-DD
classes_that_day[].session_idRequirednumber
classes_that_day[].dateRequiredstring
classes_that_day[].startRequiredstring | null
classes_that_day[].endRequiredstring | null
classes_that_day[].activityRequiredstring | null
classes_that_day[].service_idRequirednumber | null
classes_that_day[].spaceRequiredstring | null
classes_that_day[].space_idRequirednumber | null
classes_that_day[].location_idRequirednumber | nullCentre (null = no centre: whole organization)
classes_that_day[].worker_idRequirednumber | nullRegular instructor
classes_that_day[].workerRequiredstring | null
classes_that_day[].statusRequiredstringplanned | pending_cover (uncovered) | substituted (covered) | cancelled
classes_that_day[].covered_by_idRequirednumber | null
classes_that_day[].covered_byRequiredstring | null
classes_that_day[].request_idRequirednumber | nullOpen cover request, if any
busy_in_slotRequiredstring[]
declared_availabilityRequiredboolean
windows_that_dayRequiredstring[]
in_windowRequiredboolean | null
coversRequiredboolean
can_teachRequiredobject | null

Examples

Example 1: Is Ingrid free on Friday at 10 for Hyrox?

Call

JSON
{
  "name": "ops_worker_free",
  "arguments": {
    "worker_id": 12,
    "date": "2026-11-27",
    "time_from": "10:00",
    "service_id": 31
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_worker_free",
    "arguments": {
      "worker_id": 12,
      "date": "2026-11-27",
      "time_from": "10:00",
      "service_id": 31
    }
  }
}