Skip to main content
Glama

KorkoPuntari

Calculate Finnish loan payment and effective annual rate (APR)

calculate_loan
Read-onlyIdempotent

Calculates monthly annuity payment, total interest and fees, EU/Finnish KSL effective annual rate (todellinen vuosikorko), and statutory KSL 7:8 representative example.

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": {
      "amount_eur": "<amount_eur>",
      "years": "<years>",
      "nominal_rate_pct": "<nominal_rate_pct>"
    },
    "name": "calculate_loan"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsYesLoan term in years (1–30)
amount_eurYesLoan amount in euros (100–500000)
monthly_fee_eurNoMonthly account fee in euros
opening_fee_eurNoOne-time opening fee in euros
nominal_rate_pctYesAnnual nominal interest rate in percent (e.g. 7.9)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, closed-world, non-destructive operation, so the safety profile is covered. The description adds meaningful behavioral context by specifying that the calculation includes annuity payments, total interest and fees, EU/Finnish KSL effective annual rate, and a statutory representative example, though it does not discuss rounding or exact return structure.

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?

The definition is a single front-loaded sentence in which each clause names a distinct computed output. There is no filler or repetition, and the most important purpose is stated immediately.

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?

With no output schema, the description must convey what the tool returns; it does so by listing monthly payment, total interest and fees, APR, and the statutory representative example. It could be more complete by specifying output structure or units, but for a five-parameter calculator it provides sufficient context to call the tool 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 the parameters are fully documented with names, types, defaults, and ranges. The description does not add per-parameter meaning beyond what the schema already provides, which is acceptable at the baseline for high schema coverage.

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 uses a specific verb, 'Calculates', and enumerates the exact outputs: monthly annuity payment, total interest and fees, EU/Finnish KSL effective annual rate, and statutory KSL 7:8 representative example. This clearly distinguishes a pure loan-calculation tool from sibling tools that fetch rates, check caps, compare lenders, or consolidate loans.

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 tool's usage is implied by its computational outputs, making it reasonably clear that it should be used when an agent needs Finnish loan payment and APR calculations. However, there is no explicit when-to-use guidance, no exclusion of alternatives such as check_rate_cap or get_finnish_rates, and no stated prerequisites.

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.

Resources