Skip to main content
Glama
openfda-drug-enforcement-mcp

openfda-drug-enforcement-mcp

Get FDA drug recall enforcement statistics

get_drug_recall_stats
Read-onlyIdempotent

Aggregates FDA drug recall enforcement counts by recalling firm, hazard classification, status, state, or voluntary/mandated type to summarize recall patterns.

Instructions

Aggregate FDA drug recall enforcement counts grouped by recalling firm, hazard classification, status, state, or voluntary/mandated.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax aggregation buckets to return (default 10).
queryNoOptional drug, ingredient, or 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 readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is fully covered by structured data. The description adds nothing beyond that — no note on how buckets are ordered, what happens when a filter matches nothing, or whether counts are truncated by the limit. Some extra behavioral context would be welcome, but the annotation coverage keeps this at a minimum-viable 3.

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 that states the operation, the resource, and the grouping options with zero filler. Nothing is redundant or buried.

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, zero-required aggregation tool with no output schema, the description covers what is being counted and how it is grouped, which is the essential information. The main remaining gap is that the return shape (bucket label plus count) is only implicit in the word 'counts', and there is no guidance on interpretation when the limit truncates results.

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%, with each of the three parameters documented including the enum values and the default for group_by, so the baseline is 3. The description only restates the grouping dimensions already enumerated in the schema and says nothing about filter syntax for 'query' or the truncation behavior of 'limit'.

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 gives a specific verb+resource pair ('Aggregate FDA drug recall enforcement counts') plus the five available grouping dimensions, which is enough to distinguish it from a lookup or detail tool. It stops short of naming the sibling search tools it contrasts with, so an agent must infer that aggregation versus listing is the dividing line.

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 only implied: the word 'Aggregate' signals this is for counting/breakdown questions rather than retrieving individual recall records. There is no explicit 'use this instead of search_drug_recalls when...' guidance and no note on when grouping by one dimension is preferable to another.

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