Skip to main content
Glama

US Mortgage Calculator

Itemise closing costs

estimate_closing_costs
Read-onlyIdempotent

Line-by-line buyer closing costs — lender fees, title, appraisal, transfer taxes, prepaid escrow — plus total cash needed at the table including the down payment. Marks which items are worth shopping for and which are fixed by the county, and adds the FHA upfront premium, VA funding fee or USDA guarantee fee where they apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNoFull US state name, for example "Texas". Used to look up the average property tax rate. Either this or propertyTaxRatePercent is required.
loanTypeNoLoan programme. Affects mortgage insurance and upfront fees.conventional
homePriceYesPurchase price of the home in US dollars.
escrowMonthsNoMonths of taxes collected up front to open the escrow account.
annualInsuranceNoAnnual homeowners insurance premium.
vaSubsequentUseNoVA only: entitlement has been used before.
downPaymentPercentNoDown payment as a percentage of the purchase price, 0 to 100. Not a dollar amount.
transferTaxPercentNoState and local transfer tax as a percentage of price. Varies enormously by state.
propertyTaxRatePercentNoAnnual property tax as a percentage of home value. Omit and pass `state` instead to use that state's average.
vaExemptFromFundingFeeNoVA only: exempt from the funding fee, for example a service-connected disability rating.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the agent knows it is a safe, non-mutating calculation. The description adds valuable context beyond annotations by explaining that it marks which items are shoppable vs fixed by the county, and that it selectively applies FHA/VA/USDA fees. This provides useful behavioral nuance about the tool's logic without contradicting the annotations.

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 two sentences with no wasted words. The first sentence front-loads the core purpose and output, while the second adds two important behavioral details (shopping markers and loan-type fees). Every phrase earns its place, and the structure is easy to scan.

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?

The tool has 10 parameters, but the schema covers all of them with descriptions, so the description need not repeat parameter details. It explains the output (line items, total cash needed, shopping markers) and the loan-type fee logic, which is sufficient given the absence of an output schema. It does not address edge cases like VA fee exemptions, but defaults in the schema mitigate that gap.

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 description coverage is 100%, establishing a baseline of 3. The description adds meaning by tying cost categories (lender fees, title, appraisal, transfer taxes, prepaid escrow) to specific parameters like escrowMonths and transferTaxPercent, and by mentioning loan-type-specific fees that enrich the 'loanType' parameter. This contextual grouping helps the agent understand how inputs relate to the overall calculation.

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 states it produces line-by-line buyer closing costs and total cash needed at the table, including the down payment. This distinguishes it from sibling tools that focus on monthly payments or single cost components. The verb 'Itemise' in the title is reinforced by the description's detailed enumeration of cost categories.

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 by specifying the exact output (closing cost breakdown, total cash needed) and the types of costs included, implying when to use this tool. However, it does not explicitly name alternatives or state when not to use it, such as 'use calculate_mortgage for monthly payment estimates.' This is a minor gap given the many sibling calculation tools.

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