Operations: planning, absences and cover
Absence balance
- Permission required
ops.absences.view
When to use it
Yearly balance of the reasons with an allowance (holidays, personal days, medical hours…) of an instructor: allowance, used and remaining, as in their panel profile.
Input
| Field | Type | Description |
|---|---|---|
worker_idRequired | integer | |
year | 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 |
|---|---|---|
workerRequired | object | |
worker.idRequired | number | |
worker.nameRequired | string | |
yearRequired | number | |
balancesRequired | object[] | |
balances[].type_idRequired | number | |
balances[].codeRequired | string | null | |
balances[].typeRequired | string | null | |
balances[].unitRequired | string | days | hours |
balances[].allowanceRequired | number | |
balances[].usedRequired | number | |
balances[].remainingRequired | number |
Examples
Example 1: Holiday days Noa has left
Call
{
"name": "ops_absence_balance",
"arguments": {
"worker_id": 9,
"year": 2026
}
}Equivalent JSON-RPC call (POST /mcp)
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ops_absence_balance",
"arguments": {
"worker_id": 9,
"year": 2026
}
}
}