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.

File a pending leave draft: leave recorded on an employee’s behalf (a person approves in Taokeh)

create_leave_draft

Files a pending draft of Record leave on the Leave page: leave entered on an employee's behalf, approved as it is recorded. Nothing changes until an admin, the Payroll role or a Bookkeeper + payroll login approves in Taokeh; approval records it exactly as Record leave does, with the approver as the person who approved it, and it counts against the balance at once. leaveType is one of ANNUAL, SICK, HOSPITALIZATION, MATERNITY, PATERNITY, UNPAID; endDate left out means a one-day leave; halfDay applies to a single date. The result carries the counted days (Sundays and the public holidays the employee observes are not counted, and are named), the balance left for that type after it, and, for unpaid leave in a month whose payroll run is still a draft, the months whose run rows need the unpaid days entered by hand. Refused at filing and approval in the page's words: an employee who is not active, dates across two years, no working days in the range, leave overlapping leave already recorded or applied for, more days than the balance, unpaid leave in a month whose payroll run is finalized or posted. One draft per employee and date range waits at a time. Admin, or bookkeeper with the payroll role, only; any other connection is refused.

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": {
      "employeeId": "<employeeId>",
      "leaveType": "<leaveType>",
      "startDate": "<startDate>"
    },
    "name": "create_leave_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note for the reviewer: where the figures came from.
reasonNoThe reason, as the Record leave form takes it (up to 500 characters).
endDateNoThe last day, YYYY-MM-DD (left out: the start date, a one-day leave). Same calendar year as the start.
halfDayNotrue for half a day; a single date only.
leaveTypeYesThe leave type.
startDateYesThe first day, YYYY-MM-DD.
employeeIdYesThe employee, from leave_register or payroll_summary (`staff: true`).
needsReviewNotrue flags the draft for the reviewer.

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.4/5.0
Behavior5/5

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

Well beyond the annotations: it explains that the draft is inert until approval, that approval records it identically to Record leave with the approver attributed, that the balance is charged immediately, and that only one draft per employee and date range may wait at a time. It also enumerates the refusal conditions at both filing and approval and states the authorization requirement, which the annotations do not cover.

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?

The description is front-loaded with purpose and the approval gate before moving into parameters, results and refusals, so the important material comes first and no sentence is filler. It is dense and somewhat long, and the repeated enum list duplicates the schema, which keeps it from a 5.

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, the description carries the return-value burden and does so: it names the counted days with the exclusion rules for Sundays and observed public holidays, the remaining balance for the type, and the payroll months needing manual unpaid-day entry. Combined with the approval semantics, refusal modes and permission requirement, nothing an agent needs in order to call this correctly 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 description coverage is 100%, so the schema already documents every parameter, and the description largely restates it: the leaveType enum values, endDate omission meaning a one-day leave, and halfDay applying to a single date all appear in the schema descriptions. It adds little new parameter-level meaning, such as how halfDay interacts with a multi-day range or what note versus reason is for, so baseline 3 applies.

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 opens with a specific verb and resource ("Files a pending draft of Record leave on the Leave page") and immediately distinguishes it from the direct Record leave action by explaining that nothing is applied until approval. An agent can tell what this tool creates and what it defers without opening the schema.

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?

It gives clear context for use: entering leave on an employee's behalf on the Leave page, with the admin/Payroll/Bookkeeper + payroll login restriction stated explicitly. The exclusion list (inactive employee, cross-year dates, no working days, overlapping leave, insufficient balance, finalized or posted payroll runs) effectively tells the agent when the call will be refused. It does not point to a sibling such as create_leave_void_draft or a revise path, so it stops just short of explicit alternative routing.

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