Skip to main content
Glama

Abono extraordinario a un crédito

fin-loan-prepayment
Read-onlyIdempotent

Calcula el efecto de un abono extraordinario a capital en un crédito de cuota fija tras cierto número de cuotas: el saldo y, para reducir plazo o reducir cuota, la nueva cuota, los periodos, los intereses y el ahorro. 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 tabla de amortización completa (fin-loan-amortization). 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: Computes the effect of an extra principal payment on a fixed-payment loan after a number of payments: the balance, and for both options (keep the payment and shorten the term, or keep the term and lower the payment) the new payment, periods, interest and interest saved. [EN completo / full EN: inputSchema.description]

Input Schema

NameRequiredDescriptionDefault
periodsYesTotal number of payments of the loan (integer; required; min 1; max 1200).
principalYesLoan amount (number; required; > 0; max 1000000000000).
rate_typeNoHow annual_rate is quoted: nominal (divided by periods_per_year) or effective_annual (EA, as in Colombia) (optional; one of: nominal, effective_annual; default "nominal").nominal
prepaymentYesExtra payment applied to principal (number; required; > 0; max 1000000000000).
annual_rateYesAnnual rate, decimal (0.18 = 18 %) (number; required; min 0; max 10).
payments_madeYesPayments already made before the prepayment (integer; required; min 0; max 1199).
periods_per_yearNoPayments per year (integer; optional; default 12; min 1; max 365).

Output Schema

NameRequiredDescriptionDefault
paymentNo
paid_offNo
reduce_termNo
periodic_rateNo
reduce_paymentNo
excess_returnedNo
remaining_periodsNo
prepayment_appliedNo
balance_after_prepaymentNo
balance_before_prepaymentNo
interest_remaining_without_prepaymentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / annual_rate / examples
      Added value: +[
      +  0.12
      +]
    • addedInput schema / properties / payments_made / examples
      Added value: +[
      +  24
      +]
    • addedInput schema / properties / periods / examples
      Added value: +[
      +  120
      +]
    • addedInput schema / properties / prepayment / examples
      Added value: +[
      +  10000000
      +]
    • addedInput schema / properties / principal / examples
      Added value: +[
      +  100000000
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description still adds meaningful context beyond that: determinism (same input, same output), no network and no stored state, both reduction options computed, and concrete limits (64 KB input, 1 s/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?

Content is front-loaded with the core computation first, then when/not-for, side effects, determinism and limits — every sentence carries information. It is somewhat dense and the EN block largely duplicates the Spanish text and the schema description field, which adds mild redundancy.

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?

For a deterministic financial calculator with an output schema and full annotation coverage, the description supplies everything else an agent needs: scope, the excluded alternative tool, side-effect profile, determinism and resource limits. Nothing material 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. The description adds genuine semantic value on top by clarifying that results are produced for both prepayment strategies (shorten term vs. lower payment) and by tying payments_made to the prepayment moment, which the schema alone does not convey.

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 first sentence gives a precise verb and resource: it computes the effect of an extraordinary principal prepayment on a fixed-payment loan after N payments, and names the specific outputs (balance, new payment, periods, interest, savings for both options). This is clearly distinguishable from the sibling fin-loan-amortization, which is explicitly called out as out of scope.

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?

There is an explicit 'No para' clause naming the alternative tool (fin-loan-amortization) for full amortization schedules, plus a 'Cuándo' clause about needing exact, reproducible financial math. The when-to-use framing is slightly generic (money/tax/financial-math precision) rather than prepayment-specific, and it does not mention fin-loan-payment as a related alternative, so it falls short of a perfect 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