MCPDocumentation
On this page

Operations: planning, absences and cover

Instructor hours

ops_worker_hours
Read
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

FieldTypeDescription
worker_idintegerWithout it: team ranking (closest to the cap first)
monthstringYYYY-MM (default this month)
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
monthRequiredstring
workerRequiredobject | null
summaryRequiredobject | null
rankingRequiredobject[]
ranking[].worker_idRequirednumber
ranking[].workerRequiredstring
ranking[].totalRequirednumber
ranking[].extraRequirednumber
ranking[].topallRequirednumber | null
ranking[].topall_usedRequirednumber
ranking[].topall_pctRequirednumber | null

Examples

Example 1: Is Ingrid close to her cap?

Call

JSON
{
  "name": "ops_worker_hours",
  "arguments": {
    "worker_id": 12,
    "month": "2026-11"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_worker_hours",
    "arguments": {
      "worker_id": 12,
      "month": "2026-11"
    }
  }
}