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 payroll run draft for a month (a person approves in Taokeh; the run stays a draft)

create_payroll_run_draft

Files a pending draft of a month's payroll run on Payroll → Payroll Runs. When the month has no run, approval creates it as a draft and computes it, as New run followed by Save & recompute does; when the month's run is still a draft, approval sets the given boxes on it and recomputes, as Save & recompute does. Each row names an employee on the run and the boxes to set: allowance, overtime, publicHolidaysWorked, bonus, unpaidLeaveDays, otherDeductions. A box given is set to that value and a box left out stays as it is, so the same row filed twice changes nothing more. Basic salary, days employed, residency and TP1 reliefs are not set here: basic salary is the employee's record (update_employee_draft) and the others are on the run page. The result carries, per employee, the payslip money (basic, allowances, overtime, public-holiday pay, bonus, gross, employee EPF, SOCSO, EIS, SKBBK, PCB, zakat, other deductions, claims, net pay) and the employer contributions, plus the run totals and every note the run gave, as the rolled-back run produced them. Nothing changes until an admin, the Payroll role or a Bookkeeper + payroll login approves in Taokeh. After approval the run is a draft: the connector does not finalize, post, reopen or delete a run, pays nobody, sends no payslip and files nothing with LHDN, KWSP or PERKESO. Refused at filing: a month whose run is finalized or posted, an employee with no payslip on the run, a figure below zero, a run that pays more staff than the company's seats. One draft per month waits at a time; if the run, staff details, leave or claims change before approval, approval refuses and nothing is saved. 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": {
      "month": "<month>"
    },
    "name": "create_payroll_run_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoA short note for the reviewer: where the figures came from.
rowsNoOne row per employee to change, at most 200. The list is the whole set of changes: a revise replaces it entirely. Required when the month's run already exists; left out, a new run is created with the figures its staff records give.
basicNoNot a filter on this tool. Basic salary is not set through a payroll run draft: it is the employee’s record, changed with update_employee_draft.
monthYesThe run month, YYYY-MM.
payDateNoThe pay date, YYYY-MM-DD, for a run this draft creates. A run that already exists keeps its own pay date.
residencyNoNot a filter on this tool. Residency is not set through a payroll run draft: it is set on the run page in Taokeh.
tp1ReliefsNoNot a filter on this tool. TP1 reliefs are not set through a payroll run draft: they come from the employee’s TP1 declaration, or are entered on the run page in Taokeh.
needsReviewNotrue flags the draft for the reviewer.
daysEmployedNoNot a filter on this tool. Days employed is not set through a payroll run draft: it is set on the run page in Taokeh.

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
Behavior4/5

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

Goes well beyond the annotations: it discloses the auth requirement, the human-approval gate, the one-draft-per-month limit, staleness refusal with 'nothing is saved', and an explicit list of side effects it does not perform (no finalize, post, reopen, delete, payslip, or LHDN/KWSP/PERKESO filing). The only wobble is 'the same row filed twice changes nothing more', which reads as an idempotency claim against idempotentHint=false, though it is scoped to box-setting rather than to the call itself.

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?

Front-loaded with the core action, then layered: create-vs-revise, row semantics, excluded fields, return payload, approval gate, refusals, auth. It is long, but the length is defensible given no output schema and a gated mutation. The 15-item payslip enumeration and the repeated 'as New run / Save & recompute does' phrasing are the main places it could be trimmed.

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 takes on the burden of describing the return payload (per-employee payslip money and employer contributions, run totals, notes) and does so. For a 9-parameter, non-read-only, approval-gated tool, an agent has everything needed to decide whether to call it and what will happen if it does.

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 the schema already documents the row boxes, the leave-out-stays-as-is semantics, and the 'Not a filter on this tool' stubs for basic/residency/tp1Reliefs/daysEmployed. The description largely restates that, though it does usefully consolidate the six settable boxes and point employeeId at payroll_summary. Baseline 3 is appropriate when the schema does the heavy lifting.

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 a month's payroll run on Payroll → Payroll Runs') and then splits the behavior into the two cases an agent will actually hit: no run yet vs. an existing draft. It explicitly fences off neighbouring tools, naming update_employee_draft for basic salary and revise_draft-style re-filing via the 'whole set of changes' row semantics.

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 when-to-use, who must act afterwards (admin, Payroll role, or Bookkeeper + payroll login approves in Taokeh), and explicit when-not/refusal conditions: finalized or posted run, employee with no payslip on the run, negative figure, more staff than seats, and a stale run changed before approval. It also routes excluded fields (basic salary, days employed, residency, TP1 reliefs) to update_employee_draft or the run page.

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