Skip to main content
Glama

Numbers.sg: Singapore rates and prices

CPF contributions for one month

calculate_cpf_contribution
Read-onlyIdempotent

What goes to CPF on a month’s pay and bonus: employee’s and employer’s shares, the rate for the age band, how it splits between the Ordinary, Special or Retirement and MediSave accounts, take-home before tax, and the employer’s cost with SDL and any offsets. Worked out by the engine behind https://numbers.sg/rates/cpf-contribution-rates/, 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>"
    },
    "name": "calculate_cpf_contribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
ageNoAge in whole years. Give age or born; born is exact (CPF’s new rate starts the month after the birthday month).
payYesThe month’s ordinary wage in S$ (pay before CPF), e.g. 5000. CPF counts it up to the ceiling.
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 and graduated employee rates; fr foreigner (no CPF).sc
bornNoBirth month, YYYY-MM.
bonusNoAdditional wages paid this month in S$ (bonus, incentive). CPF counts them up to what the yearly ceiling leaves, assuming the same pay every month.
monthNoThe month the pay is for, YYYY-MM. Default: this month in Singapore. Months covered: the rate years CPF Board has published.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, closed-world, non-destructive computation, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the results are produced by a named engine with stated rules, dates and sources, and it matches official worked examples — which tells an agent how much to trust the numbers. With no output schema, it also carries the return-shape burden and does so by enumerating the result components, though it says nothing about error cases or the assumptions baked into the calculation.

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?

Three sentences: the payload list is front-loaded, provenance second, and the disclaimer last. Every clause maps to a distinct output or trust signal, so nothing is filler. The opening sentence is a long colon-led enumeration without an explicit verb, which is slightly dense but still scannable.

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 a six-parameter, single-output-of-many-fields calculation with no output schema, the description covers what comes back and where the rules come from, which is the core of what an agent needs. Remaining gaps — default month, covered rate years, ceiling behavior — are fully handled in the schema, so the description is close to complete.

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 property descriptions are unusually rich (age-vs-born exactness, wage ceiling, the seven-way 'who' enum, bonus counting against the yearly ceiling, month defaulting to the current Singapore month). The description adds essentially no parameter-level meaning beyond that, so the baseline of 3 applies.

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?

The description names a concrete computation — CPF contributions on a month's pay and bonus — and enumerates the exact outputs (employee/employer shares, age-band rate, Ordinary/Special/Retirement/MediSave split, take-home before tax, employer cost with SDL and offsets). That is far more specific than the title alone and clearly separates it from siblings like calculate_income_tax or calculate_stamp_duty. It stops short of naming or contrasting any sibling explicitly, so a 4 rather than a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no alternative tool is mentioned; an agent must infer from the output list that this is the CPF-specific calculator. The only boundary information ('months covered: the rate years CPF Board has published') lives in the schema, not the description. The closing 'General information, not advice' disclaimer is a liability note, not usage 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.