Skip to main content
Glama

RegDataLab – FDA Compliance Data

Recent warning letters and OAI results by firm

fda_recent_firm_actions
Read-onlyIdempotent

List the firms FDA published a warning letter or an OAI (Official Action Indicated) inspection result for in a period, one row per firm, newest first. Defaults to the last 30 days; date_from/date_to set another period of up to 92 days (for "this month", the month's first day to today). Each row gives the firm, the newest date, the site (FEI and place), each letter's FDA URL or the site's FDA Data Dashboard firm profile, and account_brief_call for the company's full record. Warning letters count by FDA's posted date; OAI results by the day they first appeared in the FDA Data Dashboard. Filter by kinds, product_type or country. These are public records, not a rating of the 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": "fda_recent_firm_actions"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNoWhich records to list: warning_letter, oai_inspection, or both (default)
limitNoFirms to return, newest first (default 50, at most 100)
countryNoTwo-letter country code of the site (e.g. US, IN, CN)
date_toNoLast day of the period (YYYY-MM-DD). Default: today
date_fromNoFirst day of the period (YYYY-MM-DD). Default: 30 days before date_to
product_typeNoProduct type on the record, partial match (e.g. Drugs, Devices, Food)
include_tobaccoNoAlso list tobacco warning letters (default false; they are mostly to retailers)

Output Schema

NameRequiredDescriptionDefault
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, open-world and non-destructive, so the bar is lower, yet the description adds real value beyond them. It explains the asymmetric date semantics (warning letters by FDA posted date, OAI by first appearance in the Data Dashboard), the hard 92-day window cap, and the caveat that these are public records rather than a rating of the firm — exactly the context an agent needs to interpret results correctly.

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 purpose and aggregation grain, then defaults, row contents, date semantics, filters and a disclaimer. It is dense but nearly every sentence carries distinct information; the row-contents enumeration is somewhat redundant with the output schema.

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 7-parameter read tool with a full output schema, the description covers period defaults and limits, temporal semantics per record kind, filter dimensions, and an interpretive caveat. Nothing an agent needs to call it correctly or read its 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 baseline is 3, but the description adds meaning the schema lacks: the 92-day maximum span, the 30-day default period, and the per-kind counting date. Filtering by kinds, product_type and country is restated without much new detail, and the tobacco-retailer note adds interpretive value.

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: list firms with a warning letter or OAI result in a period, aggregated one row per firm, newest first. That firm-level aggregation implicitly separates it from letter-level siblings like fda_search_warning_letters, but no sibling is named explicitly, so the differentiation is inferred rather than stated.

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

Usage Guidelines4/5

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

Gives clear operating context: defaults to the last 30 days, use date_from/date_to for another period, and a concrete recipe for 'this month'. It also points to account_brief_call for the company's full record, which routes the agent onward. It stops short of stating when a per-letter search tool would be the better choice.

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.