Skip to main content
Glama

Taokeh MCP server

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as mcp. If you published it, claim ownership there.

Leave register

leave_register
Read-only

Leave for a year as the Leave page shows it, with no pay figures: per employee (employeeId, name, staff number, status) the balance of each leave type (entitled, approved, pending, remaining; unpaid leave has no cap), the applications still pending, and the year's approved, recorded and decided leave with its leaveId, type, dates, days, half day, status, whether an admin recorded it, and voidableByDraft (an admin-recorded leave that is still approved: the leave create_leave_void_draft takes; voiding unpaid leave in a month whose payroll run is finalized is still refused there). Pending applications are decided by a person on the Leave page in Taokeh, not through the connector. year defaults to the current year in Malaysia; employeeId narrows the reply to one person. Lists are capped and the reply says when one is cut. Admin, or bookkeeper with the payroll role, only; any other connection is refused. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "leave_register"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoThe calendar year, e.g. 2026 (default: the current year in Malaysia).
employeeIdNoOne employee, from payroll_summary (`staff: true`) or an earlier leave_register reply.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past the readOnlyHint/destructiveHint annotations: it discloses the authorization gate (admin, or bookkeeper with the payroll role, else the connection is refused), that lists are capped with an explicit truncation notice in the reply, and that the year default is Malaysia-local. It also pre-empts a downstream failure mode by noting that voiding unpaid leave during a finalized payroll month is refused in create_leave_void_draft.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening clause front-loads scope well, but the body is a single dense run-on sentence with deeply nested parentheticals that is hard to parse on first read. Nearly every clause carries real information, but the structure costs comprehension.

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

Completeness5/5

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

With no output schema and only two optional params, the description carries the full burden and does so: it enumerates the response shape field by field, explains the non-obvious voidableByDraft flag, and covers authorization, defaults, and truncation. Nothing an agent needs to call it correctly or interpret the reply is missing.

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% and both parameters are already documented in the schema, including the Malaysia default and the employeeId source. The description largely restates these ('year defaults to the current year in Malaysia', 'employeeId narrows the reply to one person'), adding only the modest clarification that it narrows rather than filters across entities.

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 and scope: per-employee leave balances for each leave type, pending applications, and the year's approved/recorded/decided leave, explicitly with no pay figures. The enumeration of returned fields makes the tool's identity unmistakable, though it does not explicitly contrast itself with siblings like payroll_summary beyond the 'no pay figures' scope note.

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 clear context for use and an explicit exclusion: pending applications are decided by a person on the Leave page in Taokeh, not through the connector, and it points to create_leave_void_draft as the consumer of voidableByDraft. It stops short of a direct 'use this instead of X' comparison against other read-only report tools, but the boundaries are clear.

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.

Resources