Skip to main content
Glama

mtgmon Mortgage Analytics

HMDA lender profile

get_lender_profile
Read-onlyIdempotent

HMDA profile for one lender group: annual origination volume, loan counts, denial rate, national rank and market share, top states with market-share multiples, and loan type / purpose / occupancy / loan-size mix.

Requires a canonical key: call search_lenders and pass the exact name (e.g. 'Rocket/Quicken'). Any other spelling returns meta.available=false with empty lists. Use compare_lenders for two lenders side by side.

Returns data.lender_key, data.name, data.leis, data.current_year, data.previous_year, data.yearly (one row per HMDA year: originated_volume, originated_loans, purchased_volume, purchased_loans, denied_loans, applications_loans, total_funded_volume, avg_loan_size, denial_rate_pct, denial_rate_count_pct, rank, national_volume, market_share_pct), data.top_states {state, volume, loans, previous_volume, previous_loans} and data.state_market_multiples {state, lender_share_pct, market_share_pct, multiple, ...} (top_n rows each), data.loan_type_mix, data.loan_purpose_mix, data.occupancy_mix ({code, label, loans, volume}), and data.loan_size_histogram. Volumes are USD; shares and rates are percent.

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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "lender": "<lender>"
    },
    "name": "get_lender_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_nNoMaximum rows in top_states and state_market_multiples, 1-50 (default 10).
lenderYesCanonical HMDA lender key: the exact `name` value from a search_lenders result, e.g. 'Rocket/Quicken' or 'United Wholesale Mortgage'. Legal names such as 'Rocket Mortgage, LLC' do not match and return meta.available=false.

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. Changed2 schema fields changed
    • addedInput schema / properties / lender / description
      Added value: +"Canonical HMDA lender key: the exact `name` value from a search_lenders result, e.g. 'Rocket/Quicken' or 'United Wholesale Mortgage'. Legal names such as 'Rocket Mortgage, LLC' do not match and return meta.available=false."
    • addedInput schema / properties / top_n / description
      Added value: +"Maximum rows in top_states and state_market_multiples, 1-50 (default 10)."
  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 the safety profile (readOnly, idempotent, non-destructive), and the description goes well beyond them: no auth/API key, no PII, concrete rate limits (about 60 req/min and 250 tool calls/day per client IP), and units (USD volumes, percent shares/rates). It also discloses the failure mode and the correct retry rule — retry only when meta.cache_status is 'miss', otherwise report unavailable — which prevents the classic zero-vs-missing misreport.

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?

Well front-loaded: purpose, then key requirement, then return shape, then behavior. The one inefficiency is the long inline enumeration of every return field, which duplicates the output schema and adds bulk an agent does not need; the requirement, error, and rate-limit sentences all earn their place.

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 read-only lookup with two parameters, everything an agent needs is present: the canonical-key prerequisite and its failure mode, the sibling to use for comparisons, units, rate limits, and how to interpret meta.available and cache_status. The output schema exists, so the return-field listing is redundant rather than necessary, but nothing important 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%, so both `lender` and `top_n` are already documented, and the description largely restates the canonical-key requirement rather than adding new semantics. It does add a worked example and the consequence of a miss ('Rocket/Quicken' vs 'Rocket Mortgage, LLC'), but that overlaps the schema text; baseline 3 is appropriate.

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?

Opens with a specific verb+resource statement ('HMDA profile for one lender group') and immediately enumerates the substantive content: origination volume, denial rate, national rank, market share, top states, and mix breakdowns. It explicitly distinguishes itself from the two nearest siblings, search_lenders (discovery) and compare_lenders (two-lender comparison), so an agent can route without opening a 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?

States a hard prerequisite ('Requires a canonical key: call search_lenders and pass the exact `name`') plus the alternative for a different task ('Use compare_lenders for two lenders side by side'). It also gives an explicit exclusion — any other spelling returns meta.available=false with empty lists — which is exactly the when-not guidance most definitions omit.

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