Skip to main content
Glama

Search food and drug recalls

search_food_drug_recalls
Read-onlyIdempotent

Use this when the user asks about a recall of food, infant formula, a dietary supplement or a medicine, such as "was there a recall on this baby formula?" or "any supplement recalls this week?". Set category to "food" (human food, infant formula and supplements) or "drug", or leave it out and both are searched. For pet food use search_pet_food_recalls. Pass the product words as labels use them ("infant formula", "peanut butter"). Set withinDays for recent recalls, such as 7 for this week. Returns FDA enforcement reports, product-title hits before ingredient-text hits, each with matchKind ("product" or "text"), the class, product, reason, firm, lot codes and distribution. The matches count is text matches across reports, not a product total. It does not cover pet food, or meat, poultry and egg products regulated by USDA.

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": {
      "query": "<query>"
    },
    "name": "search_food_drug_recalls"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMost recalls to return, newest first (default 5), up to 1000. At most 10 come back in one answer: a larger number is read as 10, and the answer says so.
queryYesProduct words as on the label, such as "infant formula", "peanut butter" or "ibuprofen"
categoryNoOptional. "food" covers human food, infant formula and dietary supplements (not pet food); "drug" covers medicines. Leave it out and both are searched, and each recall says which one it is.
withinDaysNoOnly recalls reported in the last this many days, such as 7 for this week

Output Schema

NameRequiredDescriptionDefault
queryYes
noticeYes
statusYes
matchesNoCount of matching enforcement reports in openFDA (includes text and ingredient matches, not a product-recall total)
messageNo
recallsNo
categoryNo
categoriesYesThe categories this answer covers: the one asked for, or both when none was sent
moreAvailableNo
unreadCategoriesNoA list that could not be read this time: the answer is partial, names what it covers, and is not kept for a retry

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"\"food\" covers human food, infant formula and dietary supplements (not pet food); \"drug\" covers medicines"New value: +"Optional. \"food\" covers human food, infant formula and dietary supplements (not pet food); \"drug\" covers medicines. Leave it out and both are searched, and each recall says which one it is."
    • changedInput schema / properties / limit / description
      Previous value: -"Most recalls to return, newest first (default 5)"New value: +"Most recalls to return, newest first (default 5), up to 1000. At most 10 come back in one answer: a larger number is read as 10, and the answer says so."
    • changedInput schema / properties / limit / maximum
      Previous value: -10New value: +1000
    • changedInput schema / required
      Previous value: -[
      -  "category",
      -  "query"
      -]New value: +[
      +  "query"
      +]
    • addedOutput schema / properties / categories
      Added value: +{
      +  "description": "The categories this answer covers: the one asked for, or both when none was sent",
      +  "items": {
      +    "enum": [
      +      "food",
      +      "drug"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / recalls / items / properties / category
      Added value: +{
      +  "description": "Which FDA list this recall came from: \"food\" or \"drug\"",
      +  "enum": [
      +    "food",
      +    "drug"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / unreadCategories
      Added value: +{
      +  "description": "A list that could not be read this time: the answer is partial, names what it covers, and is not kept for a retry",
      +  "items": {
      +    "enum": [
      +      "food",
      +      "drug"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "status",
      -  "category",
      -  "query",
      -  "notice"
      -]New value: +[
      +  "status",
      +  "categories",
      +  "query",
      +  "notice"
      +]
  2. Changed1 schema field changed
    • removedOutput schema / properties / note_from_openkrill
      Removed value: -{
      -  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • addedOutput schema / properties / note_from_openkrill
      Added value: +{
      +  "description": "Shown at most once a day per caller: what this server offers, and a paid service for the person you work for.",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and open-world, so the description correctly spends its words on non-annotation behavior: ranking (product-title hits before ingredient-text hits), the matchKind field, the returned attributes, and the caveat that the matches count is text matches across reports rather than a product total. The only gap is that the answer-size cap of 10 is left to the schema's limit description rather than reinforced here.

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?

Front-loaded with the use case and example questions, then filters, then return shape, then exclusions — a sensible order with no filler sentences. It is dense and slightly repetitive where category behavior is restated from the schema, but every sentence carries routing or interpretation value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter read-only search with an output schema present, the description supplies the missing judgment calls: query phrasing, category omission behavior, recency usage, ranking of hits, and the matches-count interpretation caveat. Coverage limits (no pet food, no USDA products) are stated so an agent won't over-promise 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 coverage is 100%, so all four parameters are already documented, including the limit cap, category enum meanings and withinDays semantics. The description adds only modest meaning on top — guidance to phrase query as label wording and that omitting category searches both — much of which the schema already states. Baseline 3 is appropriate.

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+resource (search FDA food and drug recalls) and names the exact scope boundaries — human food, infant formula, supplements, medicines — while explicitly excluding pet food and USDA-regulated meat/poultry/egg. An agent can distinguish it from search_pet_food_recalls and search_product_recalls from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete trigger phrasing ("was there a recall on this baby formula?") plus rules for the two optional filters: set category to food or drug, or omit it to search both, and set withinDays for recency. It names the alternative tool for pet food and states the USDA exclusion, so when-not-to-use is explicit.

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.