Skip to main content
Glama

Calculate Japan housing loan credit

calculate_jp_housing_loan_credit
Read-onlyIdempotent

Japan 住宅ローン控除 year by year: 0.7% of the year-end balance up to the borrowing limit, split between income tax and resident tax, for 10 or 13 years. 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": {
      "loan": "<loan>",
      "annualRatePct": "<annualRatePct>",
      "termYears": "<termYears>",
      "borrowingLimit": "<borrowingLimit>"
    },
    "name": "calculate_jp_housing_loan_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
loanYesLoan (JPY)
incomeTaxNoYearly income tax (JPY)
termYearsYesTerm in years
creditYearsNo控除期間
annualRatePctYesInterest rate %
borrowingLimitYes借入限度額 for the home type (JPY)
residentTaxCapNoResident tax cap (JPY)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/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 real behavior beyond that: the credit is computed year by year, split across two tax types, capped by both borrowing limit and resident tax cap, and follows official rules with a stable reference implementation (same code as tools.oiyo.net). It still omits what the response actually contains.

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, front-loaded with the formula and horizon, followed by provenance and a disclaimer. Dense and mostly waste-free, though the 'same code as tools.oiyo.net' provenance line earns its place only marginally for an agent deciding how to call it.

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

Completeness3/5

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

For a 7-parameter financial calculator with no output schema, the description should say what comes back (a per-year schedule of deduction amounts? a total? both tax components?). 'Year by year' hints at it but leaves the return structure, units, and whether results are cumulative ambiguous, which is the main remaining gap.

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 100%, so the baseline is 3, but the description genuinely disambiguates the terse schema labels: it explains that borrowingLimit caps the balance the 0.7% applies to, that residentTaxCap bounds the resident-tax portion, and that the income tax amount drives the split. The 10-or-13 choice is echoed from creditYears. It does not explain how termYears or annualRatePct enter the year-end balance calculation.

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 names the specific scheme (Japan 住宅ローン控除), the mechanism (0.7% of the year-end balance up to the borrowing limit), the split between income tax and resident tax, and the 10- or 13-year horizon. An agent can distinguish this from adjacent calculate_jp_home_purchase_tax or calculate_jp_take_home tools without opening the schema.

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?

"Financial planning check from official scheme rules" implies a planning/estimation use case, and the disclaimer scopes it as informational rather than advisory. However, it never states when to prefer this tool over siblings such as calculate_jp_home_purchase_tax or the refinance calculators, nor any prerequisites or exclusions.

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.