Skip to main content
Glama

Simplify Mortgage Calculators

Compare loan options

compare_scenarios
Read-onlyIdempotent

Compare two to four fixed-rate loan options on the same loan amount, for example paying points for a lower rate, or a 15-year vs a 30-year. Shows monthly payment, upfront cost, break-even time against the first option, and total cost over the time the person expects to keep the loan.

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": {
      "loan_amount": "<loan_amount>",
      "options": "<options>"
    },
    "name": "compare_scenarios"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsYesTwo to four loan options to compare.
loan_amountYesAmount borrowed in dollars.
years_planning_to_keepNoHow long the person expects to keep the loan before selling or refinancing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a read-only, idempotent, non-destructive computation, so the safety profile is covered. The description adds real value by disclosing what the comparison produces (monthly payment, upfront cost, break-even against the first option, total cost over the holding period) — important since no output schema exists — and by flagging the fixed-rate-only constraint.

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, both front-loaded with the core action and scope before the illustrative examples and the return-value summary. No redundant restatement of the tool name or schema fields; every clause carries 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?

For a 3-parameter read-only calculation with fully documented schema, the definition covers inputs, scope, and output content well enough to call correctly. Minor gaps remain — no note on currency/unit conventions beyond 'dollars' in the schema, and no error behavior — but these are small for a pure computation tool.

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 meaning the schema does not: the first option acts as the baseline for break-even, and 'total cost over the time the person expects to keep the loan' explains the role of years_planning_to_keep beyond its field description. The fixed-rate restriction also qualifies interest_rate_pct semantics.

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 specific verb and resource ('Compare two to four fixed-rate loan options on the same loan amount') plus concrete examples (points vs. lower rate, 15- vs. 30-year). It doesn't explicitly contrast with siblings such as calculate_payment or refinance_breakeven, which is the only thing keeping it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The scope restrictions (fixed-rate only, 2-4 options, same loan amount) implicitly define when the tool applies, and the examples illustrate typical comparisons. However, there is no explicit routing guidance — nothing says to use calculate_payment for a single option or refinance_breakeven when only a break-even calculation is needed.

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