MCPDocumentation
On this page

Operations: planning, absences and cover

Cover availability

ops_worker_availability
Read
Permission required
ops.planning.view

When to use it

When an instructor can COVER other people's classes (not their own timetable): slots per weekday, or whether they never cover. The candidate ranking uses it.

Input

FieldTypeDescription
worker_idRequiredinteger
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
coversRequiredbooleanfalse = does not cover other people's classes (said so)
declaredRequiredbooleanfalse = no slots: can cover at any time
weekRequiredobject[]
week[].day_of_weekRequirednumber0 = Monday … 6 = Sunday
week[].dayRequiredstring
week[].startRequiredstring
week[].endRequiredstring

Examples

Example 1: When can Pol cover?

Call

JSON
{
  "name": "ops_worker_availability",
  "arguments": {
    "worker_id": 7
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_worker_availability",
    "arguments": {
      "worker_id": 7
    }
  }
}