Skip to main content
Glama

Lookup Kit

loan_payment

Read-only

Loan calculator, mortgage payment calculator, amortization. Regular payment for a fixed-rate loan or mortgage: principal, annual interest rate (%), term in years or months, payments per year (12 = monthly). Returns the payment, total paid, total interest and the first and last schedule rows. Exact decimal maths. Price: $0.001 per call (x402, USDC on Base).

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>",
      "annual_rate": "<annual_rate>"
    },
    "name": "loan_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNo
monthsNo
per_yearNo
principalYes
annual_rateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already establish this is a read-only, closed-world computation, so the bar is lowered, and the description adds real context beyond them: the return contents (payment, total paid, total interest, first and last schedule rows), the exact-decimal arithmetic guarantee, and a per-call price of $0.001 via x402/USDC. The pricing and precision disclosures are exactly the kind of behavioral detail annotations cannot convey. Only the mutual exclusivity/default behavior of years vs months is left unaddressed.

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?

Information is front-loaded: purpose first, then parameter meaning, then return values, then pricing. It is dense but nearly every clause earns its place. The opening keyword list ('Loan calculator, mortgage payment calculator, amortization') is somewhat redundant with the following sentence and could be trimmed.

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, and the description compensates by naming the returned fields, so an agent knows what comes back. Pricing, precision, and units are all covered. It remains slightly incomplete on how the optional years/months parameters interact and on any limits, which matters for a five-parameter financial tool.

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?

With 0% schema description coverage, the description carries the full burden and largely meets it: it explains principal, annual interest rate as a percent, term expressed in years or months, and payments per year with '(12 = monthly)' clarifying the unit. The gap is that it never says years and months are alternatives, whether a default term applies, or what happens if both are supplied.

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 states a specific computation and resource: the regular payment for a fixed-rate loan or mortgage, plus amortization totals. It also lists recognizable synonyms (loan calculator, mortgage payment calculator, amortization) that help an agent match intent. It never names or contrasts a sibling such as compound_interest, so it falls short of full differentiation.

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

Usage Guidelines4/5

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

Usage context is clear from 'Regular payment for a fixed-rate loan or mortgage,' which implicitly scopes the tool to fixed-rate amortizing loans and excludes variable-rate or interest-only scenarios. It does not explicitly state when to prefer an alternative tool or what to do outside that scope.

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