Skip to main content
Glama

Senaro Personal Finance

Debt Payoff vs. Invest

payoff_vs_invest
Read-onlyIdempotent

Calculation, not advice. Verify with a professional before acting. Should you pay extra on debt or invest the difference? Compares the guaranteed return of debt payoff against expected investment returns over a time horizon. Accounts for post-payoff investing, tax implications, and finds the break-even investment return rate. Works for credit cards, auto loans, student loans, personal loans, and mortgages. The response echoes debt_type (canonical lowercase enum the projection was computed for) and debt_type_label (display-ready string, e.g. 'student loan') at the top level. HEAVY tool: use output='summary' (default) for the headline comparison or output='inline' for the full month-by-month schedule. output='capture' writes the full payload to a file on this server's local disk for the chart-render pipeline; available on the local stdio transport only, and rejected with a structured error on the hosted HTTP transport. At extreme inputs (very long horizon, very high rate, or very large amounts) the response may instead be { meta, not_representable: { code, explanation } } when no projection can be computed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolArgumentsYesJSON object with these parameters: debt_type: 'credit_card' | 'auto' | 'student' | 'personal' | 'mortgage' (REQUIRED) debt_balance: decimal > 0 (REQUIRED) debt_apr_pct: decimal 0-100 as percentage, e.g. 6.5 not 0.065 (REQUIRED) extra_monthly: decimal > 0. The amount in question (REQUIRED) minimum_payment: decimal >= 0 (optional; auto-calculated for loans when 0) term_months_remaining: int > 0. Required for non-credit-card debt types investment_return_pct: decimal 0-30 as percentage, an EFFECTIVE ANNUAL rate; the monthly compounding step is (1+pct/100)^(1/12)-1 (optional; defaults to the cited long-run S&P 500 nominal return, about 10%) investment_volatility_pct: decimal (optional; adds volatility risk note) tax_bracket_pct: decimal 0-100 as percentage (optional; enables after-tax comparison) investment_tax_advantaged: bool (optional, default false; set true for 401k/IRA) time_horizon_years: int > 0 (optional; default max(payoff years, 10)) full_schedule: bool (optional, default false; returns compact schedule by default) chart_title: string (optional) override for the chart title. Must not contain em-dashes or en-dashes. Max 120 characters. ENVELOPE: output: 'summary' (default) | 'inline' | 'capture' summary: headline comparison scalars + milestones + citations; monthly_schedule is stripped. inline: full payload including the month-by-month monthly_schedule[] (for chart rendering). capture: full payload written to ~/.senaro/captures/; capture_ref URI returned. Available on the local stdio transport only; the hosted HTTP transport rejects 'capture' with a structured error naming 'summary' and 'inline' as the valid alternatives.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial behavior: 'HEAVY tool' cost warning, transport-specific capture rejection with a structured error, and the not_representable fallback shape at extreme inputs. These are non-obvious failure and cost characteristics an agent could not infer from annotations or schema.

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

Conciseness3/5

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

Front-loads the disclaimer and the core question well, but the output-mode paragraph duplicates material already spelled out in the envelope schema (summary/inline/capture and the stdio-only capture restriction), adding length without new information. The most useful edge-case detail (not_representable) is buried at the very end.

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 and does so: it names the echoed response fields, describes the summary vs full-schedule return difference, the capture_ref URI, and the alternate error payload. An agent has enough to invoke correctly and interpret the result.

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 every parameter including the nested envelope and defaults is already documented in the schema; the description largely restates the envelope semantics (summary/inline/capture) rather than adding new meaning. It does add the echoed debt_type/debt_type_label return fields, but those concern output, not parameter behavior. Baseline 3 is appropriate.

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?

States a specific comparison task with a clear verb and resource: 'Compares the guaranteed return of debt payoff against expected investment returns over a time horizon' and 'finds the break-even investment return rate'. This is distinguishable from siblings like calculate_opportunity_cost or compare_strategies, and it enumerates supported debt types.

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?

Frames the decision question ('Should you pay extra on debt or invest the difference?') and gives explicit guidance on output mode selection (summary vs inline vs capture) and the transport restriction on capture. However, it never names a sibling tool as the alternative or states when NOT to use this tool, so routing is implied rather than explicit.

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