Skip to main content
Glama

DSCR Loan Calculator

Largest loan that meets a target DSCR

max_loan_for_target_dscr
Read-onlyIdempotent

Solves for the largest whole-dollar loan whose PITIA keeps the DSCR at or above a target (default 1.25), given rent, rate, term, interest-only choice, tax, insurance and HOA. Optional purchase_price and max_ltv_pct give the minimum down payment and which limit binds. Exact cents arithmetic, checked against the rounded payment.

Input Schema

NameRequiredDescriptionDefault
term_yearsNoAmortization term in years. Default 30.
max_ltv_pctNoOptional lender LTV cap in percent, e.g. 80. Needs purchase_price.
monthly_hoaNoMonthly HOA or association dues in USD. Default 0.
target_dscrNoTarget DSCR, e.g. 1.25 or 1.0. Default 1.25.
vacancy_pctNoVacancy allowance in percent of gross rent. Default 0. Many lenders use gross rent with no vacancy.
monthly_rentYesGross monthly market rent in USD.
interest_onlyNoQualify on the interest-only payment (loan x rate / 12). Default false.
purchase_priceNoOptional purchase price in USD, to report LTV and minimum down payment.
annual_rate_pctYesAnnual note rate in percent, e.g. 7.25. Up to 3 decimals.
annual_insuranceNoAnnual hazard insurance premium in USD. Default 0, but lenders always include it.
annual_property_taxNoAnnual property tax in USD. Default 0, but lenders always include it.
monthly_other_housingNoOther monthly housing costs in PITIA, such as flood insurance, ground rent or special assessments. Default 0.

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 as a read-only, idempotent, closed-world calculation. The description adds real behavioral context beyond that: whole-dollar loan sizing, exact cents arithmetic cross-checked against the rounded payment, and the downstream effect of purchase_price/max_ltv_pct on the binding limit. It does not mention return fields, but no destructive or auth behavior needs disclosing.

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?

Two sentences, front-loaded with the core purpose, no filler. The second sentence efficiently covers optional inputs and the arithmetic guarantee. Slightly dense but well-structured.

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 12-parameter calculation with no output schema, the description conveys the key outcome (largest whole-dollar loan, minimum down payment, which limit binds) and the rounding/arithmetic behavior. It does not enumerate the full return payload (e.g., resulting DSCR, payment split), but the annotations and schema carry most remaining weight.

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 coverage is 100%, so the schema already documents all 12 parameters including defaults and bounds. The description restates the input set and highlights the default target DSCR but adds little syntax or meaning not already in the schema, and omits vacancy_pct and monthly_other_housing entirely. 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 precise verb (solves for) and a specific resource (largest whole-dollar loan at or above a target DSCR), with the exact constraints (PITIA, target default 1.25). This is clearly the inverse of calculate_dscr and rent_needed_for_target_dscr without ambiguity.

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 description implies when to use it (finding the maximum loan size that holds DSCR) and explains the optional purchase_price/max_ltv_pct branch, but it never explicitly contrasts with calculate_dscr or the other siblings, nor states when not to use it. Usage is inferable rather than directed.

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.