Skip to main content
Glama

Fi-Plan

Compute a loan amortization schedule

loan_amortization
Read-onlyIdempotent

Pure calculation of EMI and a month-by-month amortization schedule for a loan of amount at annual interest_rate over tenure months. Returns opening/closing balance, interest, principal and running totals per month. Pass optional prepayments to model extra principal payments beyond the EMI (each {start_month, amount, frequency: 'm'|'q'|'y'|null, step_pct?} — null frequency = one-time lump, step_pct = % the amount grows by each recurrence): the EMI stays constant, the loan shortens, and the result becomes { schedule, payoff_month, total_interest_paid, total_prepaid, interest_saved } instead of a plain array. NOTE: here start_month is loan-relative (1 = the loan's first EMI month); on a persisted loan the same fields are plan-absolute months.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesLoan principal in rupees (e.g. 1500000 for ₹15,00,000).
tenureYesLoan tenure in months (e.g. 240 for 20 years).
prepaymentsNoOptional extra principal payments beyond the EMI: the EMI stays constant and the loan shortens.
interest_rateYesAnnual interest rate in percent (e.g. 8.6).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / amount / description
      Added value: +"Loan principal in rupees (e.g. 1500000 for ₹15,00,000)."
    • addedInput schema / properties / interest_rate / description
      Added value: +"Annual interest rate in percent (e.g. 8.6)."
    • addedInput schema / properties / prepayments / description
      Added value: +"Optional extra principal payments beyond the EMI: the EMI stays constant and the loan shortens."
    • addedInput schema / properties / prepayments / items / properties / amount / description
      Added value: +"Prepayment amount in rupees."
    • addedInput schema / properties / prepayments / items / properties / desc / description
      Added value: +"Optional label for the prepayment."
    • addedInput schema / properties / prepayments / items / properties / frequency / description
      Added value: +"Recurrence: m = monthly, q = quarterly, y = yearly; null = one-time lump."
    • addedInput schema / properties / prepayments / items / properties / start_month / description
      Added value: +"Loan-relative month of this payment (1 = the loan's first EMI month)."
    • addedInput schema / properties / prepayments / items / properties / step_frequency / description
      Added value: +"How often step_pct applies (defaults to frequency)."
    • addedInput schema / properties / prepayments / items / properties / step_pct / description
      Added value: +"Percent the prepayment amount grows by each recurrence (step-up)."
    • addedInput schema / properties / tenure / description
      Added value: +"Loan tenure in months (e.g. 240 for 20 years)."
  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=false, so safety and idempotency are covered. The description goes further, adding valuable behavioral disclosure: the EMI stays constant, the loan shortens, and the return shape switches to { schedule, payoff_month, total_interest_paid, total_prepaid, interest_saved } when prepayments are supplied. It also warns that start_month is loan-relative here versus plan-absolute on persisted loans, which prevents a real off-by-basis error.

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

Conciseness3/5

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

The purpose and return behavior are front-loaded, which is good, but the prepayment parenthetical crams ambiguity resolution for frequency, start_month, and step_pct into one long sentence. The comment about loan-relative vs plan-absolute months is useful but reads as a footnote bolted onto the end, making the paragraph denser than it needs to be.

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?

There is no output schema, so the description must explain return values, and it does: a plain array normally, or a richer object with payoff_month, total_interest_paid, total_prepaid, and interest_saved when prepayments are given. It also discloses the loan-relative month basis. What is missing is any statement about required inputs or error behavior, but for a pure deterministic calculator with no annotations gap, this is nearly complete.

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 coverage is 100%, so the schema already documents every field, including start_month, frequency, and step_pct. The description re-explains the prepayment shape and clarifies that null frequency means a one-time lump and step_pct is a growth percentage per recurrence, which adds meaning beyond the schema but does not add much that the schema lacks. Baseline 3 applies when the schema carries the load.

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?

States a specific verb and resource ('Pure calculation of EMI and a month-by-month amortization schedule for a loan') and distinguishes itself from the siblings, which are projections, refinancing, and plan simulation rather than a deterministic EMI calculation. An agent can classify this as a pure calculation vs a stateful planning operation 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?

Implies usage via 'Pure calculation' and the contrast with persisted loans, but it never states when to choose this tool over siblings such as loan_refinance or simulate_plan, nor when prepayment modeling should be used instead of the plain schedule. Adequate context with a clear gap in call routing.

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.