Skip to main content
Glama

Loan Calculator

loan_calculator
Read-onlyIdempotent

A loan calculator for the monthly payment, and how much of it is interest. An estimate for planning, not financial, tax or legal advice; say so when giving the figures. A HelpySelf tool (helpyself.com).

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": "<amount>",
      "rate": "<rate>",
      "years": "<years>"
    },
    "name": "loan_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYesNominal annual interest rate as a percentage, so 5.5 means 5.5% a year. 0 is a real case: an interest-free loan repaid in equal instalments.
yearsYesLength of the loan in years. Fractions are allowed and rounded to whole months, so 2.5 is 30 monthly payments.
amountYesThe principal borrowed, in whatever currency you are working in. Every figure in the answer is in the same units.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / amount / description
      Added value: +"The principal borrowed, in whatever currency you are working in. Every figure in the answer is in the same units."
    • addedInput schema / properties / rate / description
      Added value: +"Nominal annual interest rate as a percentage, so 5.5 means 5.5% a year. 0 is a real case: an interest-free loan repaid in equal instalments."
    • addedInput schema / properties / years / description
      Added value: +"Length of the loan in years. Fractions are allowed and rounded to whole months, so 2.5 is 30 monthly payments."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered elsewhere. The description adds genuinely new behavioral context: the results are an estimate, and the agent must surface a disclaimer alongside them. Given the lower bar set by annotations, a 3 is appropriate; it does not mention whether an amortization breakdown or total interest is returned.

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?

The core purpose and the estimate-not-advice caveat are front-loaded in the first two sentences, which is the right ordering. The trailing branding sentence, 'A HelpySelf tool (helpyself.com),' is the one line that does not earn its place for an agent deciding whether to call the tool. Overall it is tight and easy to parse.

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 three-required-parameter read-only calculator with no output schema, the description covers what matters: it names the two headline outputs and imposes the disclaimer obligation the agent must honor. It could go further by describing whether interest is per-payment or lifetime total, but nothing essential to calling it correctly is missing.

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%, and the field docs are unusually rich, covering rate as a nominal annual percentage with zero as a real case and years as a value rounded to whole months. The description adds nothing about amount, rate, or years, so the schema is doing all the work. Baseline 3 applies when the input schema already carries full parameter meaning.

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 uses a concrete verb-plus-resource framing: it computes the monthly payment and how much of that payment is interest. That is specific enough for an agent to tell it apart from unrelated calculators in the sibling list (vat_calculator, salary_calculator, tip_calculator). It stops short of explicitly naming any sibling or contrasting scope, so it lands at a solid 4 rather than 5.

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 description gives real usage context by labeling the output an estimate for planning and forbidding its use as financial, tax, or legal advice, plus an instruction to repeat that caveat when presenting figures. What is missing is any routing guidance: no statement of when to prefer this over adjacent tools, and no prerequisites or input constraints beyond what the schema already says. Usage is implied rather than spelled out.

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