MCPDocumentation
On this page

Operations: planning, absences and cover

Absence balance

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

FieldTypeDescription
worker_idRequiredinteger
yearinteger
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
workerRequiredobject
worker.idRequirednumber
worker.nameRequiredstring
yearRequirednumber
balancesRequiredobject[]
balances[].type_idRequirednumber
balances[].codeRequiredstring | null
balances[].typeRequiredstring | null
balances[].unitRequiredstringdays | hours
balances[].allowanceRequirednumber
balances[].usedRequirednumber
balances[].remainingRequirednumber

Examples

Example 1: Holiday days Noa has left

Call

JSON
{
  "name": "ops_absence_balance",
  "arguments": {
    "worker_id": 9,
    "year": 2026
  }
}

Equivalent JSON-RPC call (POST /mcp)

JSON
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ops_absence_balance",
    "arguments": {
      "worker_id": 9,
      "year": 2026
    }
  }
}