Skip to main content
Glama

RegDataLab – FDA Compliance Data

Search inspections

fda_inspections
Read-onlyIdempotent

Find FDA inspections by company, FEI, date or classification. Returns available inspection records, newest first, with pagination (offset, total_count, has_more). company_name also matches the company's known aliases (e.g. Pfizer finds Hospira sites); each row's company_match says which. NAI means No Action Indicated: no objectionable conditions or practices were found during the inspection. VAI means Voluntary Action Indicated: objectionable conditions or practices were found, but the agency is not prepared to take or recommend any administrative or regulatory action. OAI means Official Action Indicated: regulatory and/or administrative actions are recommended. These outcomes describe the recorded inspection, not current site safety. Rows with a known FEI include firm_profile_url, the FDA Data Dashboard firm profile (https://datadashboard.fda.gov/oii/firmprofile.htm?FEIi={fei_number}). FDA has no page per inspection; fda_dashboard_links gives the dashboard inspection search (https://datadashboard.fda.gov/ora/cd/inspections.htm).

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

Input Schema

NameRequiredDescriptionDefault
cityNoCity name (exact match)
limitNoMax results to return (1-500)
stateNoState code (e.g., CA, NY)
offsetNoResult offset for pagination (0-10000)
countryNoCountry code (e.g., US, DE)
date_toNoEnd date for inspection_end_date range (YYYY-MM-DD)
date_fromNoStart date for inspection_end_date range (YYYY-MM-DD)
fei_numberNoFDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)
company_nameNoCompany name (fuzzy match). Also matches the company's known aliases
classification_codeNoInspection classification code

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "description": "FDA inspections with classification (NAI, VAI or OAI) and end date, newest first. Dates are YYYY-MM-DD",
      -    "properties": {
      -      "company_matching": {
      -        "additionalProperties": {},
      -        "description": "Present when company_name was given",
      -        "properties": {
      -          "alias_names_searched": {
      -            "description": "Known alias spellings searched besides the name",
      -            "type": "number"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "alias_names_searched",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "coverage_note": {
      -        "description": "What was searched; when nothing matched, says no matching records does not establish safety",
      -        "type": "string"
      -      },
      -      "data_freshness": {
      -        "additionalProperties": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "as_of_date": {
      -              "type": "string"
      -            },
      -            "executed_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "executed_at",
      -            "as_of_date"
      -          ],
      -          "type": "object"
      -        },
      -        "description": "Last successful import per dataset; state it in answers",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "fda_dashboard_links": {
      -        "additionalProperties": {},
      -        "description": "FDA Data Dashboard firm profile pattern and search pages",
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "next_step": {
      -        "description": "Present when nothing matched: how to widen the search",
      -        "type": "string"
      -      },
      -      "no_filter_note": {
      -        "description": "Present when no filter was given and the newest inspections are shown",
      -        "type": "string"
      -      },
      -      "notices": {
      -        "description": "Account notices about this key, such as a low balance; show them to the user",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "pagination": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "has_more": {
      -            "type": "boolean"
      -          },
      -          "limit": {
      -            "type": "number"
      -          },
      -          "offset": {
      -            "type": "number"
      -          },
      -          "total_count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "offset",
      -          "limit",
      -          "total_count"
      -        ],
      -        "type": "object"
      -      },
      -      "results": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "classification_code": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "NAI, VAI or OAI"
      -            },
      -            "company_match": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "With company_name: company_name (name match) or company_alias (one of the company's known aliases)"
      -            },
      -            "fei_number": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "firm_profile_url": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "inspection_end_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "inspection_id": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "legal_name": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "product_type": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "project_area": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "see_also": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "description": "Related tools and what each adds",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "sources": {
      -        "description": "fda.gov pages behind this result (letters, 483s, import alerts, firm profiles, FDA search pages), documents first; cite these links in the answer",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "title": {
      -              "type": "string"
      -            },
      -            "url": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "title",
      -            "url"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "results",
      -      "fda_dashboard_links",
      -      "see_also",
      -      "data_freshness",
      -      "coverage_note"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      -    "properties": {
      -      "attempted_tool": {
      -        "type": "string"
      -      },
      -      "auth_required": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "signup_url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "auth_required",
      -      "attempted_tool",
      -      "message",
      -      "signup_url"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "FDA inspections with classification (NAI, VAI or OAI) and end date, newest first. Dates are YYYY-MM-DD",
      +    "properties": {
      +      "company_matching": {
      +        "additionalProperties": {},
      +        "description": "Present when company_name was given",
      +        "properties": {
      +          "alias_names_searched": {
      +            "description": "Known alias spellings searched besides the name",
      +            "type": "number"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "alias_names_searched",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "coverage_note": {
      +        "description": "What was searched; when nothing matched, says no matching records does not establish safety",
      +        "type": "string"
      +      },
      +      "data_freshness": {
      +        "additionalProperties": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "as_of_date": {
      +              "type": "string"
      +            },
      +            "executed_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "executed_at",
      +            "as_of_date"
      +          ],
      +          "type": "object"
      +        },
      +        "description": "Last successful import per dataset; state it in answers",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "fda_dashboard_links": {
      +        "additionalProperties": {},
      +        "description": "FDA Data Dashboard firm profile pattern and search pages",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "next_step": {
      +        "description": "Present when nothing matched: how to widen the search",
      +        "type": "string"
      +      },
      +      "no_filter_note": {
      +        "description": "Present when no filter was given and the newest inspections are shown",
      +        "type": "string"
      +      },
      +      "notices": {
      +        "description": "Account notices about this key, such as a low balance; show them to the user",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "pagination": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "has_more": {
      +            "type": "boolean"
      +          },
      +          "limit": {
      +            "type": "number"
      +          },
      +          "offset": {
      +            "type": "number"
      +          },
      +          "total_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "offset",
      +          "limit",
      +          "total_count"
      +        ],
      +        "type": "object"
      +      },
      +      "results": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "classification_code": {
      +              "description": "NAI, VAI or OAI",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "company_match": {
      +              "description": "With company_name: company_name (name match) or company_alias (one of the company's known aliases)",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fei_number": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "firm_profile_url": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "inspection_end_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "inspection_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "legal_name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "product_type": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "project_area": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "see_also": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Related tools and what each adds",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "sources": {
      +        "description": "fda.gov pages behind this result (letters, 483s, import alerts, firm profiles, FDA search pages), documents first; cite these links in the answer",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "title": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "title",
      +            "url"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "results",
      +      "fda_dashboard_links",
      +      "see_also",
      +      "data_freshness",
      +      "coverage_note"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      +    "properties": {
      +      "attempted_tool": {
      +        "type": "string"
      +      },
      +      "auth_required": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "signup_url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "auth_required",
      +      "attempted_tool",
      +      "message",
      +      "signup_url"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed7 schema fields changed
    • changedInput schema / properties / company_name / description
      Previous value: -"Company name (fuzzy match)"New value: +"Company name (fuzzy match). Also matches the company's known aliases"
    • addedInput schema / properties / fei_number / anyOf
      Added value: +[
      +  {
      +    "maxLength": 40,
      +    "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$",
      +    "type": "string"
      +  },
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  }
      +]
    • changedInput schema / properties / fei_number / description
      Previous value: -"FDA Establishment Identifier (FEI number)"New value: +"FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
    • removedInput schema / properties / fei_number / pattern
      Removed value: -"^\\d{1,10}$"
    • removedInput schema / properties / fei_number / type
      Removed value: -"string"
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Result offset for pagination (0-10000)",
      +  "maximum": 10000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "description": "FDA inspections with classification (NAI, VAI or OAI) and end date, newest first. Dates are YYYY-MM-DD",
      +          "properties": {
      +            "company_matching": {
      +              "additionalProperties": {},
      +              "description": "Present when company_name was given",
      +              "properties": {
      +                "alias_names_searched": {
      +                  "description": "Known alias spellings searched besides the name",
      +                  "type": "number"
      +                },
      +                "note": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "alias_names_searched",
      +                "note"
      +              ],
      +              "type": "object"
      +            },
      +            "coverage_note": {
      +              "description": "What was searched; when nothing matched, says no matching records does not establish safety",
      +              "type": "string"
      +            },
      +            "data_freshness": {
      +              "additionalProperties": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "as_of_date": {
      +                    "type": "string"
      +                  },
      +                  "executed_at": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "executed_at",
      +                  "as_of_date"
      +                ],
      +                "type": "object"
      +              },
      +              "description": "Last successful import per dataset; state it in answers",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "fda_dashboard_links": {
      +              "additionalProperties": {},
      +              "description": "FDA Data Dashboard firm profile pattern and search pages",
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "next_step": {
      +              "description": "Present when nothing matched: how to widen the search",
      +              "type": "string"
      +            },
      +            "no_filter_note": {
      +              "description": "Present when no filter was given and the newest inspections are shown",
      +              "type": "string"
      +            },
      +            "notices": {
      +              "description": "Account notices about this key, such as a low balance; show them to the user",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "pagination": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "has_more": {
      +                  "type": "boolean"
      +                },
      +                "limit": {
      +                  "type": "number"
      +                },
      +                "offset": {
      +                  "type": "number"
      +                },
      +                "total_count": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "offset",
      +                "limit",
      +                "total_count"
      +              ],
      +              "type": "object"
      +            },
      +            "results": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "classification_code": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "NAI, VAI or OAI"
      +                  },
      +                  "company_match": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "With company_name: company_name (name match) or company_alias (one of the company's known aliases)"
      +                  },
      +                  "fei_number": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "firm_profile_url": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "inspection_end_date": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "inspection_id": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "legal_name": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "product_type": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "project_area": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "see_also": {
      +              "additionalProperties": {
      +                "type": "string"
      +              },
      +              "description": "Related tools and what each adds",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "sources": {
      +              "description": "fda.gov pages behind this result (letters, 483s, import alerts, firm profiles, FDA search pages), documents first; cite these links in the answer",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "title": {
      +                    "type": "string"
      +                  },
      +                  "url": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "title",
      +                  "url"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            }
      +          },
      +          "required": [
      +            "results",
      +            "fda_dashboard_links",
      +            "see_also",
      +            "data_freshness",
      +            "coverage_note"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      +          "properties": {
      +            "attempted_tool": {
      +              "type": "string"
      +            },
      +            "auth_required": {
      +              "const": true,
      +              "type": "boolean"
      +            },
      +            "message": {
      +              "type": "string"
      +            },
      +            "signup_url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "auth_required",
      +            "attempted_tool",
      +            "message",
      +            "signup_url"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description adds substantial context beyond them: newest-first ordering, the pagination contract (offset, total_count, has_more), alias-based company matching, and an explicit caveat that NAI/VAI/OAI describe the recorded inspection rather than current site safety. It also discloses that FDA has no per-inspection page, which pre-empts a dead-end lookup.

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?

Purpose and filters are front-loaded, then matching behavior, then the classification glossary, then link/URL details — a sensible ordering with no filler sentences. The three-code glossary and the dashboard/firm-profile URL templates are long, and some of that overlaps with the output schema, but each sentence carries interpretable information.

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 10-parameter, all-optional search tool with an output schema, this covers the remaining ambiguity: ordering, pagination fields, alias resolution, classification semantics, and where to go for records the API cannot link to. Nothing an agent needs in order to call it correctly or interpret results is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining that company_name is fuzzy and resolves aliases (Pfizer finds Hospira sites) with a per-row company_match indicator, and by defining the NAI/VAI/OAI enum values in substantive terms. It still leaves the date range, geography filters, and limit/offset bounds entirely to the schema.

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 opening sentence states a specific verb and resource ('Find FDA inspections') plus the searchable dimensions (company, FEI, date, classification), which is enough to distinguish this from the many fda_search_* siblings that cover other datasets. It does not explicitly name a neighboring tool it competes with, so it stops just short of a 5.

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 stated filters rather than spelled out: there is no 'use this when...' or 'do not use for...' guidance against any of the ~30 sibling search tools. The only routing information is a pointer to fda_dashboard_links for the dashboard inspection search, which is a companion-link helper rather than an alternative data source.

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.