Operations: planning, absences and cover
Cover candidates
- Permission required
ops.substitutions.view
When to use it
Who can cover a class, best first, with the panel's ranking: availability, qualification, already at the centre, gaps, rest, weekly load and cap; includes chains (B moves to the class and C takes B's) and who cannot and why. If the class is not pending, the candidates are indicative (hypothetical).
Input
| Field | Type | Description |
|---|---|---|
request_id | integer | Cover request (from ops_uncovered / ops_overview) |
occurrence_id | string | Or the class: sessionId@YYYY-MM-DD (from ops_schedule / ops_find_session) |
include_chains | boolean | |
limit | 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 |
|---|---|---|
request_idRequired | number | null | |
hypotheticalRequired | boolean | true = the class is not pending: indicative candidates, cannot be assigned |
statusRequired | string | Request status (or class status if hypothetical) |
classRequired | object | |
class.occurrence_idRequired | string | |
class.session_idRequired | number | |
class.dateRequired | string | |
class.startRequired | string | null | |
class.endRequired | string | null | |
class.activityRequired | string | null | |
class.spaceRequired | string | null | |
class.missing_worker_idRequired | number | null | |
class.missing_workerRequired | string | null | |
covered_byRequired | string | null | |
optionsRequired | object[] | Options best first: the same list and order as the panel |
options[].rankRequired | number | 1 = recommended (same position as in the panel) |
options[].recommendedRequired | boolean | |
options[].kindRequired | "direct" | "chain" | direct: 1 move; chain: the person leaves their class and another covers it |
options[].scoreRequired | number | Engine score (lower = better) |
options[].worker_idRequired | number | |
options[].workerRequired | string | |
options[].whyRequired | string | Why (as the panel explains it) |
options[].penaltiesRequired | string | Score breakdown |
options[].chainRequired | object | null | Chain: who takes the class worker leaves (pass it to ops_cover_assign_preview) |
options[].flagsRequired | object | |
options[].breakdownRequired | object | |
total_optionsRequired | number | |
blockedRequired | object[] | Who cannot and why |
blocked[].worker_idRequired | number | |
blocked[].workerRequired | string | |
blocked[].codesRequired | string[] | |
blocked[].why_notRequired | string |
Examples
Example 1: Candidates for an uncovered class
Call
{
"name": "ops_cover_candidates",
"arguments": {
"request_id": 812
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_cover_candidates",
"arguments": {
"request_id": 812
}
}
}