Skip to main content
Glama

Valor del dinero en el tiempo

fin-tvm
Read-onlyIdempotent

Resuelve la variable faltante del valor del dinero en el tiempo (pv, fv, pmt, nper o tasa). Cuándo: un cálculo de dinero, impuestos o matemática financiera tiene que ser exacto y reproducible (redondeo, centavos, tasas). No para: calcular la cuota fija de un préstamo amortizable (fin-loan-payment). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Solves for the one missing TVM variable (pv, fv, pmt, nper or rate per period) given the others, with Excel sign convention (cash out negative) and payments at end or beginning. When: a money, tax or financial-math result has to be exact and reproducible (rounding, cents, rates). Not for: computing the fixed periodic payment for an amortizing loan: PMT = P·r / (fin-loan-payment). Side effects: none (read-only, no network access, no stored state). [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
fvNoFuture value (number; optional).
pvNoPresent value (number; optional).
pmtNoPayment per period (number; optional).
nperNoNumber of periods (number; optional; min 0; max 10000).
rateNoInterest rate per period as a decimal (0.05 = 5%) (number; optional; min -0.99; max 10).
whenNoPayment timing (optional; one of: end, begin; default "end").end
solve_forYesUnknown (required; one of: pv, fv, pmt, nper, rate).

Output Schema

NameRequiredDescriptionDefault
fvNo
pmtNo
nperNo
rateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / solve_for / examples
      Added value: +[
      +  "pmt"
      +]
  2. Changed1 schema field changed
    • addedInput schema / description
      Added value: +"EN: Solves for the one missing TVM variable (pv, fv, pmt, nper or rate per period) given the others, with Excel sign convention (cash out negative) and payments at end or beginning. When: a money, tax or financial-math result has to be exact and reproducible (rounding, cents, rates). Not for: computing the fixed periodic payment for an amortizing loan: PMT = P·r / (fin-loan-payment). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so 'sin efectos secundarios, solo lectura' is largely a restatement. The description does add value beyond them: the Excel cash-out-negative sign convention, end/begin payment timing, determinism, and hard limits (64 KB input, 1 s per call, 1 MB result).

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 structure is strongly front-loaded — purpose, then Cuándo / No para / Efectos / Determinista / Límites — which is easy to scan. It loses a point for shipping the same content twice (Spanish block then English block), which inflates length without adding information.

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 an output schema present and rich annotations, the description only needed to cover preconditions and call semantics, and it does: limits, determinism, sign convention, and the loan-payment exclusion. What remains thin is what happens on inconsistent inputs (which variable wins, error shape) — a minor gap given the existing annotations and output schema.

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 genuine semantics the schema does not: the Excel sign convention for cash flows and the fact that rate/payments are per period, which materially affect how pv/fv/pmt values must be signed. It stops short of explaining solver failure behavior when inputs are inconsistent.

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?

It names a specific verb and resource — solving for the one missing TVM variable — and enumerates the exact variables (pv, fv, pmt, nper, rate) plus the sign convention. It also explicitly names the sibling it is not (fin-loan-payment), so the agent can separate the two without opening either schema.

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?

The 'Cuándo' clause gives a positive trigger (money/tax/financial-math results that must be exact and reproducible) and the 'No para' clause gives an explicit exclusion routing to fin-loan-payment for amortizing-loan payments. Both when-to-use and when-not-to-use are stated, with the alternative named.

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