Operations: planning, absences and cover
Cover availability
- 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
| Field | Type | Description |
|---|---|---|
worker_idRequired | integer | |
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 |
|---|---|---|
workerRequired | object | |
worker.idRequired | number | |
worker.nameRequired | string | |
coversRequired | boolean | false = does not cover other people's classes (said so) |
declaredRequired | boolean | false = no slots: can cover at any time |
weekRequired | object[] | |
week[].day_of_weekRequired | number | 0 = Monday … 6 = Sunday |
week[].dayRequired | string | |
week[].startRequired | string | |
week[].endRequired | string |
Examples
Example 1: When can Pol cover?
Call
{
"name": "ops_worker_availability",
"arguments": {
"worker_id": 7
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_worker_availability",
"arguments": {
"worker_id": 7
}
}
}