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 €9/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. Added

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing server-side execution, immediate file deletion with nothing stored, a 5-calls-per-day-per-IP free quota, and the two paid access paths (X-API-Key header or x402 per-call pricing). These are exactly the operational facts an agent needs before calling.

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?

Two sentences, front-loaded with what is computed and what is returned, followed by operational and pricing details. The pricing URLs and auth mechanics are dense but earn their place for a metered API; nothing is padding.

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?

There is no output schema, and the description compensates by listing every returned figure and both export formats. Combined with the rate limit, storage policy, and auth options, an agent has everything needed to call this correctly on the first attempt.

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 baseline is 3. The description only restates that extraMonthly is optional and that type selects annuity vs equal principal, adding little beyond the enum and property descriptions already in the schema.

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?

Names the resource precisely (annuity or equal-principal loans) and enumerates the outputs: monthly payment, total interest, total paid, and the month-by-month schedule in xlsx/csv. That is enough for an agent to distinguish it from generic calculators, but it never names the closest siblings (compound_interest_calculator, mortgage_rates_api) to sharpen the boundary.

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 implied by the domain (compute payments for a loan) but there is no explicit when-to-use or when-not statement, and no routing away from compound_interest_calculator or mortgage_rates_api. The optional extraMonthly hint is the only conditional guidance offered.

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