Skip to main content
Glama
openfda-device-recalls-enforcement-mcp

openfda-device-recalls-enforcement-mcp

Get FDA medical device recall statistics

get_device_recall_stats
Read-onlyIdempotent

Aggregate FDA medical device recall counts by recalling firm, root cause, recall status, product code, or device class to identify trends and compare enforcement patterns.

Instructions

Aggregate FDA medical device recall counts grouped by recalling firm, root cause, recall status, product code, or device class.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax aggregation buckets to return (default 10).
queryNoOptional device or recalling firm filter.
group_byNoAggregation dimension (default "recalling_firm").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/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 that the operation aggregates rather than lists, which is useful context beyond the annotations, but it says nothing about how counts are computed, whether results are capped by the limit parameter in a meaningful way, or freshness of the FDA data.

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 sentence that front-loads the aggregation verb and the resource, then lists the grouping options compactly. Nothing is wasted and there is no redundant preamble.

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 three-parameter, no-output-schema aggregation tool, the description conveys enough: what is counted, what it can be grouped by, and implicitly what the result looks like (counts per bucket). A brief note on what the count represents or how filtered queries interact with grouping would make it fully complete.

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 three parameters including the group_by enum values and the limit default. The description's enumeration of grouping dimensions duplicates the enum rather than adding format or behavioral meaning, so the baseline 3 applies.

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 and resource: aggregate FDA medical device recall counts, with the grouping dimensions enumerated. This clearly distinguishes it from the sibling search/get tools that return individual recall records, though no sibling is named explicitly.

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 counting/summarizing rather than retrieving individual recalls – but there is no explicit statement of when to prefer it over search_device_recalls or the by-number lookups, and no exclusions or prerequisites.

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