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.

Payroll summary

payroll_summary
Read-only

A month's payroll from gross to net, as it was run: gross (basic, allowances, overtime, public-holiday pay, bonus), staff deductions (EPF, SOCSO, EIS, SKBBK, PCB/MTD, zakat), employer contributions (EPF, SOCSO, EIS, HRD Corp levy), net pay, and the employer's total cost (wages plus every employer contribution). Also lists who is on approved leave in the next 14 days. With no month it reads the latest finalized or posted run; month (YYYY-MM) picks one. A draft run carries run.needsRecompute: true means its figures may be out of date (it was reopened, or employee details, pay before Taokeh, a TP1 sign-off or the payroll rules changed since) until the owner presses Save & recompute in Payroll → Payroll Runs; Finalize recomputes again and refuses if any money would move, so a draft's figures are not final. perEmployee: true adds the per-person breakdown (individual salaries) with each employeeId. staff: true adds the employee roster with ids, even before any run. Every figure sums the stored payslips of that run, never a recalculation; with no run, it says so. Admin, or bookkeeper with the payroll role, only; any other connection is refused. Read-only: it creates no run, pays nobody and files nothing with LHDN, KWSP or PERKESO.

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": "payroll_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthNo
staffNoAdds the full employee roster (id, name, staff no., status, designation, basic salary, skbbkExemptReason: null when Lindung 24 Jam is deducted here, else 'OPTED_OUT' or 'OTHER_EMPLOYER'), independent of any run. It is the only place an employeeId is published (used by update_employee_draft). Includes individual salaries.
perEmployeeNo

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. Changed1 schema field changed
    • changedInput schema / properties / staff / description
      Previous value: -"Return the full employee ROSTER (id, name, staff no., status, designation, basic salary, and skbbkExemptReason — null when Lindung 24 Jam (SKBBK) is deducted here, else OPTED_OUT or OTHER_EMPLOYER) alongside the summary — independent of any run, so it works even before the first payroll. This is where the employeeId for update_employee_draft comes from. Individual salaries: ask for it only when the user actually needs it."New value: +"Adds the full employee roster (id, name, staff no., status, designation, basic salary, skbbkExemptReason: null when Lindung 24 Jam is deducted here, else 'OPTED_OUT' or 'OTHER_EMPLOYER'), independent of any run. It is the only place an employeeId is published (used by update_employee_draft). Includes individual salaries."
  3. Changed1 schema field changed
    • changedInput schema / properties / staff / description
      Previous value: -"Return the full employee ROSTER (id, name, staff no., status, designation, basic salary) alongside the summary — independent of any run, so it works even before the first payroll. This is where the employeeId for update_employee_draft comes from. Individual salaries: ask for it only when the user actually needs it."New value: +"Return the full employee ROSTER (id, name, staff no., status, designation, basic salary, and skbbkExemptReason — null when Lindung 24 Jam (SKBBK) is deducted here, else OPTED_OUT or OTHER_EMPLOYER) alongside the summary — independent of any run, so it works even before the first payroll. This is where the employeeId for update_employee_draft comes from. Individual salaries: ask for it only when the user actually needs it."
  4. Changed1 schema field changed
    • addedInput schema / properties / staff
      Added value: +{
      +  "description": "Return the full employee ROSTER (id, name, staff no., status, designation, basic salary) alongside the summary — independent of any run, so it works even before the first payroll. This is where the employeeId for update_employee_draft comes from. Individual salaries: ask for it only when the user actually needs it.",
      +  "type": "boolean"
      +}
  5. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/destructive/openWorld annotations, the description discloses real behavioral traits: draft runs may carry run.needsRecompute=true and those figures are not final until Save & recompute, Finalize recomputes and refuses if money would move, every figure sums stored payslips rather than recalculating, and with no run it says so. It also spells out the authorization model, which 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?

It is front-loaded with the return contents and every sentence carries information, but the result is a single dense paragraph with a convoluted embedded parenthetical about needsRecompute ('it was reopened, or employee details, pay before Taokeh, a TP1 sign-off or the payroll rules changed since'). Slightly restructured sentences would earn 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?

There is no output schema, and the description fully compensates by enumerating every returned section (gross components, deductions, employer contributions, net, total cost, leave list) and the conditional fields (needsRecompute, per-employee breakdown, roster, no-run case). An agent knows what it will receive and under what conditions.

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 only 33% (only `staff` is documented in schema), so the description must compensate and largely does: it supplies `month` format YYYY-MM plus its default behavior, and explains that `perEmployee: true` adds the individual-salary breakdown with each employeeId. The remaining gap is that neither flag's default (false) or interaction between `staff` and `perEmployee` is stated explicitly.

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+resource+scope ('A month's payroll from gross to net, as it was run') and then enumerates exactly which figures are returned (basic, allowances, EPF/SOCSO/EIS/SKBBK/PCB, employer contributions, net pay, employer cost). This is clearly distinguishable from the write-side siblings such as create_payroll_run_draft, and it even states the read-only nature against 'Finalize'.

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 concrete selection rules: no `month` reads the latest finalized/posted run, `month` (YYYY-MM) picks one, `perEmployee: true` adds the per-person breakdown, `staff: true` adds the roster even before any run. It also states the access condition (admin or bookkeeper with the payroll role, others refused). It does not explicitly name an alternative tool for cross-run comparisons, so it stops short of a 5.

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