Skip to main content
Glama

FHA denial-reason shares

get_denial_reason_shares
Read-onlyIdempotent

ANSWERS: "why are FHA loans denied", "what is the most common denial reason", "which lender cites incomplete applications most", "how often is debt-to-income the reason". PARAM: optional lender; omit for cross-lender medians. Returns median and maximum share of each HMDA denial reason across the 95 of the 100 largest lenders that report reasons, and which lender carries the highest share of each. Reason fields are not a partition; shares need not sum to 100. NOT FOR: why a particular application was denied. Historical observation computed from the public CFPB HMDA 2025 record (actions 1,2,3; loan_type 2). Not a prediction about any individual application. Attribution: FinanceRateCalc, CC BY 4.0.

Input Schema

NameRequiredDescriptionDefault
lenderNoLender name or slug, optional

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description adds substantial context beyond them: the data source (public CFPB HMDA 2025 record, actions 1,2,3; loan_type 2), the sampling frame (95 of the 100 largest lenders that report reasons), and the semantic caveat that reason fields are not a partition and shares need not sum to 100. It also clarifies the output is an observation, not a prediction.

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 the questions answered and the single parameter, followed by the exclusion and provenance. Dense but each sentence carries information; the licensing/attribution line is boilerplate but required for use of the source data.

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 still specifies the returned quantities (median and max share per reason, top lender per reason) and the key interpretation caveat about shares not summing to 100. An agent has everything needed 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and there is a single optional param, so the baseline is 3. The description adds meaning beyond the schema by explaining the effect of omitting lender (cross-lender medians) versus supplying one, which an agent would otherwise have to infer.

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?

The description opens with concrete questions it answers and then states precisely what it returns: median and maximum share of each HMDA denial reason across the reporting largest lenders, plus the lender carrying the highest share of each. This is a specific verb+resource and distinguishes it from siblings like get_lender_denial_stats and get_state_denial_stats.

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?

It gives explicit usage: pass optional lender, omit for cross-lender medians. It also states an exclusion ('NOT FOR: why a particular application was denied') and the analytical boundary (historical observation, not a prediction about any individual application). Nothing about when to choose this over siblings is left to inference.

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.