Skip to main content
Glama

mtgmon Mortgage Analytics

Search HMDA lenders

search_lenders
Read-onlyIdempotent

Find HMDA lenders and resolve names to canonical lender keys. Call this before any other lender tool.

Use for: turning a company name ('Rocket', 'UWM', 'Wells Fargo', 'PennyMac') into its canonical key, ranking lenders by origination volume, or listing lenders by charter type or headquarters state. Then pass a result's exact name (e.g. 'Rocket/Quicken') as lender to get_lender_profile, get_hmda_product_analytics, or get_servicer_analytics mode='transfers', or as lender_a / lender_b to compare_lenders. Legal names such as 'Rocket Mortgage, LLC' are not keys and return meta.available=false downstream.

Returns data.results (at most limit rows of {name, leis, charter_type, hq_state, recent_year, recent_volume, total_loans, volume_rank, subsidiary_count}), data.matched_count, and data.total_count. recent_volume is USD originations in recent_year (the latest HMDA year). Keys are holding-company or originator groups, so subsidiaries and LEIs roll up into one key.

Behavior: read-only, no auth or API key, no PII, idempotent and safe to retry. The public endpoint https://mtgmon.com/mcp allows about 60 requests/min and 250 tool calls/day per client IP. Result shape is {data, meta}; meta carries available, as_of, source_scope, weighting, units, cache_status, caveats, and truncated. If meta.available is false, never report it as zero: retry after a few seconds only when meta.cache_status is 'miss' (warming); otherwise report the data as unavailable.

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": "search_lenders"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoResult order: volume_desc (default, largest recent-year volume first), volume_asc, name_asc, name_desc, loans_desc (most loans first), rank_asc (best volume rank first).volume_desc
limitNoMaximum results, 1-25 (default 10).
queryNoCase-insensitive substring of the lender name, e.g. 'rocket', 'united wholesale', 'wells'. Empty (default) returns the top lenders in sort order.
stateNoTwo-letter USPS code of the lender's headquarters state, e.g. 'MI'. Empty (default) = all states.
charterNoFilter by charter type exactly as shown in results' charter_type, e.g. 'Bank' or 'Independent Mortgage Company'. Empty (default) = all charter types.
min_volumeNoMinimum recent-year origination volume in USD, e.g. 1000000000 for $1B+. Default 0 (no floor).

Output Schema

NameRequiredDescriptionDefault
dataNo
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / $defs / ResultMeta / properties / cache_status / description
      Added value: +"Server cache state: hit; stale (older than its TTL, still served); stale-refresh; miss (warming, retry after a few seconds); failed or required-miss (not available now, a retry soon will not help); none; unknown."
  2. Changed6 schema fields changed
    • addedInput schema / properties / charter / description
      Added value: +"Filter by charter type exactly as shown in results' charter_type, e.g. 'Bank' or 'Independent Mortgage Company'. Empty (default) = all charter types."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum results, 1-25 (default 10)."
    • addedInput schema / properties / min_volume / description
      Added value: +"Minimum recent-year origination volume in USD, e.g. 1000000000 for $1B+. Default 0 (no floor)."
    • addedInput schema / properties / query / description
      Added value: +"Case-insensitive substring of the lender name, e.g. 'rocket', 'united wholesale', 'wells'. Empty (default) returns the top lenders in sort order."
    • addedInput schema / properties / sort / description
      Added value: +"Result order: volume_desc (default, largest recent-year volume first), volume_asc, name_asc, name_desc, loans_desc (most loans first), rank_asc (best volume rank first)."
    • addedInput schema / properties / state / description
      Added value: +"Two-letter USPS code of the lender's headquarters state, e.g. 'MI'. Empty (default) = all states."
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/destructive, but the description adds material context they cannot: no auth or API key, no PII, concrete rate limits (~60 req/min, 250 calls/day per client IP), the {data, meta} envelope, and the critical rule to never report meta.available=false as zero, with a bounded retry only when cache_status='miss'. That is exactly the kind of disambiguation an agent needs to avoid a wrong 'zero lenders' answer.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then usage, then return shape, then behavior — a sensible ordering with distinct paragraphs. It is dense and the inline enumeration of all nine result fields is somewhat redundant given an output schema exists, which costs it the top score, but no sentence is filler.

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 six-parameter search tool with a rich output schema, the description covers entry conditions, downstream chaining, rollup semantics, rate limits, and the unavailable-data edge case. Nothing an agent needs to call this correctly and interpret results is missing.

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% and each of the six parameters is documented there with defaults, bounds, and enum meanings, so the baseline is 3. The description adds some framing (keys roll up subsidiaries and LEIs; recent_volume is USD originations in the latest HMDA year) but does not elaborate on sort/limit/state/charter usage beyond what the schema already says.

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+resource ('Find HMDA lenders') plus a second capability ('resolve names to canonical lender keys'), and explicitly separates name-search from record-fetch tools in the sibling set. An agent can distinguish this from get_lender_profile or compare_lenders without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit ordering rule ('Call this before any other lender tool'), enumerates three concrete use cases (name-to-key, volume ranking, charter/state listing), and names the exact downstream tools and argument slots (get_lender_profile, get_hmda_product_analytics, get_servicer_analytics mode='transfers', lender_a/lender_b in compare_lenders). It also warns about a failure mode: legal names like 'Rocket Mortgage, LLC' are not keys and yield available=false downstream.

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.

Resources