Skip to main content
Glama

Loan Calculator API - monthly payment and full amortization schedule

loan_calculator
Read-onlyIdempotent

Annuity or equal-principal loans: monthly payment, total interest, total paid and the month-by-month schedule (also as xlsx/csv), optional extra monthly payment. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/loan-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "years": 5,
      "amount": 20000,
      "ratePercent": 6.5
    },
    "name": "loan_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoannuity or equal (equal principal)annuity
yearsNoYears
amountNoLoan amount
monthsNoPlus months
ratePercentNoYearly interest rate in %
extraMonthlyNoExtra payment each month (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / months / minimum
      Added value: +0
    • addedInput schema / properties / years / minimum
      Added value: +0
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, but the description adds genuinely non-derivable behavior: the computation runs server-side, generated files are deleted immediately after the call with nothing stored, and there is a free-tier rate limit of 5 calls/day per IP with two upgrade paths. What it omits is how the xlsx/csv artifact is actually obtained and any rounding/precision conventions in the schedule.

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 dense sentences, front-loaded with what is computed before the pricing and auth details, and no filler prose. The pricing URLs and tier boilerplate consume roughly half the text and are closer to marketing than tool selection help, but they do carry actionable auth information.

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?

For a six-parameter, zero-required, no-output-schema calculation tool, the description covers the result contents (payment, interest, total, full schedule), the alternate output format, the extra-payment feature, and the access/payment model. The absence of an output schema is offset by the explicit enumeration of returned values, so an agent has enough to call it and interpret the response 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?

With schema description coverage at 100%, the schema already documents all six parameters, so the description only needs to add meaning beyond it. It reiterates 'optional extra monthly payment' and the annuity/equal-principal choice without adding format, units, or interaction semantics (e.g. how `months` combines with `years`, or how extraMonthly alters the schedule). The mention of xlsx/csv output has no corresponding parameter, leaving an unexplained gap.

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 the exact computation surface: monthly payment, total interest, total paid, and a month-by-month amortization schedule, plus the annuity vs equal-principal distinction and optional extra payments. That is far more specific than a name restatement. It stops short of naming which sibling (mortgage_calculator, compound_interest_calculator) this replaces, so the boundary is inferred rather than stated.

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 context is implied by the loan/amortization framing and access prerequisites (free tier of 5 calls/day, X-API-Key, or x402 payment) are spelled out, which tells an agent whether it can call at all. However, there is no explicit when-to-use/when-not guidance and no pointer to the closest alternative such as mortgage_calculator, so an agent must infer the split itself.

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