Skip to main content
Glama

US CFPB HMDA Mortgage Lending Data MCP

Get HMDA filer counts across states

get_hmda_filer_count_by_state_year
Read-onlyIdempotent

Compare active HMDA mortgage filer counts, total filing records, and top lender across up to 8 US states for a given reporting year.

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_filer_count_by_state_year"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNoHMDA reporting year (default 2023).
statesNoList of two-letter US state codes (default ["CA", "TX", "FL", "NY"]).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered. The description adds genuine value by disclosing the payload contents (filer counts, total filing records, top lender), which matters because there is no output schema. It stops short of a 5 because it does not mention limits on invalid state codes or behavior when a state has no filers.

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 front-loaded sentence with no filler, covering metrics, scope, and the year constraint. Nothing is redundant or buried.

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 only two optional, fully documented parameters and no output schema, the description supplies the missing return-value information (counts, total records, top lender) that the schema cannot. The main residual gap is guidance on sibling selection, which is a usage concern rather than a completeness one.

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% and both parameters already document types, bounds, defaults, and the two-letter state-code format in the schema itself. The description only restates the 'up to 8 states' cap and 'given reporting year,' adding no new semantics such as case sensitivity or duplicate handling. Baseline 3 is appropriate.

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?

States specific verb and resource: 'Compare active HMDA mortgage filer counts, total filing records, and top lender across up to 8 US states for a given reporting year.' It names the metrics returned and the geographic and temporal scope. It does not explicitly differentiate itself from siblings like analyze_state_mortgage_originations or compare_hmda_lending_by_action_taken, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description describes what the tool reports but never says when to choose it over alternatives, nor any preconditions or exclusions. An agent must infer from sibling names alone whether this or analyze_state_mortgage_originations is the right call. Only the implicit 'compare across states' framing hints at usage.

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.