Skip to main content
Glama

CFPB Consumer Complaints MCP

Get CFPB complaint trend aggregations

get_complaint_trends
Read-onlyIdempotent

Compute aggregate CFPB complaint counts grouped by product, issue, company, company response, timely response, and submission channel for any filter combination.

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_complaint_trends"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoOptional free-text search term to scope aggregations.
stateNoOptional 2-letter U.S. state code.
companyNoOptional company name filter.
productNoOptional product category filter.
date_received_maxNoOptional latest received date in YYYY-MM-DD format.
date_received_minNoOptional earliest received date in YYYY-MM-DD format.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so safety is covered. The description adds the grouping dimensions, but leaves a real ambiguity: whether all six groupings are returned together or one is selected, and whether results are ordered or truncated. No rate-limit or pagination context either.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with the verb, resource, and grouping scope in the first clause. Nothing redundant.

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

Completeness3/5

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

There is no output schema, so the description carries the burden of explaining the return shape, and it does not: the structure of the aggregation result and how the six grouping dimensions map to the response are unstated. Adequate for identifying the tool, incomplete for predicting what comes back.

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 coverage is 100%, so all six filters are already documented in the schema. The description adds one piece of meaning beyond it — that filters can be combined in 'any filter combination' — but adds nothing about grouping semantics or how the group-by dimension is selected.

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?

States a specific operation ('Compute aggregate CFPB complaint counts') and enumerates the six grouping dimensions, which clearly separates it from sibling search/retrieval tools like search_complaints and get_complaint_by_id. It stops short of naming which sibling to prefer, so it does not reach a 5.

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?

Usage is implied by the word 'aggregate' — an agent can infer this is for counts rather than raw records — but there is no explicit when-to-use or when-not-to-use statement, and no sibling is named as the alternative for record-level lookups.

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.