Skip to main content
Glama
lzinga

US Government Open Data MCP

by lzinga

cfpb_complaint_aggregations

Read-onlyIdempotent

Aggregate CFPB complaint counts by product, company, state, or issue to rank companies, identify top issues, and compare regions.

Instructions

Get complaint counts grouped by a field (product, company, state, issue, etc.). Useful for ranking companies by complaint volume, identifying top issues, or comparing states. Aggregation fields: 'product', 'company', 'state', 'issue', 'company_response', 'timely', 'submitted_via', 'tags'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldYesField to group by
issueNoFilter by issue type
stateNoFilter by state: 'CA', 'TX', 'NY'
companyNoFilter by company: 'Wells Fargo', 'Bank of America', etc.
productNoFilter by product: 'Mortgage', 'Debt collection', etc.
date_received_maxNoEnd date (YYYY-MM-DD)
date_received_minNoStart date (YYYY-MM-DD)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2026.4.11
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv2026.3.9

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds the aggregation behavior — returning counts grouped by a field — but doesn't disclose response shape, group limits, or whether date filters apply to the aggregation. This is adequate but not rich.

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?

Two sentences, with the core behavior front-loaded in the first four words. Every sentence earns its place: the first states what it does, the second gives use cases and enumerates valid fields. No fluff.

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 should help an agent predict the response shape, but it only says 'counts grouped by a field.' Missing details like sorting, limits, or exact result format are absent. It's adequate for a simple call, but an agent would be guessing at response structure.

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 description coverage is 100%, so the schema already documents all parameters and the field enum. The description mostly repeats the enum values and gives example use cases, adding little semantic information beyond what the schema provides. Baseline 3 is appropriate.

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?

The description clearly states the verb and resource: 'Get complaint counts grouped by a field,' and gives concrete examples of output (product, company, state, issue). It is distinct enough to understand, but it does not explicitly contrast itself with related siblings like cfpb_complaint_trends or cfpb_state_complaints, so it stops short of full differentiation.

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

Usage Guidelines4/5

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

The description provides clear usage context: 'useful for ranking companies by complaint volume, identifying top issues, or comparing states.' This tells an agent when the tool is appropriate, though it doesn't mention when not to use it or point to a preferred alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools