Skip to main content
Glama
Leave Management MCP Server

Leave Management MCP Server

by tarun-gt

check_leave_balance

Retrieves remaining leave days for an employee using their employee ID, so users can verify available leave balance before requesting time off.

Instructions

Check remaining leave days for an employee.

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": {
      "employee_id": "<employee_id>"
    },
    "name": "check_leave_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
employee_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Check' implies a read operation, but the description never says whether it covers all leave types or a single type, covers which period or year, requires permissions, or whether it fails for unknown employees.

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?

It is a single compact sentence with the operation front-loaded and no wasted wording. Its brevity, however, leaves the definition under-specified rather than crisp.

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

Completeness3/5

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

Because an output schema exists, return values do not need to be explained. Still, for a tool with no annotations and an undocumented parameter, the description should say more about scope, such as leave types and period, before an agent can call it with confidence.

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

Parameters2/5

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

The phrase 'for an employee' weakly maps to the single required employee_id parameter, but the schema has 0% description coverage, and the description adds no detail about the expected format, whether it is an ID versus an email or name, or how the parameter behaves. The schema's own property name already conveys everything the description does.

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?

The description names a specific verb and resource: 'Check remaining leave days for an employee.' That is a distinct operation from the sibling tools, which deal with requests and leave dates, although the description never states that distinction explicitly.

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?

It gives no guidance about when to use this tool instead of alternatives such as list_leave_requests or get_employee_leave_dates, and it gives no prerequisites or exclusions. The agent must infer that this is the read-only balance check, not the request-history lookup.

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