Skip to main content
Glama

RegDataLab – FDA Compliance Data

Facility compliance dossier

fda_facility_dossier
Read-onlyIdempotent

Review inspection, citation, Form 483 (OII reading room), warning letter, import alert and recall evidence for one FEI. Site counts use only this FEI and the facility's own name; matches on the registrant or owner-operator (parent) name are returned separately under company_level_context and are not site evidence. Returns source records, dates, matching limits and freshness. No matching records does not establish 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}).

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": {
      "fei": "<fei>"
    },
    "name": "fda_facility_dossier"
  }
}

Input Schema

NameRequiredDescriptionDefault
feiYesFDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)
evidence_limitNoNumber of recent evidence rows to return per evidence section

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": "Inspection, citation, Form 483, warning letter, import and recall evidence for one FEI, with site-only counts and parent-company context kept apart. Dates are YYYY-MM-DD",
      -    "properties": {
      -      "company_level_context": {
      -        "additionalProperties": {},
      -        "description": "Records matching the registrant or owner-operator (parent) name. Not evidence for this site",
      -        "properties": {
      -          "import_alerts": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "recent": {
      -                "items": {
      -                  "additionalProperties": {},
      -                  "properties": {},
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "total_count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "total_count",
      -              "recent"
      -            ],
      -            "type": "object"
      -          },
      -          "matched_names": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "recalls": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "recent": {
      -                "items": {
      -                  "additionalProperties": {},
      -                  "properties": {},
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "total_count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "total_count",
      -              "recent"
      -            ],
      -            "type": "object"
      -          },
      -          "warning_letters": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "recent": {
      -                "items": {
      -                  "additionalProperties": {},
      -                  "properties": {},
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "total_count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "total_count",
      -              "recent"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "matched_names",
      -          "note",
      -          "warning_letters",
      -          "import_alerts",
      -          "recalls"
      -        ],
      -        "type": "object"
      -      },
      -      "dossier_summary": {
      -        "additionalProperties": {},
      -        "description": "Site-level counts only; parent-company matches are under company_level_context",
      -        "properties": {
      -          "import_alerts": {
      -            "description": "Import alert entries matching the facility name",
      -            "type": "number"
      -          },
      -          "import_refusals": {
      -            "type": "number"
      -          },
      -          "last_inspection_classification": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "last_inspection_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "last_oii_record_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "nai": {
      -            "type": "number"
      -          },
      -          "oai": {
      -            "description": "Official Action Indicated",
      -            "type": "number"
      -          },
      -          "oii_records": {
      -            "description": "Form 483s and other OII documents for this FEI",
      -            "type": "number"
      -          },
      -          "older_warning_letters": {
      -            "description": "Warning letters before the letter index begins",
      -            "type": "number"
      -          },
      -          "recalls": {
      -            "description": "Recalls matching the facility name",
      -            "type": "number"
      -          },
      -          "total_inspections": {
      -            "type": "number"
      -          },
      -          "vai": {
      -            "type": "number"
      -          },
      -          "warning_letters": {
      -            "description": "Warning letters for this site, index plus older compliance actions",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_inspections",
      -          "nai",
      -          "vai",
      -          "oai",
      -          "warning_letters",
      -          "older_warning_letters",
      -          "import_refusals",
      -          "import_alerts",
      -          "recalls",
      -          "oii_records"
      -        ],
      -        "type": "object"
      -      },
      -      "facility": {
      -        "additionalProperties": {},
      -        "description": "Facility profile for this FEI",
      -        "properties": {
      -          "fei": {
      -            "description": "FDA Establishment Identifier",
      -            "type": "string"
      -          },
      -          "firm_profile_url": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "fei"
      -        ],
      -        "type": "object"
      -      },
      -      "fda_dashboard_links": {
      -        "additionalProperties": {},
      -        "description": "FDA Data Dashboard firm profile pattern and search pages",
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "freshness_summary": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "covered_dataset_count": {
      -            "type": "number"
      -          },
      -          "datasets_checked": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "freshest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "stalest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "datasets_checked",
      -          "covered_dataset_count"
      -        ],
      -        "type": "object"
      -      },
      -      "import_alert_mentions": {
      -        "description": "Import alert entries matching the facility name",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "latest_inspection": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {
      -              "classification_code": {
      -                "description": "NAI, VAI or OAI",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "fei_number": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "firm_profile_url": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "inspection_end_date": {
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "notices": {
      -        "description": "Account notices about this key, such as a low balance; show them to the user",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "oii_records_note": {
      -        "type": "string"
      -      },
      -      "older_warning_letters": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "letter_index_earliest_issue_date": {
      -            "description": "First issue date in the letter index",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "action_taken_date": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "case_injunction_id": {
      -                  "description": "FDA Data Dashboard case ID",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "fei_number": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "firm_profile_url": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "total_count": {
      -            "description": "Warning letters before the letter index begins",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_count",
      -          "results",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "recent_citations": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "act_cfr_number": {
      -              "description": "Cited CFR section",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "citation_id": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "firm_profile_url": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "inspection_end_date": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_import_refusals": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_oii_records": {
      -        "description": "Form 483s and other OII reading-room documents for this FEI",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "date_conflict_note": {
      -              "description": "Present when record_date disagrees with the dates printed on the Form 483",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "document_text_excerpt": {
      -              "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "document_text_status": {
      -              "description": "extracted, or why document text is missing",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "fei_number": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "form_483_dates": {
      -              "anyOf": [
      -                {
      -                  "additionalProperties": {},
      -                  "properties": {
      -                    "inspection_end": {
      -                      "description": "Last inspection date printed on the Form 483",
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "inspection_start": {
      -                      "description": "First inspection date printed on the Form 483",
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    },
      -                    "issued_date": {
      -                      "description": "Date the Form 483 was issued",
      -                      "type": [
      -                        "string",
      -                        "null"
      -                      ]
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date"
      -            },
      -            "oii_record_id": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "record_date": {
      -              "description": "FDA listing record date; listing metadata, not the inspection date",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "record_url": {
      -              "description": "Official FDA document; cite it",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_recalls": {
      -        "description": "Recalls matching the facility name",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_warning_letters": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "letter_issue_date": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "letter_url": {
      -              "description": "Official FDA letter; cite it",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "warning_letter_id": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recommended_follow_ups": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "reason": {
      -              "description": "Why the follow-up matters",
      -              "type": "string"
      -            },
      -            "tool": {
      -              "description": "Tool to call next",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "tool",
      -            "reason"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "see_also": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "description": "Related tools and what each adds",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "site_match_basis": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "facility_names": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "fei": {
      -            "type": "string"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "fei",
      -          "facility_names",
      -          "note"
      -        ],
      -        "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": [
      -      "facility",
      -      "dossier_summary",
      -      "site_match_basis",
      -      "company_level_context",
      -      "latest_inspection",
      -      "recent_citations",
      -      "recent_warning_letters",
      -      "older_warning_letters",
      -      "recent_import_refusals",
      -      "import_alert_mentions",
      -      "recent_recalls",
      -      "recent_oii_records",
      -      "oii_records_note",
      -      "freshness_summary",
      -      "fda_dashboard_links",
      -      "recommended_follow_ups",
      -      "see_also"
      -    ],
      -    "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"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "description": "No facility has this FEI: close matches to check, not evidence",
      -    "properties": {
      -      "close_matches": {
      -        "description": "Sites whose FEI differs by one digit; suggestions only, not this FEI's records",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "city": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "country": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "fei": {
      -              "type": "string"
      -            },
      -            "firm_profile_url": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "name": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "source": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "fei",
      -            "source"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "facility": {
      -        "type": "null"
      -      },
      -      "found": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "next_step": {
      -        "type": "string"
      -      },
      -      "note": {
      -        "type": "string"
      -      },
      -      "notices": {
      -        "description": "Account notices about this key, such as a low balance; show them to the user",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "requested_fei": {
      -        "description": "The FEI as searched, without leading zeros",
      -        "type": "string"
      -      },
      -      "see_also": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "description": "Related tools and what each adds",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "facility",
      -      "found",
      -      "requested_fei",
      -      "close_matches",
      -      "note",
      -      "next_step",
      -      "see_also"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "Inspection, citation, Form 483, warning letter, import and recall evidence for one FEI, with site-only counts and parent-company context kept apart. Dates are YYYY-MM-DD",
      +    "properties": {
      +      "company_level_context": {
      +        "additionalProperties": {},
      +        "description": "Records matching the registrant or owner-operator (parent) name. Not evidence for this site",
      +        "properties": {
      +          "import_alerts": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "recent": {
      +                "items": {
      +                  "additionalProperties": {},
      +                  "properties": {},
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "total_count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "total_count",
      +              "recent"
      +            ],
      +            "type": "object"
      +          },
      +          "matched_names": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "recalls": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "recent": {
      +                "items": {
      +                  "additionalProperties": {},
      +                  "properties": {},
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "total_count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "total_count",
      +              "recent"
      +            ],
      +            "type": "object"
      +          },
      +          "warning_letters": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "recent": {
      +                "items": {
      +                  "additionalProperties": {},
      +                  "properties": {},
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "total_count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "total_count",
      +              "recent"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "matched_names",
      +          "note",
      +          "warning_letters",
      +          "import_alerts",
      +          "recalls"
      +        ],
      +        "type": "object"
      +      },
      +      "dossier_summary": {
      +        "additionalProperties": {},
      +        "description": "Site-level counts only; parent-company matches are under company_level_context",
      +        "properties": {
      +          "import_alerts": {
      +            "description": "Import alert entries matching the facility name",
      +            "type": "number"
      +          },
      +          "import_refusals": {
      +            "type": "number"
      +          },
      +          "last_inspection_classification": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_inspection_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_oii_record_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "nai": {
      +            "type": "number"
      +          },
      +          "oai": {
      +            "description": "Official Action Indicated",
      +            "type": "number"
      +          },
      +          "oii_records": {
      +            "description": "Form 483s and other OII documents for this FEI",
      +            "type": "number"
      +          },
      +          "older_warning_letters": {
      +            "description": "Warning letters before the letter index begins",
      +            "type": "number"
      +          },
      +          "recalls": {
      +            "description": "Recalls matching the facility name",
      +            "type": "number"
      +          },
      +          "total_inspections": {
      +            "type": "number"
      +          },
      +          "vai": {
      +            "type": "number"
      +          },
      +          "warning_letters": {
      +            "description": "Warning letters for this site, index plus older compliance actions",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_inspections",
      +          "nai",
      +          "vai",
      +          "oai",
      +          "warning_letters",
      +          "older_warning_letters",
      +          "import_refusals",
      +          "import_alerts",
      +          "recalls",
      +          "oii_records"
      +        ],
      +        "type": "object"
      +      },
      +      "facility": {
      +        "additionalProperties": {},
      +        "description": "Facility profile for this FEI",
      +        "properties": {
      +          "fei": {
      +            "description": "FDA Establishment Identifier",
      +            "type": "string"
      +          },
      +          "firm_profile_url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "fei"
      +        ],
      +        "type": "object"
      +      },
      +      "fda_dashboard_links": {
      +        "additionalProperties": {},
      +        "description": "FDA Data Dashboard firm profile pattern and search pages",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "freshness_summary": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "covered_dataset_count": {
      +            "type": "number"
      +          },
      +          "datasets_checked": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "freshest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "stalest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "datasets_checked",
      +          "covered_dataset_count"
      +        ],
      +        "type": "object"
      +      },
      +      "import_alert_mentions": {
      +        "description": "Import alert entries matching the facility name",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "latest_inspection": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "classification_code": {
      +                "description": "NAI, VAI or OAI",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "fei_number": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "firm_profile_url": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "inspection_end_date": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "notices": {
      +        "description": "Account notices about this key, such as a low balance; show them to the user",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "oii_records_note": {
      +        "type": "string"
      +      },
      +      "older_warning_letters": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "letter_index_earliest_issue_date": {
      +            "description": "First issue date in the letter index",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "action_taken_date": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "case_injunction_id": {
      +                  "description": "FDA Data Dashboard case ID",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "fei_number": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "firm_profile_url": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "total_count": {
      +            "description": "Warning letters before the letter index begins",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_count",
      +          "results",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "recent_citations": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "act_cfr_number": {
      +              "description": "Cited CFR section",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "citation_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "firm_profile_url": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "inspection_end_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_import_refusals": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_oii_records": {
      +        "description": "Form 483s and other OII reading-room documents for this FEI",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "date_conflict_note": {
      +              "description": "Present when record_date disagrees with the dates printed on the Form 483",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "document_text_excerpt": {
      +              "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "document_text_status": {
      +              "description": "extracted, or why document text is missing",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fei_number": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "form_483_dates": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "inspection_end": {
      +                      "description": "Last inspection date printed on the Form 483",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "inspection_start": {
      +                      "description": "First inspection date printed on the Form 483",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "issued_date": {
      +                      "description": "Date the Form 483 was issued",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date"
      +            },
      +            "oii_record_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "record_date": {
      +              "description": "FDA listing record date; listing metadata, not the inspection date",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "record_url": {
      +              "description": "Official FDA document; cite it",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_recalls": {
      +        "description": "Recalls matching the facility name",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_warning_letters": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "letter_issue_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_url": {
      +              "description": "Official FDA letter; cite it",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "warning_letter_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recommended_follow_ups": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "reason": {
      +              "description": "Why the follow-up matters",
      +              "type": "string"
      +            },
      +            "tool": {
      +              "description": "Tool to call next",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "tool",
      +            "reason"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "regdatalab_page": {
      +        "additionalProperties": {},
      +        "description": "The RegDataLab page for this company or site, for the reader to open, share or bookmark; give it next to the fda.gov sources, never in place of them",
      +        "properties": {
      +          "title": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "title",
      +          "url"
      +        ],
      +        "type": "object"
      +      },
      +      "see_also": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Related tools and what each adds",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "site_match_basis": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "facility_names": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "fei": {
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "fei",
      +          "facility_names",
      +          "note"
      +        ],
      +        "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": [
      +      "facility",
      +      "dossier_summary",
      +      "site_match_basis",
      +      "company_level_context",
      +      "latest_inspection",
      +      "recent_citations",
      +      "recent_warning_letters",
      +      "older_warning_letters",
      +      "recent_import_refusals",
      +      "import_alert_mentions",
      +      "recent_recalls",
      +      "recent_oii_records",
      +      "oii_records_note",
      +      "freshness_summary",
      +      "fda_dashboard_links",
      +      "recommended_follow_ups",
      +      "see_also"
      +    ],
      +    "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"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "description": "No facility has this FEI: close matches to check, not evidence",
      +    "properties": {
      +      "close_matches": {
      +        "description": "Sites whose FEI differs by one digit; suggestions only, not this FEI's records",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "city": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "country": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fei": {
      +              "type": "string"
      +            },
      +            "firm_profile_url": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "source": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "fei",
      +            "source"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "facility": {
      +        "type": "null"
      +      },
      +      "found": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "next_step": {
      +        "type": "string"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "notices": {
      +        "description": "Account notices about this key, such as a low balance; show them to the user",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "requested_fei": {
      +        "description": "The FEI as searched, without leading zeros",
      +        "type": "string"
      +      },
      +      "see_also": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Related tools and what each adds",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "facility",
      +      "found",
      +      "requested_fei",
      +      "close_matches",
      +      "note",
      +      "next_step",
      +      "see_also"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "description": "Inspection, citation, Form 483, warning letter, import and recall evidence for one FEI, with site-only counts and parent-company context kept apart. Dates are YYYY-MM-DD",
      -    "properties": {
      -      "company_level_context": {
      -        "additionalProperties": {},
      -        "description": "Records matching the registrant or owner-operator (parent) name. Not evidence for this site",
      -        "properties": {
      -          "import_alerts": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "recent": {
      -                "items": {
      -                  "additionalProperties": {},
      -                  "properties": {},
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "total_count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "total_count",
      -              "recent"
      -            ],
      -            "type": "object"
      -          },
      -          "matched_names": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "recalls": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "recent": {
      -                "items": {
      -                  "additionalProperties": {},
      -                  "properties": {},
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "total_count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "total_count",
      -              "recent"
      -            ],
      -            "type": "object"
      -          },
      -          "warning_letters": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "recent": {
      -                "items": {
      -                  "additionalProperties": {},
      -                  "properties": {},
      -                  "type": "object"
      -                },
      -                "type": "array"
      -              },
      -              "total_count": {
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "total_count",
      -              "recent"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "matched_names",
      -          "note",
      -          "warning_letters",
      -          "import_alerts",
      -          "recalls"
      -        ],
      -        "type": "object"
      -      },
      -      "dossier_summary": {
      -        "additionalProperties": {},
      -        "description": "Site-level counts only; parent-company matches are under company_level_context",
      -        "properties": {
      -          "import_alerts": {
      -            "description": "Import alert entries matching the facility name",
      -            "type": "number"
      -          },
      -          "import_refusals": {
      -            "type": "number"
      -          },
      -          "last_inspection_classification": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_inspection_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_oii_record_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "nai": {
      -            "type": "number"
      -          },
      -          "oai": {
      -            "description": "Official Action Indicated",
      -            "type": "number"
      -          },
      -          "oii_records": {
      -            "description": "Form 483s and other OII documents for this FEI",
      -            "type": "number"
      -          },
      -          "older_warning_letters": {
      -            "description": "Warning letters before the letter index begins",
      -            "type": "number"
      -          },
      -          "recalls": {
      -            "description": "Recalls matching the facility name",
      -            "type": "number"
      -          },
      -          "total_inspections": {
      -            "type": "number"
      -          },
      -          "vai": {
      -            "type": "number"
      -          },
      -          "warning_letters": {
      -            "description": "Warning letters for this site, index plus older compliance actions",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_inspections",
      -          "nai",
      -          "vai",
      -          "oai",
      -          "warning_letters",
      -          "older_warning_letters",
      -          "import_refusals",
      -          "import_alerts",
      -          "recalls",
      -          "oii_records"
      -        ],
      -        "type": "object"
      -      },
      -      "facility": {
      -        "additionalProperties": {},
      -        "description": "Facility profile for this FEI",
      -        "properties": {
      -          "fei": {
      -            "description": "FDA Establishment Identifier",
      -            "type": "string"
      -          },
      -          "firm_profile_url": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "fei"
      -        ],
      -        "type": "object"
      -      },
      -      "fda_dashboard_links": {
      -        "additionalProperties": {},
      -        "description": "FDA Data Dashboard firm profile pattern and search pages",
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "freshness_summary": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "covered_dataset_count": {
      -            "type": "number"
      -          },
      -          "datasets_checked": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "freshest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "stalest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "datasets_checked",
      -          "covered_dataset_count"
      -        ],
      -        "type": "object"
      -      },
      -      "import_alert_mentions": {
      -        "description": "Import alert entries matching the facility name",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "latest_inspection": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {},
      -            "properties": {
      -              "classification_code": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "NAI, VAI or OAI"
      -              },
      -              "fei_number": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "firm_profile_url": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              },
      -              "inspection_end_date": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ]
      -              }
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "notices": {
      -        "description": "Account notices about this key, such as a low balance; show them to the user",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "oii_records_note": {
      -        "type": "string"
      -      },
      -      "older_warning_letters": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "letter_index_earliest_issue_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "First issue date in the letter index"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "action_taken_date": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "case_injunction_id": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "FDA Data Dashboard case ID"
      -                },
      -                "fei_number": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "firm_profile_url": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "total_count": {
      -            "description": "Warning letters before the letter index begins",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_count",
      -          "results",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "recent_citations": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "act_cfr_number": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Cited CFR section"
      -            },
      -            "citation_id": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "firm_profile_url": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "inspection_end_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_import_refusals": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_oii_records": {
      -        "description": "Form 483s and other OII reading-room documents for this FEI",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "date_conflict_note": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Present when record_date disagrees with the dates printed on the Form 483"
      -            },
      -            "document_text_excerpt": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors"
      -            },
      -            "document_text_status": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "extracted, or why document text is missing"
      -            },
      -            "fei_number": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "form_483_dates": {
      -              "anyOf": [
      -                {
      -                  "additionalProperties": {},
      -                  "properties": {
      -                    "inspection_end": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ],
      -                      "description": "Last inspection date printed on the Form 483"
      -                    },
      -                    "inspection_start": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ],
      -                      "description": "First inspection date printed on the Form 483"
      -                    },
      -                    "issued_date": {
      -                      "anyOf": [
      -                        {
      -                          "type": "string"
      -                        },
      -                        {
      -                          "type": "null"
      -                        }
      -                      ],
      -                      "description": "Date the Form 483 was issued"
      -                    }
      -                  },
      -                  "type": "object"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date"
      -            },
      -            "oii_record_id": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "record_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "FDA listing record date; listing metadata, not the inspection date"
      -            },
      -            "record_url": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Official FDA document; cite it"
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_recalls": {
      -        "description": "Recalls matching the facility name",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recent_warning_letters": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "letter_issue_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "letter_url": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Official FDA letter; cite it"
      -            },
      -            "warning_letter_id": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recommended_follow_ups": {
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "reason": {
      -              "description": "Why the follow-up matters",
      -              "type": "string"
      -            },
      -            "tool": {
      -              "description": "Tool to call next",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "tool",
      -            "reason"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "see_also": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "description": "Related tools and what each adds",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "site_match_basis": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "facility_names": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "fei": {
      -            "type": "string"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "fei",
      -          "facility_names",
      -          "note"
      -        ],
      -        "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": [
      -      "facility",
      -      "dossier_summary",
      -      "site_match_basis",
      -      "company_level_context",
      -      "latest_inspection",
      -      "recent_citations",
      -      "recent_warning_letters",
      -      "older_warning_letters",
      -      "recent_import_refusals",
      -      "import_alert_mentions",
      -      "recent_recalls",
      -      "recent_oii_records",
      -      "oii_records_note",
      -      "freshness_summary",
      -      "fda_dashboard_links",
      -      "recommended_follow_ups",
      -      "see_also"
      -    ],
      -    "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"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "description": "No facility has this FEI: close matches to check, not evidence",
      -    "properties": {
      -      "close_matches": {
      -        "description": "Sites whose FEI differs by one digit; suggestions only, not this FEI's records",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "city": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "country": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "fei": {
      -              "type": "string"
      -            },
      -            "firm_profile_url": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "name": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "source": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "fei",
      -            "source"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "facility": {
      -        "type": "null"
      -      },
      -      "found": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "next_step": {
      -        "type": "string"
      -      },
      -      "note": {
      -        "type": "string"
      -      },
      -      "notices": {
      -        "description": "Account notices about this key, such as a low balance; show them to the user",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "requested_fei": {
      -        "description": "The FEI as searched, without leading zeros",
      -        "type": "string"
      -      },
      -      "see_also": {
      -        "additionalProperties": {
      -          "type": "string"
      -        },
      -        "description": "Related tools and what each adds",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "facility",
      -      "found",
      -      "requested_fei",
      -      "close_matches",
      -      "note",
      -      "next_step",
      -      "see_also"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "Inspection, citation, Form 483, warning letter, import and recall evidence for one FEI, with site-only counts and parent-company context kept apart. Dates are YYYY-MM-DD",
      +    "properties": {
      +      "company_level_context": {
      +        "additionalProperties": {},
      +        "description": "Records matching the registrant or owner-operator (parent) name. Not evidence for this site",
      +        "properties": {
      +          "import_alerts": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "recent": {
      +                "items": {
      +                  "additionalProperties": {},
      +                  "properties": {},
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "total_count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "total_count",
      +              "recent"
      +            ],
      +            "type": "object"
      +          },
      +          "matched_names": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "recalls": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "recent": {
      +                "items": {
      +                  "additionalProperties": {},
      +                  "properties": {},
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "total_count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "total_count",
      +              "recent"
      +            ],
      +            "type": "object"
      +          },
      +          "warning_letters": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "recent": {
      +                "items": {
      +                  "additionalProperties": {},
      +                  "properties": {},
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "total_count": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "total_count",
      +              "recent"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "matched_names",
      +          "note",
      +          "warning_letters",
      +          "import_alerts",
      +          "recalls"
      +        ],
      +        "type": "object"
      +      },
      +      "dossier_summary": {
      +        "additionalProperties": {},
      +        "description": "Site-level counts only; parent-company matches are under company_level_context",
      +        "properties": {
      +          "import_alerts": {
      +            "description": "Import alert entries matching the facility name",
      +            "type": "number"
      +          },
      +          "import_refusals": {
      +            "type": "number"
      +          },
      +          "last_inspection_classification": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_inspection_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_oii_record_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "nai": {
      +            "type": "number"
      +          },
      +          "oai": {
      +            "description": "Official Action Indicated",
      +            "type": "number"
      +          },
      +          "oii_records": {
      +            "description": "Form 483s and other OII documents for this FEI",
      +            "type": "number"
      +          },
      +          "older_warning_letters": {
      +            "description": "Warning letters before the letter index begins",
      +            "type": "number"
      +          },
      +          "recalls": {
      +            "description": "Recalls matching the facility name",
      +            "type": "number"
      +          },
      +          "total_inspections": {
      +            "type": "number"
      +          },
      +          "vai": {
      +            "type": "number"
      +          },
      +          "warning_letters": {
      +            "description": "Warning letters for this site, index plus older compliance actions",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_inspections",
      +          "nai",
      +          "vai",
      +          "oai",
      +          "warning_letters",
      +          "older_warning_letters",
      +          "import_refusals",
      +          "import_alerts",
      +          "recalls",
      +          "oii_records"
      +        ],
      +        "type": "object"
      +      },
      +      "facility": {
      +        "additionalProperties": {},
      +        "description": "Facility profile for this FEI",
      +        "properties": {
      +          "fei": {
      +            "description": "FDA Establishment Identifier",
      +            "type": "string"
      +          },
      +          "firm_profile_url": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "fei"
      +        ],
      +        "type": "object"
      +      },
      +      "fda_dashboard_links": {
      +        "additionalProperties": {},
      +        "description": "FDA Data Dashboard firm profile pattern and search pages",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "freshness_summary": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "covered_dataset_count": {
      +            "type": "number"
      +          },
      +          "datasets_checked": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "freshest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "stalest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "datasets_checked",
      +          "covered_dataset_count"
      +        ],
      +        "type": "object"
      +      },
      +      "import_alert_mentions": {
      +        "description": "Import alert entries matching the facility name",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "latest_inspection": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "classification_code": {
      +                "description": "NAI, VAI or OAI",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "fei_number": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "firm_profile_url": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "inspection_end_date": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "notices": {
      +        "description": "Account notices about this key, such as a low balance; show them to the user",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "oii_records_note": {
      +        "type": "string"
      +      },
      +      "older_warning_letters": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "letter_index_earliest_issue_date": {
      +            "description": "First issue date in the letter index",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "action_taken_date": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "case_injunction_id": {
      +                  "description": "FDA Data Dashboard case ID",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "fei_number": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "firm_profile_url": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "total_count": {
      +            "description": "Warning letters before the letter index begins",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_count",
      +          "results",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "recent_citations": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "act_cfr_number": {
      +              "description": "Cited CFR section",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "citation_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "firm_profile_url": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "inspection_end_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_import_refusals": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_oii_records": {
      +        "description": "Form 483s and other OII reading-room documents for this FEI",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "date_conflict_note": {
      +              "description": "Present when record_date disagrees with the dates printed on the Form 483",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "document_text_excerpt": {
      +              "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "document_text_status": {
      +              "description": "extracted, or why document text is missing",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fei_number": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "form_483_dates": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "inspection_end": {
      +                      "description": "Last inspection date printed on the Form 483",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "inspection_start": {
      +                      "description": "First inspection date printed on the Form 483",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    },
      +                    "issued_date": {
      +                      "description": "Date the Form 483 was issued",
      +                      "type": [
      +                        "string",
      +                        "null"
      +                      ]
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date"
      +            },
      +            "oii_record_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "record_date": {
      +              "description": "FDA listing record date; listing metadata, not the inspection date",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "record_url": {
      +              "description": "Official FDA document; cite it",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_recalls": {
      +        "description": "Recalls matching the facility name",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recent_warning_letters": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "letter_issue_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_url": {
      +              "description": "Official FDA letter; cite it",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "warning_letter_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recommended_follow_ups": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "reason": {
      +              "description": "Why the follow-up matters",
      +              "type": "string"
      +            },
      +            "tool": {
      +              "description": "Tool to call next",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "tool",
      +            "reason"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "see_also": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Related tools and what each adds",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "site_match_basis": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "facility_names": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "fei": {
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "fei",
      +          "facility_names",
      +          "note"
      +        ],
      +        "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": [
      +      "facility",
      +      "dossier_summary",
      +      "site_match_basis",
      +      "company_level_context",
      +      "latest_inspection",
      +      "recent_citations",
      +      "recent_warning_letters",
      +      "older_warning_letters",
      +      "recent_import_refusals",
      +      "import_alert_mentions",
      +      "recent_recalls",
      +      "recent_oii_records",
      +      "oii_records_note",
      +      "freshness_summary",
      +      "fda_dashboard_links",
      +      "recommended_follow_ups",
      +      "see_also"
      +    ],
      +    "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"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "description": "No facility has this FEI: close matches to check, not evidence",
      +    "properties": {
      +      "close_matches": {
      +        "description": "Sites whose FEI differs by one digit; suggestions only, not this FEI's records",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "city": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "country": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "fei": {
      +              "type": "string"
      +            },
      +            "firm_profile_url": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "name": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "source": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "fei",
      +            "source"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "facility": {
      +        "type": "null"
      +      },
      +      "found": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "next_step": {
      +        "type": "string"
      +      },
      +      "note": {
      +        "type": "string"
      +      },
      +      "notices": {
      +        "description": "Account notices about this key, such as a low balance; show them to the user",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "requested_fei": {
      +        "description": "The FEI as searched, without leading zeros",
      +        "type": "string"
      +      },
      +      "see_also": {
      +        "additionalProperties": {
      +          "type": "string"
      +        },
      +        "description": "Related tools and what each adds",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "facility",
      +      "found",
      +      "requested_fei",
      +      "close_matches",
      +      "note",
      +      "next_step",
      +      "see_also"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed5 schema fields changed
    • addedInput schema / properties / fei / 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 / 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 / pattern
      Removed value: -"^\\d{1,10}$"
    • removedInput schema / properties / fei / type
      Removed value: -"string"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "description": "Inspection, citation, Form 483, warning letter, import and recall evidence for one FEI, with site-only counts and parent-company context kept apart. Dates are YYYY-MM-DD",
      +          "properties": {
      +            "company_level_context": {
      +              "additionalProperties": {},
      +              "description": "Records matching the registrant or owner-operator (parent) name. Not evidence for this site",
      +              "properties": {
      +                "import_alerts": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "recent": {
      +                      "items": {
      +                        "additionalProperties": {},
      +                        "properties": {},
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "total_count": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "total_count",
      +                    "recent"
      +                  ],
      +                  "type": "object"
      +                },
      +                "matched_names": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "note": {
      +                  "type": "string"
      +                },
      +                "recalls": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "recent": {
      +                      "items": {
      +                        "additionalProperties": {},
      +                        "properties": {},
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "total_count": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "total_count",
      +                    "recent"
      +                  ],
      +                  "type": "object"
      +                },
      +                "warning_letters": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "recent": {
      +                      "items": {
      +                        "additionalProperties": {},
      +                        "properties": {},
      +                        "type": "object"
      +                      },
      +                      "type": "array"
      +                    },
      +                    "total_count": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "total_count",
      +                    "recent"
      +                  ],
      +                  "type": "object"
      +                }
      +              },
      +              "required": [
      +                "matched_names",
      +                "note",
      +                "warning_letters",
      +                "import_alerts",
      +                "recalls"
      +              ],
      +              "type": "object"
      +            },
      +            "dossier_summary": {
      +              "additionalProperties": {},
      +              "description": "Site-level counts only; parent-company matches are under company_level_context",
      +              "properties": {
      +                "import_alerts": {
      +                  "description": "Import alert entries matching the facility name",
      +                  "type": "number"
      +                },
      +                "import_refusals": {
      +                  "type": "number"
      +                },
      +                "last_inspection_classification": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "last_inspection_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "last_oii_record_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "nai": {
      +                  "type": "number"
      +                },
      +                "oai": {
      +                  "description": "Official Action Indicated",
      +                  "type": "number"
      +                },
      +                "oii_records": {
      +                  "description": "Form 483s and other OII documents for this FEI",
      +                  "type": "number"
      +                },
      +                "older_warning_letters": {
      +                  "description": "Warning letters before the letter index begins",
      +                  "type": "number"
      +                },
      +                "recalls": {
      +                  "description": "Recalls matching the facility name",
      +                  "type": "number"
      +                },
      +                "total_inspections": {
      +                  "type": "number"
      +                },
      +                "vai": {
      +                  "type": "number"
      +                },
      +                "warning_letters": {
      +                  "description": "Warning letters for this site, index plus older compliance actions",
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "total_inspections",
      +                "nai",
      +                "vai",
      +                "oai",
      +                "warning_letters",
      +                "older_warning_letters",
      +                "import_refusals",
      +                "import_alerts",
      +                "recalls",
      +                "oii_records"
      +              ],
      +              "type": "object"
      +            },
      +            "facility": {
      +              "additionalProperties": {},
      +              "description": "Facility profile for this FEI",
      +              "properties": {
      +                "fei": {
      +                  "description": "FDA Establishment Identifier",
      +                  "type": "string"
      +                },
      +                "firm_profile_url": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "fei"
      +              ],
      +              "type": "object"
      +            },
      +            "fda_dashboard_links": {
      +              "additionalProperties": {},
      +              "description": "FDA Data Dashboard firm profile pattern and search pages",
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "freshness_summary": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "covered_dataset_count": {
      +                  "type": "number"
      +                },
      +                "datasets_checked": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "freshest_as_of_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "stalest_as_of_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "datasets_checked",
      +                "covered_dataset_count"
      +              ],
      +              "type": "object"
      +            },
      +            "import_alert_mentions": {
      +              "description": "Import alert entries matching the facility name",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {},
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "latest_inspection": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "classification_code": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "NAI, VAI or OAI"
      +                    },
      +                    "fei_number": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "firm_profile_url": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    },
      +                    "inspection_end_date": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ]
      +                    }
      +                  },
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "notices": {
      +              "description": "Account notices about this key, such as a low balance; show them to the user",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "oii_records_note": {
      +              "type": "string"
      +            },
      +            "older_warning_letters": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "letter_index_earliest_issue_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "First issue date in the letter index"
      +                },
      +                "note": {
      +                  "type": "string"
      +                },
      +                "results": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "action_taken_date": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "case_injunction_id": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ],
      +                        "description": "FDA Data Dashboard case ID"
      +                      },
      +                      "fei_number": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "firm_profile_url": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "total_count": {
      +                  "description": "Warning letters before the letter index begins",
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "total_count",
      +                "results",
      +                "note"
      +              ],
      +              "type": "object"
      +            },
      +            "recent_citations": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "act_cfr_number": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Cited CFR section"
      +                  },
      +                  "citation_id": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "firm_profile_url": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "inspection_end_date": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "recent_import_refusals": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {},
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "recent_oii_records": {
      +              "description": "Form 483s and other OII reading-room documents for this FEI",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "date_conflict_note": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Present when record_date disagrees with the dates printed on the Form 483"
      +                  },
      +                  "document_text_excerpt": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors"
      +                  },
      +                  "document_text_status": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "extracted, or why document text is missing"
      +                  },
      +                  "fei_number": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "form_483_dates": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": {},
      +                        "properties": {
      +                          "inspection_end": {
      +                            "anyOf": [
      +                              {
      +                                "type": "string"
      +                              },
      +                              {
      +                                "type": "null"
      +                              }
      +                            ],
      +                            "description": "Last inspection date printed on the Form 483"
      +                          },
      +                          "inspection_start": {
      +                            "anyOf": [
      +                              {
      +                                "type": "string"
      +                              },
      +                              {
      +                                "type": "null"
      +                              }
      +                            ],
      +                            "description": "First inspection date printed on the Form 483"
      +                          },
      +                          "issued_date": {
      +                            "anyOf": [
      +                              {
      +                                "type": "string"
      +                              },
      +                              {
      +                                "type": "null"
      +                              }
      +                            ],
      +                            "description": "Date the Form 483 was issued"
      +                          }
      +                        },
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date"
      +                  },
      +                  "oii_record_id": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "record_date": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "FDA listing record date; listing metadata, not the inspection date"
      +                  },
      +                  "record_url": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Official FDA document; cite it"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "recent_recalls": {
      +              "description": "Recalls matching the facility name",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {},
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "recent_warning_letters": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "letter_issue_date": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "letter_url": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Official FDA letter; cite it"
      +                  },
      +                  "warning_letter_id": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "recommended_follow_ups": {
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "reason": {
      +                    "description": "Why the follow-up matters",
      +                    "type": "string"
      +                  },
      +                  "tool": {
      +                    "description": "Tool to call next",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "tool",
      +                  "reason"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "see_also": {
      +              "additionalProperties": {
      +                "type": "string"
      +              },
      +              "description": "Related tools and what each adds",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "site_match_basis": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "facility_names": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "fei": {
      +                  "type": "string"
      +                },
      +                "note": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "fei",
      +                "facility_names",
      +                "note"
      +              ],
      +              "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": [
      +            "facility",
      +            "dossier_summary",
      +            "site_match_basis",
      +            "company_level_context",
      +            "latest_inspection",
      +            "recent_citations",
      +            "recent_warning_letters",
      +            "older_warning_letters",
      +            "recent_import_refusals",
      +            "import_alert_mentions",
      +            "recent_recalls",
      +            "recent_oii_records",
      +            "oii_records_note",
      +            "freshness_summary",
      +            "fda_dashboard_links",
      +            "recommended_follow_ups",
      +            "see_also"
      +          ],
      +          "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"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "description": "No facility has this FEI: close matches to check, not evidence",
      +          "properties": {
      +            "close_matches": {
      +              "description": "Sites whose FEI differs by one digit; suggestions only, not this FEI's records",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "city": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "country": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "fei": {
      +                    "type": "string"
      +                  },
      +                  "firm_profile_url": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "name": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "source": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "fei",
      +                  "source"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "facility": {
      +              "type": "null"
      +            },
      +            "found": {
      +              "const": false,
      +              "type": "boolean"
      +            },
      +            "next_step": {
      +              "type": "string"
      +            },
      +            "note": {
      +              "type": "string"
      +            },
      +            "notices": {
      +              "description": "Account notices about this key, such as a low balance; show them to the user",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "requested_fei": {
      +              "description": "The FEI as searched, without leading zeros",
      +              "type": "string"
      +            },
      +            "see_also": {
      +              "additionalProperties": {
      +                "type": "string"
      +              },
      +              "description": "Related tools and what each adds",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "facility",
      +            "found",
      +            "requested_fei",
      +            "close_matches",
      +            "note",
      +            "next_step",
      +            "see_also"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so credit goes to what is added beyond them: the parent-name separation rule, the fact that source records, dates, matching limits and freshness are returned, and the important interpretation caveat that no matching records does not establish safety. The only gap is that it does not characterize volume or latency for a tool that fans out across many FDA sources.

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 evidence types and the scope constraint first, which is the right ordering. The trailing sentence spelling out the firm_profile_url template is partly duplicative of the output schema and adds bulk, but overall the prose is dense with little waste.

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 multi-source aggregate with an output schema, the description covers scope, exclusion of parent-level matches, returned metadata (dates, matching limits, freshness) and an interpretation caveat. What remains thin is routing guidance against the many overlapping compliance siblings, which an agent would want before choosing this broader tool.

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%, and both parameters (FEI format/example, evidence_limit with default 5 and range 1–20) are already documented in-schema, so the baseline applies. The description does add meaning about how the FEI is used for matching (site name only, not parent name), but says nothing about evidence_limit's per-section behavior beyond what the schema states.

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?

The description names a concrete verb ('Review') and an explicit, enumerated resource set — inspection, citation, Form 483 (OII reading room), warning letter, import alert and recall evidence — scoped to a single FEI. That scope statement distinguishes it from the narrower siblings such as fda_inspections, fda_citations or fda_compliance_actions without needing to name them.

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?

It gives clear context for use: one FEI, and a strong exclusion rule that registrant/owner-operator (parent) name matches are not site evidence and appear separately under company_level_context. It does not, however, explicitly state when to prefer this over siblings like fda_company_compliance_timeline or fda_facility_products, so the agent must infer that this is the consolidated site-level dossier.

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.