Skip to main content
Glama

Employment Hero Payroll MCP by usefulapi

Get leave request

keypay_get_leave_request
Read-only

One leave request: employee, category, dates, hours, status, notes. GET /business/{businessId}/employee/{employeeId}/leaverequest/{leaveRequestId}.

Input Schema

NameRequiredDescriptionDefault
business_idYesBusiness id (from keypay_list_businesses).
employee_idYesEmployee id.
leave_request_idYesLeave request id (from keypay_list_leave_requests).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/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 the set of returned fields, which is genuine context beyond the annotations, but says nothing about auth requirements, error behavior, or missing-record handling.

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?

Two short sentences, front-loaded with the returned content rather than the endpoint. The raw REST path adds minor orientation value but is largely redundant given the schema.

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 no output schema, the description usefully enumerates what a leave request contains, which is the main thing an agent would otherwise lack. For a simple three-id read tool with full annotation coverage and full schema coverage, this is close to complete.

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 all three parameters (business_id, employee_id, leave_request_id) are already documented in the schema, including where to obtain them. The description adds no parameter meaning beyond the schema, so the baseline 3 applies.

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 resource (a single leave request) and enumerates the fields it carries (employee, category, dates, hours, status, notes), which is clearer than a tautology. It does not explicitly differentiate itself from the plural sibling keypay_list_leave_requests, though the singular framing implies selection by id.

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 when-to-use guidance, no prerequisites, and no mention of the obvious alternative keypay_list_leave_requests. The id-based path implies retrieval of one record, but the agent must infer that from the schema's required ids rather than from the description.

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.