Skip to main content
Glama

compare_mortgage

Read-onlyIdempotent

Compare mortgage lending metrics across multiple U.S. areas using HMDA data. View side-by-side summaries of denial rates, median loan amounts, and loan type breakdowns for tracts, counties, or states.

Instructions

Compare mortgage lending metrics across 2-5 geographic areas for a single HMDA data year. All areas must be the same geographic level (tract, county, or state). Returns side-by-side summaries including origination count, denial rate, median loan amount, and loan type/purpose breakdowns for each area. Source: CFPB/FFIEC HMDA.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoHMDA data year (default: most recent available)
geoidsYesArray of 2-5 FIPS codes to compare
area_typeYesGeographic level (must be same for all areas): tract (or census_tract), county, or state
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior. Description adds behavioral constraints (single year, same geographic level, side-by-side summaries with specific metrics) and source, going beyond the basic safety profile.

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?

Three concise sentences with all information front-loaded. The first sentence states the purpose, the second the constraint, the third the output and source. No filler content.

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?

No output schema exists, so description compensates by specifying the side-by-side summaries and included metrics. Covers purpose, constraints, output, and data source. Could mention data derivation or availability caveats, but overall adequate for a read-only comparison tool.

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 has 100% coverage and already explains area_type, geoids, and year. Description reinforces the 2-5 area count and same-level constraint, but adds no new parameter details beyond what the schema provides, so it sits at the 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?

Description uses specific verb 'Compare' with resource 'mortgage lending metrics' and scope '2-5 geographic areas' for a single HMDA year. It lists concrete metrics (origination count, denial rate, median loan amount) which distinguishes it from sibling tools like compare_demographics or get_mortgage_summary.

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?

Clearly implies use when comparing mortgage metrics across multiple areas in a single year, with the constraint that all areas be the same geographic level. Doesn't explicitly name alternatives or exclusions, but 'across 2-5 geographic areas' provides clear context compared to single-area mortgage tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gener8v/gener8v.mcp.geographic-data'

If you have feedback or need assistance with the MCP directory API, please join our Discord server