Skip to main content
Glama

Request an absence

shiftbase_request_absence
Destructive

WRITE: add an absence (leave/time-off request) for an employee. By default it is a Pending request for a manager to review; status Approved books it directly (needs the approve-absence permission). The hours per day come from Shiftbase's own expected-hours calculation (the same as shiftbase_get_expected_absence_hours). Needs the Basic plan. POST /absentees.

Input Schema

NameRequiredDescriptionDefault
noteNoNote from the requester.
statusNoPending (default) = a request to review; Approved = book it directly.
user_idYesThe employee.
end_dateYesLast day (yyyy-mm-dd), at most 366 days after start_date.
start_dateYesFirst day (yyyy-mm-dd).
absence_type_idYesAbsence type id (shiftbase_list_absence_types).
notify_employeeNoNotify the employee (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=false, so the safety profile is partially covered; the description adds real value on top by disclosing the default Pending status, the approve-absence permission gate for Approved, the required Basic plan, and the side effect that hours are derived from Shiftbase's expected-hours calculation. It adds no contradiction with the annotations.

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?

Four compact sentences with the operation class and resource front-loaded, no filler, and the endpoint last. Dense but each sentence carries distinct information (status semantics, permission, hours source, plan requirement).

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 7-parameter write tool with no output schema, the description covers the mutation semantics, permission/plan prerequisites, side effects, and the reference sibling for absence types. It does not describe what is returned (e.g., the created absence id) or what destructiveHint implies for existing bookings, which is a minor residual gap.

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 all 7 parameters including the status enum, date patterns, and the absence_type_id cross-reference. The description mostly restates the status semantics the schema already states, adding only the behavioral note about how per-day hours are computed, so 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?

Starts with an explicit operation class (WRITE) plus a specific verb and resource: 'add an absence (leave/time-off request) for an employee', and closes with the concrete endpoint POST /absentees. This clearly separates it from read siblings like shiftbase_get_absence / shiftbase_list_absences and from shiftbase_review_absence.

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?

It explains the two operating modes (default Pending vs Approved booking directly) and the permission required for the Approved path, plus a plan prerequisite (Basic plan). It does not explicitly state when to prefer this over shiftbase_review_absence or shiftbase_update_* flows, so it falls short of full when/when-not routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.