Skip to main content
Glama

US CFPB HMDA Mortgage Lending Data MCP

Get HMDA mortgage aggregations

get_hmda_mortgage_aggregations
Read-onlyIdempotent

Fetch official FFIEC/CFPB HMDA mortgage loan counts, total dollar volume, and average loan size for a US state, year, and action-taken code.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_hmda_mortgage_aggregations"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoHMDA reporting year between 2018 and 2025 (default 2023).
stateNoTwo-letter US state postal code (default "CA"; e.g. "TX", "NY", "FL").
loan_typesNoOptional HMDA loan type filter (1=Conventional, 2=FHA, 3=VA, 4=USDA).
actions_takenNoComma-separated HMDA action codes 1-8 (default "1" for originated; "3" for denied).
loan_purposesNoOptional HMDA loan purpose filter (1=Home purchase, 31=Refinancing, 32=Cash-out refinancing).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is fully covered externally. The description contributes useful context by naming the authoritative data source (FFIEC/CFPB) and listing the three metrics returned, which matters because there is no output schema. It says nothing about aggregation granularity, completeness of coverage, or rate limits, so it does not exceed a middle score.

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?

A single well-formed sentence with the key scope and output metrics front-loaded, and no filler. Every clause carries information.

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?

With no output schema, the description correctly takes on the job of stating what comes back (counts, dollar volume, average loan size). Combined with a fully documented schema, an agent has enough to call it correctly. Minor gaps remain around aggregation granularity and behavior when optional filters are omitted.

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 description coverage is 100%, so the schema already explains year ranges, state format, loan type codes, action codes, and loan purpose codes with examples. The description only echoes state, year, and action-taken, and does not add interpretation such as how multiple action codes combine or what happens when optional filters are omitted. Baseline 3 is appropriate where the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ("Fetch") and names the exact resource: official FFIEC/CFPB HMDA mortgage loan counts, total dollar volume, and average loan size, scoped by state, year, and action-taken code. A reader can immediately tell this is an aggregate-metrics tool rather than a filer listing or comparison tool. It stops short of explicitly naming a sibling it is not, which keeps it out of the 5 tier.

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?

Usage is implied by the scope statement (state + year + action code), so an agent can infer this is the tool for pulling aggregate mortgage figures for a geography. However, there is no explicit guidance on when to prefer it over analyze_state_mortgage_originations or compare_hmda_lending_by_action_taken, and no stated exclusions or prerequisites.

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.