Skip to main content
Glama

Numbers.sg: Singapore rates and prices

Take-home pay after CPF and income tax

calculate_take_home_pay
Read-onlyIdempotent

What reaches the bank each month from a Singapore salary after the employee’s CPF and any self-help group fund, the income tax to set aside, the year’s totals with bonus, and what the employee costs the employer. Or, with direction=net, the pay needed for a take-home amount. Worked out by the engine behind https://numbers.sg/pay/take-home-pay-calculator/, with the rules used, their dates, sources and the official examples it matches. General information, not advice.

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": {
      "pay": "<pay>",
      "age": "<age>"
    },
    "name": "calculate_take_home_pay"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageYesAge in whole years (sets the CPF rate and Earned Income Relief).
payYesMonthly pay before CPF in S$, e.g. 5000. With direction=net: the amount wanted in the bank each month.
whoNosc citizen; pr3 permanent resident from the 3rd year; pr1g / pr2g PR in the 1st / 2nd year on graduated rates; pr1f / pr2f PR in the 1st / 2nd year with full employer rates; fr foreigner (no CPF).sc
fundNoSelf-help group fund taken from pay: CDAC, ECF, MBMF or SINDA (CDAC and ECF for citizens and PRs only).none
stayNoForeigners only: days working in Singapore in the year. full = tax resident (183 days or more, or as IRAS allows); 61-182 = non-resident, 15% or resident rates with no reliefs, whichever is more; up-to-60 = generally exempt.full
bonusNoAny other bonus for the year in S$, paid in the same month.
directionNogross: pay is before CPF. net: pay is the take-home wanted; the answer gives the pay needed.gross
aws_monthsNoAnnual wage supplement or 13th month, in months of pay (0 to 12), paid in one month.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety bar is low, and the description adds value beyond that: it discloses that results come from a named engine, that the rules, their effective dates, sources and matching official examples are surfaced, and it carries a 'general information, not advice' caveat. It even sketches the return contents (tax to set aside, yearly totals, employer cost) despite there being no output schema.

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?

Information-dense with the payoff ('what reaches the bank each month') front-loaded, and the reverse mode flagged early. The trailing sentence about the engine, rule dates, sources and matched examples is slightly sprawling, but every clause carries substantive detail rather than filler.

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

Completeness4/5

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

For an 8-parameter, enum-heavy tool with no output schema, the description usefully previews what the answer contains and distinguishes gross from net direction. The gaps are minor: no indication of response structure (per-month vs annual breakdown) or how employer cost components are itemised, though annotations cover the safety profile.

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% and the enums (who, fund, stay, direction) are already fully explained in the schema, so the schema does the heavy lifting here. The description adds only the reverse-direction reading of 'pay', which the schema also covers. Baseline 3 is appropriate.

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 verb-and-resource with scope: monthly take-home from a Singapore salary after employee CPF, self-help fund and income tax, plus annual totals with bonus and employer cost, plus a reverse net mode. An agent can see this is a composite payroll calculation rather than a single-rate tool. It stops short of naming the narrower siblings (calculate_cpf_contribution, calculate_income_tax) that it subsumes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The 'or, with direction=net' clause tells the agent the tool runs in two modes, which is real usage context. However there is no explicit guidance on when to prefer this over the sibling calculators that produce CPF or tax alone, and no stated prerequisites or exclusions. Usage is implied by scope rather than stated.

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.