Skip to main content
Glama

Get time off usage

kiwihr_get_time_off_usage
Read-only

Who took (or requested) how much time off in a date range: per employee the request count and used days for each time off rule of the chosen time off types. Use it for absence reports ('who was off in March?'). Optional employee filters as in kiwihr_list_users. GraphQL query timeOffRequestUsageStatements.

Input Schema

NameRequiredDescriptionDefault
limitNoItems per page (1-100, default 50).
offsetNoItems to skip (default 0). The reply's pageInfo.next says whether there is another page.
date_toYesRange end (YYYY-MM-DD).
sort_byNo
team_idNoOnly employees of this team.
date_fromYesRange start (YYYY-MM-DD).
is_activeNotrue = active employees only.
location_idNoOnly employees at this location.
sort_directionNoSort direction (default ASC).
time_off_type_idsYesTime off type ids (from kiwihr_list_time_off_types).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds real behavioral context by describing the aggregation granularity (per employee, per time off rule) and that requested as well as taken absences are included. It does not clarify whether pending/rejected requests are counted, which is material for an 'usage' metric.

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?

Three tight sentences; the core definition leads, followed by the use case and filter cross-reference. The trailing 'GraphQL query timeOffRequestUsageStatements' is implementation detail that earns only marginal space.

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?

With 10 parameters, no output schema and required date/type inputs, the description does the necessary work of sketching the returned structure and pointing at the filter conventions. The remaining gap is the treatment of non-approved requests, which an absence report consumer would want to know.

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

Parameters4/5

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

Schema coverage is already 90%, so the baseline is 3; the description adds value by noting the optional employee filters behave 'as in kiwihr_list_users' (covering team_id/location_id/is_active semantics) and by tying time_off_type_ids to kiwihr_list_time_off_types. It adds no detail on limit/offset/sorting, but the schema already documents those.

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

Purpose4/5

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

States a specific verb and resource ('who took/requested how much time off') and even defines the return shape: per-employee request count and used days per time off rule. It implicitly separates from kiwihr_list_time_off_balances by framing the output as usage in a date range, but it never names the alternative explicitly.

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 a concrete usage trigger with an example ('Use it for absence reports ("who was off in March?")'), which clearly tells an agent when to reach for this tool. It stops short of stating when not to use it or pointing to the balances/attendance siblings as alternatives.

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.