Skip to main content
Glama
Open Data B2B & Compliance MCP Server

Open Data B2B & Compliance MCP Server

search_cpsc_product_recalls

Read-onlyIdempotent

Search official US CPSC consumer product recalls by keyword, retailer, lookback, and minimum severity score to surface hazards, injuries, remedies, and normalized UPC/model data.

Instructions

Search official US CPSC SaferProducts consumer product recalls by keyword, retailer (Amazon, Walmart, Target, Costco), lookback window (daysBack), and minimum severity score. Returns normalized UPCs, models, retailers, hazards, injuries, remedies, and 0-100 recallSeverityScore.

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

Input Schema

NameRequiredDescriptionDefault
queryNoOptional keyword filter across product name, description, hazard, or manufacturer (e.g., "lithium", "magnet", "bouncer").
daysBackNoLookback window in days (1-3650). Default: 30 (keeps payload fast and compact).
retailerNoOptional retailer or marketplace channel filter (e.g., "Amazon", "Walmart", "Target", "Costco").
maxResultsNoMaximum recall alerts to return (1-50 in MCP mode). Default: 10.
minSeverityScoreNoOptional minimum recallSeverityScore (0-100). Default: 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered elsewhere. The description adds that results are normalized (UPCs, models, hazards, remedies) and capped at 1-50 in MCP mode, but says nothing about ordering, pagination, or freshness of the CPSC data. Useful but modest added context against an already rich 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?

A single dense sentence front-loads the verb, source, and filters, followed by the return payload. No filler, no repetition of the title, and every clause carries information an agent can act on.

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?

With no output schema, the description compensates by enumerating returned fields and explaining the 0-100 recallSeverityScore. The main remaining gap is behavior with zero filters and result ordering, which matters because all five parameters are optional. Otherwise the definition is sufficient to call the tool correctly.

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 every parameter is already documented in the input schema, including ranges and defaults. The description restates the same filter names (keyword, retailer, daysBack, severity) without adding format or interpretation details beyond the schema. Baseline 3 applies when the schema does the lifting.

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

Purpose5/5

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

States a specific verb ('Search') and a precisely scoped resource ('official US CPSC SaferProducts consumer product recalls'), then enumerates the available filter dimensions and the returned fields. The named source (US CPSC) is enough to separate it from siblings like search_fda_enforcement_recalls or check_nhtsa_vehicle_recalls without opening any schema.

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 tells the agent what the filters are, but not when to choose this tool versus a different recall source, nor what happens when every parameter is omitted (all params are optional). Usage is implied by the filter list rather than explicitly guided.

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