Skip to main content
Glama

calculate loan refinance

calculate_loan_refinance
Read-onlyIdempotent

Calculates loan refinancing savings, prepayment penalty fees with 3-year sliding taper, and break-even point in months.

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": {
      "loanBalance": "<loanBalance>",
      "currentRate": "<currentRate>",
      "newRate": "<newRate>"
    },
    "name": "calculate_loan_refinance"
  }
}

Input Schema

NameRequiredDescriptionDefault
newRateYesNew loan annual interest rate in %
currentRateYesExisting loan annual interest rate in %
loanBalanceYesRemaining loan balance in KRW
penaltyRateNoPrepayment penalty rate in % from the loan contract (example default 1.2; actual rates vary by product)
elapsedMonthsNoMonths elapsed since loan origination (0-36)
incidentalCostsNoIncidental refinancing fees in KRW

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/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 safety and side-effect behavior is covered. The description adds genuine domain behavior by disclosing the 3-year sliding taper on the prepayment penalty and that a break-even point is computed, but it omits assumptions, rounding, and any caveats about how elapsedMonths drives the taper.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that lists the three outputs in a logical order with no filler or redundant restatement of the title.

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?

With six parameters, no output schema, and a non-trivial financial model, the description does reasonably well by enumerating the three returned figures, so an agent knows what comes back. However, it leaves the agent guessing about rounding, currency assumptions beyond the KRW hints in the schema, and how optional inputs like incidentalCosts affect the break-even result.

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 earns credit above baseline by clarifying how penaltyRate and elapsedMonths interact through the 3-year sliding taper, which the schema alone does not explain. It still does not say whether incidentalCosts are included in the break-even calculation.

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 specific verb and resource (calculates loan refinancing savings) and enumerates the three concrete outputs: savings, prepayment penalty with a 3-year sliding taper, and break-even months. The finance domain makes it clearly distinguishable from sibling calculators such as calculate_cagr or calculate_compound_interest, though it never explicitly names or disambiguates against them.

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 guidance, no statement of prerequisites (e.g. that the loan must be within the penalty taper window for the taper to matter), and no mention of inputs needed or alternatives. The intended scenario is only implied by the tool name and computed outputs.

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.