Operations: planning, absences and cover
Centre operations overview
- Permission required
ops.planning.view
When to use it
In ONE call, the picture of a centre over a period (default this week): absences with their classes, uncovered classes with the best candidates for each (the panel's ranking), and conflicts (instructor in two classes at once, class taught by someone absent, covers to review, classes nobody can cover). The tool for "analyse CEM Joan Miró's week".
Input
| Field | Type | Description |
|---|---|---|
location_id | integer | |
location | string | Or the centre's name (e.g. "Joan Miró") |
date_from | string | Default this week's Monday |
date_to | string | Default that week's Sunday (max 31 days) |
candidates_per_class | integer | |
include_chains | boolean | |
max_classes | integer | Uncovered classes with candidates (the rest come without them) |
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 |
|---|---|---|
periodRequired | object | |
period.fromRequired | string | |
period.toRequired | string | |
locationRequired | object | null | |
summaryRequired | object | |
summary.classesRequired | number | |
summary.by_statusRequired | object | |
summary.absencesRequired | number | null | |
summary.uncoveredRequired | number | null | |
summary.urgentRequired | number | null | |
summary.covered_this_periodRequired | number | |
summary.conflictsRequired | number | |
absencesRequired | object[] | null | null if you cannot see absences |
uncoveredRequired | object[] | null | null if you cannot see substitutions |
conflictsRequired | object[] | |
conflicts[].typeRequired | "double_booked" | "taught_by_absent" | "cover_in_review" | "no_candidates" | double_booked: an instructor with two classes at once · taught_by_absent: taught (or covered) by someone absent · cover_in_review: cover to review because the absence changed · no_candidates: uncovered and nobody can |
conflicts[].worker_idRequired | number | null | |
conflicts[].workerRequired | string | null | |
conflicts[].occurrence_idsRequired | string[] | |
conflicts[].request_idRequired | number | null | |
conflicts[].detailRequired | string | |
next_stepsRequired | string |
Examples
Example 1: Analyse CEM Joan Miró's week
Call
{
"name": "ops_overview",
"arguments": {
"location": "Joan Miró"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_overview",
"arguments": {
"location": "Joan Miró"
}
}
}