Skip to main content
Glama
HR-Partner

HR Partner MCP Server

Official
by HR-Partner

List Employee Absences

list_absences

Get absence records (leave taken or TOIL/Flexi added) with filters for employee, reason, status, dates, duration, department, location. Includes physician, certificate, and attachment details.

Instructions

Get employee absence records (leave taken, or TOIL/Flexi leave added). Includes absence reason, status, dates, duration, physician/certificate details and attachments.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNo'taken' for leave taken records, 'added' for TOIL/Flexi leave added back
groupNoOnly return records within this group (note: the field is always called 'group' in the API even if renamed to Branch/Entity etc. in the app)
commentsNoSearch for this text within the comments field
employeeNoEmployee code to only return records for that particular employee
locationNoOne or more location names (separated by commas) to filter by
physicianNoReturn records with this partial text in the physician name field
departmentNoOne or more department names (separated by commas) to filter by
duration_toNoReturn only records with a duration less than or equal to this value
max_recordsNoOptional client-side limit on the number of records returned. Use to keep responses small when exploring data; the API itself does not paginate.
duration_fromNoReturn only records with a duration greater than or equal to this value
absence_reasonNoReturn only absence records with this absence reason
absence_statusNoReturn records which have this absence status set
absence_date_toNoReturn leave records on/before this date (format yyyy-mm-dd)
absence_date_fromNoReturn leave records on/after this date (format yyyy-mm-dd)
certificate_numberNoReturn records with this text within the certificate field
show_linked_requestNoInclude extra info on any linked leave request in a linked_request child object. Warning: slows the response considerably; use other filters to limit records (true/false)
Behavior2/5

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

There are no annotations, so the description must disclose behavioral traits. It mentions included fields but omits important behavior: no pagination (the API itself does not paginate, as noted in max_records), potential performance impact of show_linked_request, default ordering, or what happens with no filters. This gap is significant for a tool with 16 parameters.

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?

The description is a single, efficient sentence: 'Get employee absence records (leave taken, or TOIL/Flexi leave added).' Front-loaded with the action and resource, it conveys the core purpose and scope without unnecessary words. The second sentence lists included details, earning its place.

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

Completeness2/5

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

With 16 parameters, no output schema, and no annotations, this is a complex tool. The description provides only a minimal overview and does not explain return formats, record structure beyond a few fields, pagination limitations, or the relationship to leave requests. This is insufficient for an agent to fully understand the tool's behavior without additional exploration.

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% with detailed descriptions for all 16 parameters, so the baseline is 3. The description adds a high-level summary (e.g., 'TOIL/Flexi leave added') but does not provide deeper semantics beyond the schema. It does not compensate for any schema gaps because there are none, but it also does not elevate the understanding further.

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?

The description states a specific verb and resource: 'Get employee absence records', and further clarifies the scope with 'leave taken, or TOIL/Flexi leave added' and the included fields (reason, status, dates, duration, physician/certificate details, attachments). This distinguishes it from sibling tools like list_leave_requests, which likely cover requests rather than absence records.

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

Usage Guidelines2/5

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

No explicit usage guidance is provided. The description simply says to get absence records but does not indicate when to prefer this over sibling tools such as list_leave_requests or when not to use it. The use case is only implied, with no exclusions or alternatives mentioned.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HR-Partner/hrpartner-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server