Operations: planning, absences and cover
Cover history
- Permission required
ops.substitutions.view
When to use it
Applied covers (who covers or covered whom, when and how) in a past, present or future period, as the panel's history. Only those in force (undone ones are left out).
Input
| Field | Type | Description |
|---|---|---|
date_from | string | |
date_to | string | Max 93 days |
worker_id | integer | As cover or as regular instructor |
location_id | integer | Centre (id). Without it: every centre you can see |
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 |
|---|---|---|
fromRequired | string | |
toRequired | string | |
totalRequired | number | |
substitutionsRequired | object[] | |
substitutions[].substitution_idRequired | number | |
substitutions[].plan_idRequired | number | null | |
substitutions[].request_idRequired | number | null | |
substitutions[].occurrence_idRequired | string | |
substitutions[].dateRequired | string | |
substitutions[].startRequired | string | null | |
substitutions[].activityRequired | string | null | |
substitutions[].spaceRequired | string | null | |
substitutions[].location_idRequired | number | null | |
substitutions[].original_worker_idRequired | number | null | |
substitutions[].original_workerRequired | string | null | |
substitutions[].substitute_worker_idRequired | number | null | |
substitutions[].substitute_workerRequired | string | null | |
substitutions[].methodRequired | string | null | |
substitutions[].reasonRequired | string | null | |
substitutions[].paidRequired | boolean |
Examples
Example 1: This week's covers
Call
{
"name": "ops_cover_history",
"arguments": {
"date_from": "2026-11-23",
"date_to": "2026-11-29"
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_cover_history",
"arguments": {
"date_from": "2026-11-23",
"date_to": "2026-11-29"
}
}
}