Skip to main content
Glama

CFPB Consumer Complaints MCP

Get CFPB complaint record by ID

get_complaint_by_id
Read-onlyIdempotent

Look up a single public CFPB consumer complaint by its numeric complaint ID, returning full metadata and untruncated consumer narrative if published.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "complaint_id": "<complaint_id>"
    },
    "name": "get_complaint_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
complaint_idYesNumeric CFPB complaint ID (e.g. 9985355).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior — it returns full metadata and the untruncated narrative, and the narrative is present only 'if published' — though it says nothing about error/not-found behavior for a missing ID. That addition is real but modest against an already-declared annotation set.

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?

One front-loaded sentence with zero filler; the return-shape detail is packed into the same clause rather than a separate sentence.

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 single-parameter read tool with full annotation coverage, this is nearly complete: it says what is fetched and roughly what comes back, including the conditional narrative. Missing only failure-mode behavior (what happens when the ID does not exist), which is minor given no output schema exists to explain it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the parameter carries its own description with an example (9985355). The description reinforces that the ID is numeric and identifies the record type, matching rather than contradicting the schema; no extra syntax or edge-case guidance (e.g. string vs integer acceptance) is added, so it sits at the baseline-plus level.

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 verb ('Look up') and resource ('a single public CFPB consumer complaint by its numeric complaint ID'), and the 'single ... by ID' phrasing implicitly separates it from the search_* siblings. It stops short of naming any alternative, so it is not a full 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 only: 'by its numeric complaint ID' signals the direct-lookup case rather than browsing or searching. There is no explicit when-to-use/when-not statement and no pointer to search_complaints for agents who lack an ID.

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.