Skip to main content
Glama

US Mortgage Calculator

Calculate mortgage insurance

calculate_pmi
Read-onlyIdempotent

Mortgage insurance for any US loan programme, including the upfront charges most calculators omit. Conventional: monthly PMI and the month it cancels at 80% and 78% loan-to-value. FHA: the 1.75% upfront premium, monthly MIP, and whether it runs for the life of the loan or ends after 11 years. VA: the funding fee, tiered by down payment and prior use, and waivers. USDA: guarantee and annual fees.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
loanTypeNoLoan programme. Affects mortgage insurance and upfront fees.conventional
homePriceYesPurchase price of the home in US dollars.
creditScoreNoFHA only: sets the minimum down payment. 580+ qualifies for 3.5%.
loanTermYearsNoLoan term in years. Most US mortgages are 15 or 30.
vaSubsequentUseNoVA only: entitlement used before.
downPaymentPercentNoDown payment as a percentage of the purchase price, 0 to 100. Not a dollar amount.
monthlyExtraPrincipalNoExtra principal paid monthly.
vaExemptFromFundingFeeNoVA only: funding fee waived.
annualInterestRatePercentNoAnnual nominal interest rate as a percentage, for example 6.5 for 6.5%.

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the annotations by detailing specific behavioural traits: conventional PMI cancels at 80% and 78% LTV, FHA has a 1.75% upfront premium and MIP that may end after 11 years, VA funding fee is tiered by down payment and prior use, and waivers exist. This gives the agent a thorough understanding of the tool's scope and internal logic, and it aligns with the read-only and idempotent hints.

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?

The description is well-structured and front-loaded: a leading summary ('Mortgage insurance for any US loan programme, including the upfront charges most calculators omit') followed by four succinct programme-specific clauses. Every sentence conveys unique, necessary information without 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?

Given the tool's complexity (9 parameters, 4 loan types) and the absence of an output schema, the description comprehensively covers the key calculations and caveats for each programme. It also notes that it includes upfront charges typically omitted, giving the agent a complete picture of what to expect.

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?

With 100% schema description coverage, the baseline is 3. The description adds program-specific context that enriches parameter understanding, such as 'VA: the funding fee, tiered by down payment and prior use, and waivers,' which directly maps to downPaymentPercent, vaSubsequentUse, and vaExemptFromFundingFee. This extra context elevates the score above baseline.

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 description clearly specifies that the tool calculates mortgage insurance for any US loan programme and enumerates the exact charges for each type: conventional PMI with cancellation points, FHA upfront MIP, VA funding fee, and USDA fees. This not only states the purpose with a specific verb and resource but also distinguishes it from sibling calculators like calculate_mortgage or calculate_amortization by focusing exclusively on insurance costs.

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?

The description provides clear context for when to use the tool: whenever mortgage insurance or related upfront fees for conventional, FHA, VA, or USDA loans need to be calculated. However, it does not explicitly state exclusions or direct users to alternative tools for non-insurance calculations, so it stops short of a perfect score.

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.

TDQS

A4.5/5.0
Disambiguation5/5

Each tool targets a distinct calculation or information need: affordability, amortization, full mortgage payment, PMI, property tax, refinancing, rent vs buy, loan comparison, closing costs, state rules, and state list. Even overlapping tools like calculate_mortgage and calculate_pmi are clearly separated by depth and purpose.

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern, using verbs like calculate, compare, estimate, get, and list. The pattern is uniform and predictable across the entire set.

Tool Count5/5

With 11 tools, the server is well-scoped for a US mortgage calculator domain. Each tool covers a meaningful aspect of mortgage analysis without redundancy or bloat.

Completeness5/5

The tool surface covers the full lifecycle of mortgage decision-making: affordability, payment estimation, amortization, PMI, property tax, refinancing, rent vs buy, loan comparison, closing costs, and state-specific rules. No significant gaps are apparent for the stated purpose.

Resources