Skip to main content
Glama

Calculate Singapore cpf housing refund

calculate_sg_cpf_housing_refund
Read-onlyIdempotent

Singapore CPF housing refund on sale: CPF principal used plus accrued interest at 2.5%, and how much of the sale proceeds goes back to the CPF account. Financial planning check from official scheme rules, same code as tools.oiyo.net. General information only: not financial, tax or investment advice, and no product is recommended.

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": {
      "upfront": "<upfront>",
      "price": "<price>"
    },
    "name": "calculate_sg_cpf_housing_refund"
  }
}

Input Schema

NameRequiredDescriptionDefault
loanNoOutstanding loan repaid (SGD)
rateNoAccrued interest rate %
priceYesSale price (SGD)
monthsNoMonths paid
monthlyNoCPF used per month (SGD)
upfrontYesCPF used upfront (SGD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine context beyond that: the 2.5% accrued interest assumption, the rule source ('same code as tools.oiyo.net'), and a scope disclaimer. It stops short of describing what the result looks like or edge cases such as zero loan or missing months.

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?

The core computation is front-loaded in the first clause, followed by a short provenance note and a disclaimer. The 'same code as tools.oiyo.net' phrase is incidental and the disclaimer is boilerplate, but neither buries the primary purpose.

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 carries the burden of saying what comes back, and it does: CPF principal plus accrued interest and the amount of sale proceeds returned to CPF. Combined with 100% schema coverage on all six inputs and full annotations, an agent has enough to call this correctly.

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%, so every parameter is already documented with units and bounds; baseline 3 applies. The description adds only the implicit 2.5% rate convention, without explaining how upfront/monthly/months/loan interact to produce the refund.

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: it computes the CPF housing refund on sale, naming the two outputs (principal plus accrued interest, and the portion of sale proceeds returning to CPF). The sale-of-property framing distinguishes it from the generic sibling calculate_sg_cpf, though it never names that sibling explicitly.

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?

Usage is only implied through 'Singapore CPF housing refund on sale' and 'Financial planning check from official scheme rules' — an agent can infer the scenario but gets no explicit when-to-use, when-not-to-use, or pointer to calculate_sg_cpf for non-sale CPF questions.

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.