Skip to main content
Glama

finance_tvm

Read-only

Time-value-of-money solver (TVM) — Financial-calculator / Excel TVM solver: give any four of n (periods), rate (annual %), pv, pmt, fv and solve= the fifth (n|rate|pv|pmt|fv). Loan payments, payoff time, implied interest rate, savings goals, annuity present value, balloon payments. Optional periods_per_year (default 12; 1, 4, 52...), type=end|begin (annuity due). Excel sign convention: cash received positive, cash paid negative. Returns the solved value, effective annual rate, years, total in/out, interest cost or earned, and the matching Excel formula. Offline, instant. 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": {
      "solve": "<solve>",
      "n": "<n>",
      "rate": "<rate>",
      "pv": "<pv>"
    },
    "name": "finance_tvm"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes360
pvYes300000
rateYes6.5
solveYespmt

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, so the safety profile is covered; the description goes further by disclosing the input contract, the Excel sign convention ('cash received positive, cash paid negative'), and the shape of the result (solved value, effective annual rate, years, total in/out, interest, matching Excel formula). It also discloses operational traits an agent would otherwise not know: it runs offline and instantly, and incurs a $0.002 USDC charge via x402 on Base. Minor tension exists between 'Offline' and openWorldHint=true, but the payment rail plausibly explains the external interaction, so this is not a contradiction.

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 contract (solve the fifth of five TVM variables) is front-loaded in the first clause, followed by use cases, optional modifiers, and return contents in a logical order with no filler sentences. The trailing 'Offline, instant. Price: $0.002 USDC (Base, via x402)' is terse but arguably belongs in a pricing/annotations field, and the enumeration of use cases is slightly list-heavy.

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?

With no output schema available, the description helpfully itemizes the return payload (solved value, effective annual rate, years, total in/out, interest cost or earned, Excel formula), which is exactly what an agent needs to interpret results. The main gap is the inconsistency between the five-variable narrative with optional periods_per_year and type versus a schema listing only n, rate, pv, and solve, which could confuse an agent about how to pass pmt or fv.

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 description coverage is 100%, so the baseline is 3, but the description adds real semantics: 'rate' is an annual percentage, 'n' is periods, 'type=end|begin' selects annuity-due behavior, and the sign convention governs how pv/pmt/fv must be entered. It also warns that any four of five values must be supplied with 'solve' naming the missing one, which is the key constraint the flat schema does not express. Some ambiguity remains because periods_per_year, type, pmt, and fv are discussed but absent from the input schema.

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 names a specific tool class and function ('Time-value-of-money solver... give any four of n, rate, pv, pmt, fv and solve the fifth'), so an agent immediately knows what it computes. It is clearly distinct from specific siblings like finance_loan_calc, finance_npv_irr, or finance_debt_payoff because it is the generic five-variable solver rather than a pre-built scenario calculator.

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?

The 'give any four ... and solve the fifth' rule is an explicit invocation contract, and the phrase 'Loan payments, payoff time, implied interest rate, savings goals, annuity present value, balloon payments' enumerates the situations where this tool fits. It stops short of telling the agent when to prefer a specialized sibling such as finance_loan_calc or finance_npv_irr over this generic solver, so it earns a 4 rather than a 5.

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