MCPDocumentation
On this page

Operations: planning, absences and cover

Cover history

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

FieldTypeDescription
date_fromstring
date_tostringMax 93 days
worker_idintegerAs cover or as regular instructor
location_idintegerCentre (id). Without it: every centre you can see
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
fromRequiredstring
toRequiredstring
totalRequirednumber
substitutionsRequiredobject[]
substitutions[].substitution_idRequirednumber
substitutions[].plan_idRequirednumber | null
substitutions[].request_idRequirednumber | null
substitutions[].occurrence_idRequiredstring
substitutions[].dateRequiredstring
substitutions[].startRequiredstring | null
substitutions[].activityRequiredstring | null
substitutions[].spaceRequiredstring | null
substitutions[].location_idRequirednumber | null
substitutions[].original_worker_idRequirednumber | null
substitutions[].original_workerRequiredstring | null
substitutions[].substitute_worker_idRequirednumber | null
substitutions[].substitute_workerRequiredstring | null
substitutions[].methodRequiredstring | null
substitutions[].reasonRequiredstring | null
substitutions[].paidRequiredboolean

Examples

Example 1: This week's covers

Call

JSON
{
  "name": "ops_cover_history",
  "arguments": {
    "date_from": "2026-11-23",
    "date_to": "2026-11-29"
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_cover_history",
    "arguments": {
      "date_from": "2026-11-23",
      "date_to": "2026-11-29"
    }
  }
}