Cfpb Top Companies
cfpb_top_companiesFind companies with the most complaints in a date range. Returns ranked list with company names and complaint counts.
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": {
"limit": 10,
"end_date": "2024-01-01",
"start_date": "2023-01-01"
},
"name": "cfpb_top_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of top companies to return (default 10) | |
| product | No | Optional product filter (e.g., "Mortgage", "Credit card") | |
| end_date | No | End date in YYYY-MM-DD format | |
| start_date | No | Start date in YYYY-MM-DD format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | Yes | ||
| top_companies | Yes | Ranked list of companies by complaint count | |
| total_complaints | Yes | total_complaints (object for aggregations, number for scalar count). |