Skip to main content
Glama

OpenFDA Food Recalls MCP

Get FDA food recall statistics

get_food_recall_stats
Read-onlyIdempotent

Aggregate FDA food recall enforcement counts grouped by classification, status, US state, or recalling firm.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax aggregation buckets to return (default 10).
queryNoOptional keyword filter across product, reason, and firm.
group_byNoAggregation dimension (default "classification").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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 only that results are grouped counts, and omits behavior an agent would care about, such as how empty or filtered-to-nothing queries behave and that bucket counts are capped.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler, leading with the aggregation verb and resource. It is if anything slightly under-sized for the decision-relevant detail it could carry, but nothing in it is wasted.

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?

A simple, all-optional three-parameter tool with full schema descriptions and a clear annotation profile, so the definition is close to sufficient. The main gap is that with no output schema the description does not indicate what a returned bucket looks like (a value plus a count), which would help an agent interpret 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?

At 100% schema coverage the schema already documents limit, query and group_by, including the default of 10 buckets and the default grouping dimension. The description's enumeration of the four grouping dimensions largely restates the enum, adding no new semantics such as how ties or null states are handled.

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 ("Aggregate") and a specific resource ("FDA food recall enforcement counts"), plus the dimensions available for grouping. This clearly separates it from the search_* siblings, which return records rather than counts, 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?

Use is only implied: an agent can infer this is the tool for tallying recalls rather than listing them. There is no explicit when-to-use versus search_food_recalls or search_class_i_food_recalls, and no guidance on when aggregation is inappropriate (e.g. needing individual recall records).

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.