Skip to main content
Glama

finance_apr

Read-only

Loan APR calculator (Reg Z) — True APR of a loan including fees and points, by the Reg Z actuarial method: the rate that makes all payments equal the amount financed (loan minus prepaid finance charges). Params: amount=, term_months= (or term_years=), rate= (note rate %) or payment=; optional fees= (prepaid finance charges in $), points= (% of loan), fees_financed=true (fees added to the loan), periods_per_year= (12 default, 26, 52...). Returns APR, note rate, APR minus note rate, effective annual rate, payment, amount financed, finance charge, total of payments, first-year interest, the 1/8-point Reg Z tolerance and flags (fees adding more than 1 point, APR over 36%). Offline. The example output uses amount=300000&term_months=360&rate=6.5&fees=4500&points=1. Price: $0.002 USDC (Base, via x402).

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>",
      "term_months": "<term_months>",
      "rate": "<rate>"
    },
    "name": "finance_apr"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYes6.5
amountYes300000
term_monthsYes360

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds the cost model ($0.002 USDC on Base via x402), the offline execution claim, and the Reg Z 1/8-point tolerance behavior that the annotations do not cover. One caveat: the description calls the tool 'Offline' while the annotations set openWorldHint=true and the stated x402 payment is a network operation, a tension an agent should be aware of. The further disclosure of the output fields (APR minus note rate, effective annual rate, flags) also goes beyond what the annotations provide.

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 definition leads with the method and scope, then packs inputs and outputs into a dense but scannable run of key=value pairs, and closes with execution and price facts. It is long, but nearly every clause carries information an agent would need, with only mild redundancy between the APR definition and the returned-field list.

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?

With no output schema, the description carries the full burden of describing return values, and it does so concretely (APR, note rate, delta, EAR, payment, amount financed, finance charge, total of payments, first-year interest, tolerance, and flags). It also discloses cost and execution mode, so an agent has enough to call and interpret this tool without opening anything else.

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%, but the schema itself only supplies bare examples ('6.5', '300000', '360'), so the description genuinely adds meaning: units, defaults (periods_per_year=12), and semantics (fees = prepaid finance charges in $, points = % of loan, fees_financed=true). The problem is that it documents term_years, payment, fees, points, fees_financed, and periods_per_year, none of which appear in the input schema, so an agent cannot tell which of these are actually accepted inputs. That mismatch holds the score at baseline rather than above it.

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 gives a precise verb and resource: it computes the True APR of a loan under the Reg Z actuarial method, including fees and points, and names the exact formula (the rate at which payments equal the amount financed). That is much more specific than a generic 'loan calculator'. It does not, however, contrast itself with the closely named sibling finance_loan_calc, so an agent has no stated basis for choosing between the two.

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 implied rather than stated: the parameter alternatives (term_months= or term_years=, rate= or payment=) hint at the input combinations the tool expects, and 'Offline' implies there are no prerequisites. There is no explicit when-to-use or when-not-to-use statement, and no guidance about when to prefer finance_loan_calc or finance_payment_terms over this tool.

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