Skip to main content
Glama

Register absence (Planday)

planday_register_absence

Registers an employee's absence for a date range on a selected Planday absence account or absence type; approval is immediate and shifts remain unchanged.

Instructions

Register an employee's absence from one date to another (both included), on an absence account (accountId, from list_absence_accounts) or by type (absenceType): Planday makes the request as it would for the employee, and it is approved at once. Nobody is notified, the employee's shifts in the period are left as they are, and no open shift is made. No note is sent. Off unless writes are enabled (PLANDAY_ENABLE_WRITES, or the gateway host policy enableWrites).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "employeeId": "<employeeId>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "planday_register_absence"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast day of absence, YYYY-MM-DD.
fromYesFirst day of absence, YYYY-MM-DD.
accountIdNoThe absence account (from list_absence_accounts).
employeeIdYesThe employee.
absenceTypeNoThe type of absence, when no account is given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations by enumerating concrete side effects: approval is immediate, nobody is notified, existing shifts are untouched, no open shift is created, and no note is sent — plus the write-gate requirement. The one meaningful gap is repeat-call behavior: annotations declare idempotentHint=false, but the description never warns that re-running likely creates a duplicate absence.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and scoped dates, and the trailing clauses about notification, shift handling, and the write flag each carry distinct information rather than padding. The opening sentence is dense and clause-heavy, which slightly hurts scanability, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Coverage is strong for a mutation tool: date inclusivity, auto-approval, absence-account resolution, and side-effect disclosure are all present, with no output schema to explain. The remaining hole is the return value — an agent does not learn whether an absence ID or object comes back after a successful write.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents date formats, the employee reference, and that absenceType applies 'when no account is given'. The description's accountId/absenceType either-or framing and its pointer to list_absence_accounts largely restate what the schema fields already say, adding little new meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('Register an employee's absence') with explicit date semantics ('from one date to another (both included)') and two mutually exclusive targeting modes (accountId or absenceType). The phrase 'approved at once' also separates it from the sibling approve_absence_request tools without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the precondition that writes must be enabled (PLANDAY_ENABLE_WRITES / gateway enableWrites) and points to list_absence_accounts as the source for accountId, so an agent knows how to prepare the call. It stops short of explicit when-not guidance (e.g. use approve_absence_request instead when the absence already exists as a request).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.