Skip to content
Eden Engine

Mortgage Application and Loan Counts by State, County, MSA or Lender (HMDA)

hmda/aggregations

Counts and total loan amounts from Home Mortgage Disclosure Act (HMDA) filings for one filing year (2018 to 2025), for a state, county, metropolitan area or lender (LEI) subset. Results are grouped by the filters you give: ask for action taken 1 and races Asian,White and get one row per race, each with a count and a total amount. At least one geography or lei is needed alongside the required year and actions_taken. Data from the Consumer Financial Protection Bureau and FFIEC, passed through unmodified and served by Eden Engine; not an official CFPB product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.

Data source

Consumer Financial Protection Bureau

Data from the Consumer Financial Protection Bureau (CFPB) and the Federal Financial Institutions Examination Council (FFIEC), Home Mortgage Disclosure Act (HMDA) data. Served by Eden Engine; not an official CFPB product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "hmda/aggregations" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "hmda/aggregations" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "hmda/aggregations", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "hmda/aggregations", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 20, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "years",
    "actions_taken"
  ],
  "properties": {
    "leis": {
      "type": "string",
      "pattern": "^([A-Za-z0-9]{20})(,([A-Za-z0-9]{20})){0,9}$",
      "description": "Legal Entity Identifiers (20 characters) of financial institutions, comma separated. Can be combined with a geography."
    },
    "races": {
      "type": "string",
      "pattern": "^(Asian|Native Hawaiian or Other Pacific Islander|Free Form Text Only|Race Not Available|American Indian or Alaska Native|Black or African American|2 or more minority races|White|Joint)(,(Asian|Native Hawaiian or Other Pacific Islander|Free Form Text Only|Race Not Available|American Indian or Alaska Native|Black or African American|2 or more minority races|White|Joint)){0,8}$",
      "description": "Applicant race, comma separated, from: Asian, Native Hawaiian or Other Pacific Islander, Free Form Text Only, Race Not Available, American Indian or Alaska Native, Black or African American, 2 or more minority races, White, Joint. Each race named becomes its own row in the result."
    },
    "sexes": {
      "type": "string",
      "pattern": "^(Male|Female|Joint|Sex Not Available)(,(Male|Female|Joint|Sex Not Available)){0,3}$",
      "description": "Applicant sex, comma separated, from: Male, Female, Joint, Sex Not Available."
    },
    "years": {
      "enum": [
        "2018",
        "2019",
        "2020",
        "2021",
        "2022",
        "2023",
        "2024",
        "2025"
      ],
      "type": "string",
      "description": "The filing year, 2018 to 2025, for example 2022."
    },
    "msamds": {
      "type": "string",
      "pattern": "^([0-9]{5})(,([0-9]{5})){0,9}$",
      "description": "Five-digit metropolitan statistical area or division codes, comma separated."
    },
    "states": {
      "type": "string",
      "pattern": "^([A-Z]{2})(,([A-Z]{2})){0,9}$",
      "description": "Two-letter state or territory abbreviations, comma separated, for example DC or MD,DC."
    },
    "counties": {
      "type": "string",
      "pattern": "^([0-9]{5})(,([0-9]{5})){0,9}$",
      "description": "Five-digit county FIPS codes, comma separated. Keep leading zeros."
    },
    "loan_types": {
      "type": "string",
      "pattern": "^([1-4])(,([1-4])){0,3}$",
      "description": "Loan type code or codes, comma separated, from 1 to 4; 1 is a conventional loan."
    },
    "actions_taken": {
      "type": "string",
      "pattern": "^([1-8])(,([1-8])){0,7}$",
      "description": "Action taken code or codes, comma separated, from 1 to 8, for example 1 (loan originated) or 5,6. Required: the service refuses an aggregation with no data filter, and this is the one filter that is always available."
    },
    "lien_statuses": {
      "type": "string",
      "pattern": "^([12])(,([12])){0,1}$",
      "description": "Lien status code or codes, comma separated: 1 or 2."
    },
    "loan_purposes": {
      "type": "string",
      "pattern": "^(1|2|31|32|4|5)(,(1|2|31|32|4|5)){0,5}$",
      "description": "Loan purpose code or codes, comma separated, from: 1, 2, 31, 32, 4, 5."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "results"
  ],
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "sum": {
            "type": "number",
            "description": "Total loan amount of the group in US dollars, as a number that may use exponent notation."
          },
          "count": {
            "type": "integer",
            "description": "Number of loan applications or loans in the group."
          },
          "races": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "actions_taken": {
            "type": "string"
          }
        },
        "description": "One group: count, sum and the filter values that define it.",
        "additionalProperties": true
      },
      "description": "One row per combination of the filter values requested."
    }
  },
  "description": "Aggregated rows under `results`, one per combination of the filters you set. A row carries `count`, `sum` and the value of each filter that grouped it.",
  "additionalProperties": true
}