Skip to main content
Glama

SmartFin

Loan payment and total interest

smartfin_calculate_loan_payment
Read-onlyIdempotent

Monthly payment, total interest and total paid for a fixed-rate loan with monthly payments: mortgage, car, student or personal loan. Give either loan_amount, or home_price with down_payment_pct for a mortgage. Use when the user asks what a loan costs per month or in total, or how the rate or term changes the cost. Do not use for variable-rate loans, interest-only loans, or credit cards. Excludes taxes, insurance and fees.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loan_typeNoType of loan; chooses the SmartFin calculator link. Default mortgage
home_priceNoMortgage only: home price, in dollars, with down_payment_pct
term_yearsYesLoan term in years, e.g. 30 for a mortgage, 5 for a car loan
loan_amountNoAmount borrowed, in dollars. Give this or home_price
annual_rate_pctYesAnnual interest rate in %, e.g. 6.5
down_payment_pctNoMortgage only: down payment as % of home_price. Default 20

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
citeYesHow to credit this result
dataYes
nextYesSuggested follow-up calls
linksYes
how_toYesSteps for the user to see or redo this on smartfin.fyi
sourceYes
summaryYesPlain-language result the assistant can quote

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / links / properties / page
      Added value: +{
      +  "description": "SmartFin's page for this stock, when it has one",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral scope: it excludes taxes, insurance and fees from the total, and explains the alternative input paths (loan_amount vs home_price with down_payment_pct). It does not discuss rate limits or error behavior, but that is not essential here.

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

Conciseness5/5

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

Three dense sentences with zero filler; the primary output and input-format choice are front-loaded, followed by usage scope and then exclusions. Every sentence earns its place.

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?

The tool is a stateless calculation with a full output schema, full parameter coverage and clear annotations. The description covers scope, input alternatives and exclusions, so nothing an agent needs to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds value beyond the schema by explaining the mutual exclusivity of loan_amount versus home_price plus down_payment_pct and by scoping down_payment_pct to mortgages. That extra routing logic helps an agent choose inputs correctly.

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?

The description states a specific verb and resource — it computes monthly payment, total interest and total paid for a fixed-rate loan — and names the concrete loan categories (mortgage, car, student, personal). This clearly distinguishes it from sibling calculators like smartfin_calculate_investment_return or smartfin_project_savings_growth.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit triggers ('what a loan costs per month or in total, or how the rate or term changes the cost') and explicit exclusions ('Do not use for variable-rate loans, interest-only loans, or credit cards'). The when-to-use and when-not-to-use guidance is fully articulated.

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