Skip to main content
Glama

get_mortgage_trends

Read-onlyIdempotent

Retrieve multi-year mortgage lending data for any U.S. tract, county, or state. Get yearly summaries of loan counts, denial rates, median amounts, and interest rates to analyze housing credit trends.

Instructions

Retrieve multi-year mortgage lending data for a single area across all available HMDA years. Returns an array of yearly summaries including origination count, denial rate, median loan amount, median interest rate, and loan purpose/type breakdowns. Source: CFPB/FFIEC HMDA.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
geoidYesFIPS code — 11 digits for tract, 5 for county, 2 for state
area_typeYesGeographic level: tract (or census_tract), county, or state
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, and the description adds useful context by specifying the return format (array of yearly summaries with detailed metrics) and data provenance (CFPB/FFIEC HMDA). No contradictions with 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 long, front-loads the verb and resource, and includes return content and source without any filler. Every sentence earns its place.

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?

For a simple two-parameter read-only tool with rich schema coverage, the description is complete: it states purpose, scope, return structure, and data source. No output schema exists, but the listed yearly summary fields give adequate expectations.

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% with descriptive text for both parameters, including enum values for area_type and a clear format for geoid. The description adds no further parameter-specific details beyond referencing 'single area', so 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?

The description clearly states the tool retrieves multi-year mortgage lending data for a single area, listing specific metrics (origination count, denial rate, median loan amount, etc.) and citing the HMDA source. It distinguishes from sibling tools like get_mortgage_summary by emphasizing the multi-year trend aspect and single-area scope.

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 phrase 'multi-year' and 'across all available HMDA years' clearly implies use for historical trend analysis of mortgage lending for one geographic area. It does not explicitly mention alternatives or when-not-to-use, but the contextual scoping is clear enough for basic selection.

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