Operations: planning, absences and cover
Instructor hours
- Permission required
ops.planning.view
When to use it
Classes/hours in a month as the panel computes them: agreed, complementary, extra (covers) and use of the extra-hours cap. Without an instructor: team ranking by cap use and total.
Input
| Field | Type | Description |
|---|---|---|
worker_id | integer | Without it: team ranking (closest to the cap first) |
month | string | YYYY-MM (default this month) |
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 |
|---|---|---|
monthRequired | string | |
workerRequired | object | null | |
summaryRequired | object | null | |
rankingRequired | object[] | |
ranking[].worker_idRequired | number | |
ranking[].workerRequired | string | |
ranking[].totalRequired | number | |
ranking[].extraRequired | number | |
ranking[].topallRequired | number | null | |
ranking[].topall_usedRequired | number | |
ranking[].topall_pctRequired | number | null |
Examples
Example 1: Is Ingrid close to her cap?
Call
{
"name": "ops_worker_hours",
"arguments": {
"worker_id": 12,
"month": "2026-11"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_worker_hours",
"arguments": {
"worker_id": 12,
"month": "2026-11"
}
}
}