Skip to main content
Glama

Approve absence request (Planday)

planday_approve_absence_request

Approves an employee's absence request by request ID, leaving shifts unchanged and sending no notifications; writes must be enabled.

Instructions

Approve an employee's absence request (from list_absence_requests). Nobody is notified, the employee's shifts in the period are left as they are, and no open shift is made. Planday refuses a request that does not exist. 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": {
      "requestId": "<requestId>"
    },
    "name": "planday_approve_absence_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestIdYesThe absence request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say non-readonly, non-destructive, non-idempotent, open-world). It discloses that nobody is notified, that shifts in the period are left untouched, that no open shift is created, and that a nonexistent request is refused — precisely the consequences an agent needs before mutating data. It also states the write-enablement prerequisite and names both the env var and the host policy.

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

Conciseness5/5

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

Three tight sentences: effect first, then consequences, then failure mode and gating. No filler, and the most important constraint (approval is silent and does not adjust shifts) is front-loaded.

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?

For a one-parameter mutation with no output schema, the description covers side effects, error behavior, and prerequisites thoroughly. The one gap is a second approval on an already-approved request — relevant given idempotentHint=false — which is not explained.

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 coverage is 100% for the single requestId parameter, so the schema already carries the meaning. The description adds only the provenance hint (comes from list_absence_requests), which is useful but minimal — baseline 3 is appropriate.

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?

Specific verb+resource ("Approve an employee's absence request") with the originating source tool named in parentheses, so it is clearly distinguished from register_absence and approve_shift_request. An agent knows exactly what state change this performs.

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?

Points at planday_list_absence_requests as where the requestId comes from, which is real when-to-use context, and the write-gate note tells the agent when the call will be rejected. It stops short of explicitly contrasting with sibling approval tools or stating when not to approve, so it falls short of a 5.

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