Skip to main content
Glama

Hmda Loan Records

hmda_loan_records
Read-onlyIdempotent

Individual mortgage application records from the HMDA register, the loan-level rows behind the totals, with loan amount, action taken, rate spread, applicant income, lender LEI and census tract. Use when an aggregate is not enough and the individual applications matter. Filtered by geography and outcome; a large county returns tens of thousands of rows, so this caps what it returns and says when it truncated.

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": {
      "year": 2023,
      "limit": 25,
      "action": "denied",
      "county": "11001"
    },
    "name": "hmda_loan_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
leiNoOptional lender LEI to narrow to one institution.
yearNoFiling year, 2018-2025.
limitNoMaximum records to return (1-500, default 50).
stateNoTwo-letter state.
actionNoOutcome filter: originated | approved_not_accepted | denied | withdrawn | incomplete | purchased.
countyNo5-digit county FIPS. Give a county OR a state.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/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, so the safety profile is covered. The description adds genuinely non-obvious behavior: a large county yields tens of thousands of rows, results are capped, and the response says when truncation occurred — the key operational risk for this tool.

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?

Two sentences, both front-loaded with the highest-value facts: what the rows are, then when to prefer them over aggregates plus the truncation caveat. No restatement of the name or title and no filler.

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 compensates by naming the returned fields and the truncation signal, and it flags the volume risk for large geographies. Sufficient to call correctly; only minor gaps remain, such as whether truncation can be avoided by raising the limit.

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%, including the action enum values, FIPS format, year range, and the 1-500 limit default, so the schema does the heavy lifting. The description only restates the filter axes (geography and outcome) without adding format or interaction rules beyond the schema, which matches the baseline 3.

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 — 'individual mortgage application records from the HMDA register' — and immediately positions it as 'the loan-level rows behind the totals.' It enumerates the carried fields (loan amount, action taken, rate spread, applicant income, lender LEI, census tract), which makes the record grain unmistakable versus aggregate siblings.

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?

'Use when an aggregate is not enough and the individual applications matter' gives a clear selection rule against aggregate-style alternatives, and 'filtered by geography and outcome' tells the agent how to scope the call. It stops short of naming a specific sibling or stating exclusions, so it falls just under fully explicit guidance.

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.