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 draft voiding leave an admin recorded (a person approves in Taokeh)

create_leave_void_draft

Files a pending draft of Void on the Leave page, for leave an admin recorded. It is how recorded leave is corrected: void it, then record it again with create_leave_draft. leaveId comes from leave_register (voidableByDraft). Nothing changes until an admin, the Payroll role or a Bookkeeper + payroll login approves in Taokeh; approval voids it exactly as the page does and the days go back into the balance. Refused at filing and approval in the page's words: leave the employee applied for themselves (cancelled before it starts, or ended early with Return early, on the Leave page), leave already cancelled, unpaid leave in a month whose payroll run is finalized or posted. One void draft per leave 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": {
      "leaveId": "<leaveId>"
    },
    "name": "create_leave_void_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note for the reviewer: where the figures came from.
leaveIdYesThe recorded leave, from leave_register.
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.8/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, not destructive, not idempotent, closed-world); the description adds the behavior that matters: nothing changes at filing, a human/Payroll/Bookkeeper+payroll approval in Taokeh triggers the void, days return to the balance, and one void draft may wait per leave. It also discloses the authorization requirement and that unauthorized connections are refused, none of which is derivable from annotations.

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?

Purpose and the void-then-re-record relationship are front-loaded, then preconditions and refusal cases. The refusal sentence is dense and slightly run-on, but every clause carries decision-relevant information rather than restating the schema.

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?

For a 3-parameter mutation-adjacent draft tool with no output schema, the description covers creation semantics, approval path, balance effect, refusal conditions, concurrency limit and permissions. Nothing an agent needs to decide whether and how to call it is missing.

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 100%, so the baseline is 3, but the description adds real meaning for `leaveId` by naming `leave_register` and the `voidableByDraft` flag that makes a leave eligible. The optional `note` and `needsReview` parameters are left to their schema descriptions, which already explain them adequately.

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?

States a specific verb and resource: files a pending draft of Void on the Leave page for admin-recorded leave, and immediately distinguishes it from the sibling that re-records (create_leave_draft). An agent can tell this is the correction/void path rather than the record path 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the exact workflow ('void it, then record it again with create_leave_draft'), the precondition that voids are only for admin-recorded leave, the source of the id (`leave_register`, `voidableByDraft`), the one-draft-per-leave limit, and the roles permitted. It also enumerates when filing is refused (self-applied leave cancelled/returned early, already-cancelled leave, unpaid leave in a finalized/posted payroll month), which is explicit when-not guidance.

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