Skip to main content
Glama

Calculate a loan EMI

calculate_emi
Read-onlyIdempotent

Calculate a reducing-balance loan installment and its amortization schedule. Money is rounded half up to cents. An optional extra monthly payment reduces principal.

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": {
      "principal": "<principal>",
      "annualRate": "<annualRate>",
      "months": "<months>"
    },
    "name": "calculate_emi"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthsYesTerm in months.
principalYesAmount borrowed, such as 100000.
annualRateYesAnnual interest rate in percent, such as 10.
extraMonthlyNoExtra principal paid every month.

Output Schema

NameRequiredDescriptionDefault
csvYes
emiYes
scheduleYes
payoffMonthsYes
totalPaymentYes
totalInterestYes
totalPrincipalYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses two real behavioral traits: monetary rounding is half-up to cents, and an optional extra monthly payment is applied to principal. It does not say whether the amortization schedule is always returned or how it is shaped, but the output schema covers the return value.

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 compact sentences, front-loaded with the core purpose, then rounding policy, then the optional parameter's effect. Nothing is filler, though the extra-payment sentence partially restates the schema's own description of extraMonthly.

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?

For a deterministic four-parameter calculator with full schema coverage, an output schema, and safety annotations, the description supplies what structured fields cannot: rounding policy and the principal-reduction behavior of the extra payment. Missing only minor details such as output shape or rate-unit conventions, which the schema largely covers.

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%, with each of the four parameters already documented, so the baseline is 3. The description reinforces that extraMonthly is optional and reduces principal, but adds no format or unit detail (e.g., percentage vs. decimal for annualRate) beyond 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?

The description names a specific verb and resource -- 'Calculate a reducing-balance loan installment and its amortization schedule' -- which is far more precise than the bare title. It is clearly distinguishable from the arithmetic/encoding siblings, though it does not explicitly contrast itself with any of them.

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 only implied: an agent can infer this is the tool for loan installment math, but there is no statement of when to prefer it, when not to use it, or any prerequisite such as rate units or term limits. No alternatives are named.

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.