Skip to main content
Glama

Hmda Lender Activity

hmda_lender_activity
Read-onlyIdempotent

What a specific mortgage lender did in a year, applications, originations, denials and dollar volume, from the federal Home Mortgage Disclosure Act register, optionally narrowed to a state or county. Identify the lender by its LEI (the 20-character Legal Entity Identifier HMDA files under); resolve_entity maps a company name to one. Covers every US mortgage application 2018-2025. Reports what lenders DISCLOSED, which is a regulatory filing rather than a market estimate.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lei": "549300FGXN1K3HLB1R50",
      "year": 2023,
      "county": "11001"
    },
    "name": "hmda_lender_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
leiYes20-character Legal Entity Identifier, e.g. "549300FGXN1K3HLB1R50".
yearNoFiling year, 2018-2025. Defaults to the most recent published.
stateNoOptional two-letter state, e.g. "CA".
countyNoOptional 5-digit county FIPS, e.g. "06037" for Los Angeles.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds genuinely useful context beyond that: the data is a regulatory disclosure rather than a market estimate, coverage spans 2018-2025, and year defaults to the most recent published filing.

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?

Front-loads the core purpose in the first clause, then adds identification mechanics, coverage, and a caveat about interpretation. Four tight sentences with no filler, and every one contributes information an agent needs.

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?

With no output schema, the description carries the burden of describing returns, and it does: applications, originations, denials and dollar volume. Provenance, time coverage, and the disclosure-vs-estimate caveat round out what an agent needs to call and interpret it correctly.

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 LEI format, year range, state code and county FIPS are already documented. The description mainly restates what the schema covers (LEI identification, optional state/county narrowing, 2018-2025 range) without adding new parameter semantics; baseline 3 applies.

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?

States a specific verb and resource ('what a specific mortgage lender did in a year') and enumerates the metrics returned: applications, originations, denials, dollar volume. It also implicitly distinguishes itself from hmda_geography_activity / hmda_lenders_in_county by framing the query around a single lender rather than a place.

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?

Gives clear when-to-use context (single lender, optional state/county narrowing) and explicitly routes name-based lookups to resolve_entity for LEI resolution. No explicit exclusions are stated, e.g. when to prefer the geography-level sibling instead, so it falls short of a full 5.

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.