Skip to main content
Glama

showrealcost

Months to pay off a balance at a fixed payment

payoff_time
Read-onlyIdempotent

How long a balance (credit card or loan) takes to pay off at a fixed monthly payment, and the interest paid. Use for "how long to pay off my card at $X a month" and for comparing a bigger payment by calling it twice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
balanceYesBalance owed today, in dollars
annual_rate_pctYesAnnual interest rate in percent
monthly_paymentYesFixed amount paid each month, in dollars

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, which is the full safety profile for a pure calculator. The description adds that it returns both a duration and interest paid, but discloses nothing about edge cases (e.g. payment below interest accrual, zero rate), rounding, or units.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, purpose front-loaded, followed immediately by the usage scenario and the comparison trick. No filler and nothing redundant with the schema.

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?

All three required parameters are richly specified and the description covers both return values (payoff time and interest paid) in the absence of an output schema. What remains missing is only edge-case behavior, which is minor for a deterministic calculator.

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 description coverage is 100%, so balance, rate and payment are already documented with units and bounds. The description merely echoes "fixed monthly payment" without adding format or constraint nuance, so the baseline 3 applies.

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?

States a precise computation: months to pay off a balance at a fixed payment plus total interest, with the input resource (credit card or loan) named. It is clearly a payoff-duration calculator and implicitly distinct from siblings like loan_payment, though it never explicitly differentiates itself from debt_payoff_plan or compare_loan_offers.

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?

Gives a concrete triggering scenario ("how long to pay off my card at $X a month") and even the technique for a comparison task (call twice with a larger payment). No explicit when-not boundary or sibling routing (e.g. vs debt_payoff_plan), so it stops short of 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