MCPDocumentation
On this page

Operations: planning, absences and cover

Centre operations overview

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

FieldTypeDescription
location_idinteger
locationstringOr the centre's name (e.g. "Joan Miró")
date_fromstringDefault this week's Monday
date_tostringDefault that week's Sunday (max 31 days)
candidates_per_classinteger
include_chainsboolean
max_classesintegerUncovered classes with candidates (the rest come without them)
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
periodRequiredobject
period.fromRequiredstring
period.toRequiredstring
locationRequiredobject | null
summaryRequiredobject
summary.classesRequirednumber
summary.by_statusRequiredobject
summary.absencesRequirednumber | null
summary.uncoveredRequirednumber | null
summary.urgentRequirednumber | null
summary.covered_this_periodRequirednumber
summary.conflictsRequirednumber
absencesRequiredobject[] | nullnull if you cannot see absences
uncoveredRequiredobject[] | nullnull if you cannot see substitutions
conflictsRequiredobject[]
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_idRequirednumber | null
conflicts[].workerRequiredstring | null
conflicts[].occurrence_idsRequiredstring[]
conflicts[].request_idRequirednumber | null
conflicts[].detailRequiredstring
next_stepsRequiredstring

Examples

Example 1: Analyse CEM Joan Miró's week

Call

JSON
{
  "name": "ops_overview",
  "arguments": {
    "location": "Joan Miró"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_overview",
    "arguments": {
      "location": "Joan Miró"
    }
  }
}