Skip to main content
Glama

get_consumer_complaints

Read-only

CFPB consumer complaints, a row each, live from CFPB's full database; total_count: CFPB's count for your filters (absent with issue, sub_product or sort_by=date_sent_to_company: those filter only the first 500 rows). An id lookup, or a call while CFPB is down, reads KeyVex's stored copy (source:'cache'). More: keyvex.com/docs/tools/get_consumer_complaints

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

Input Schema

NameRequiredDescriptionDefault
idNo
issueNoSubstring.
limitNoDefault 50.
sinceNoYYYY-MM-DD, inclusive, on sort_by field.
stateNo2-letter.
untilNoYYYY-MM-DD, inclusive, on sort_by field.
companyNoWord match (stored copy: substring).
productNoExact, e.g. 'Mortgage'.
sort_byNoDefault date_received.
sort_orderNoDefault desc.
sub_productNoExact.
submitted_viaNo
timely_responseNoWithin CFPB's 15 days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / properties / company / description
      Previous value: -"Case-insensitive substring against company name (e.g., 'experian', 'jpmorgan', 'capital one')."New value: +"Word match (stored copy: substring)."
    • removedInput schema / properties / id / description
      Removed value: -"Direct lookup by CFPB complaint_id."
    • changedInput schema / properties / issue / description
      Previous value: -"Case-insensitive substring against the issue field (e.g., 'incorrect information', 'fraud', 'debt is not yours')."New value: +"Substring."
    • changedInput schema / properties / limit / description
      Previous value: -"Default 50, max 500."New value: +"Default 50."
    • changedInput schema / properties / product / description
      Previous value: -"Exact product match (e.g., 'Mortgage', 'Debt collection', 'Credit reporting or other personal consumer reports')."New value: +"Exact, e.g. 'Mortgage'."
    • changedInput schema / properties / since / description
      Previous value: -"ISO date (YYYY-MM-DD). Applied to sort_by field."New value: +"YYYY-MM-DD, inclusive, on sort_by field."
    • changedInput schema / properties / state / description
      Previous value: -"Two-letter state code (e.g., 'CA', 'NY'). Case-insensitive."New value: +"2-letter."
    • changedInput schema / properties / sub_product / description
      Previous value: -"Exact sub-product match."New value: +"Exact."
    • removedInput schema / properties / submitted_via / description
      Removed value: -"Channel filter."
    • changedInput schema / properties / timely_response / description
      Previous value: -"Filter to complaints with timely company response (within CFPB's 15-day window) or not."New value: +"Within CFPB's 15 days."
    • changedInput schema / properties / until / description
      Previous value: -"ISO date (YYYY-MM-DD)."New value: +"YYYY-MM-DD, inclusive, on sort_by field."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so safety is covered. The description adds real behavioral context beyond them: silent fallback to a cached copy with a source marker, and the important limitation that certain filters apply only to the first 500 rows and drop total_count entirely.

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?

Two dense sentences plus a docs pointer, with the core capability stated first and the caveats after. Nothing is padded, though the compressed phrasing around total_count takes a re-read to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter, no-required-arg read tool with no output schema, the description covers the two things an agent could get wrong — cache fallback and the 500-row/total_count interaction. It stops short of indicating what fields a complaint row carries, which would help an agent interpret results.

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?

With 85% schema description coverage the schema already carries most param meaning, so baseline 3 applies. The description does add genuinely new semantics: it names which filters (issue, sub_product, sort_by=date_sent_to_company) suppress total_count because they only filter the first 500 rows, and it notes the stored-copy substring vs. word-match difference for company.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"CFPB consumer complaints, a row each, live from CFPB's full database" gives a specific resource, result granularity (one complaint per row), and provenance (live CFPB database). It does not explicitly contrast with any sibling, but the sibling names are all distinct datasets, so mis-selection is unlikely.

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

Usage Guidelines3/5

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

The description gives useful situational cues — an id lookup or a CFPB outage yields the stored copy with source:'cache' — but it never states plainly when to prefer a complaint lookup versus other data tools, nor prerequisites such as needing an id for single-record retrieval. Usage is implied, not prescribed.

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