Skip to main content
Glama

RegDataLab – FDA Compliance Data

Manufacturing risk summary

fda_manufacturing_risk_summary
Read-onlyIdempotent

Review a company’s manufacturing and compliance records across its curated family. Returns inspection classifications, recall signals and other available compliance evidence with dates, freshness and matching limits. Companies the parent spun off or sold are not counted; they are listed in former_subsidiaries with their own record counts. Counts cover all dates unless date_from/date_to set a period; period.label says which, so state it with the counts. Inspection citations are available through fda_citations. 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}). This covers facility_footprint and recent_inspections. Designed for initial supplier review. No matching records does not establish safety.

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": {
      "company": "<company>"
    },
    "name": "fda_manufacturing_risk_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesCompany name to summarize
date_toNoCount only records dated on or before this day (YYYY-MM-DD)
verboseNoWhen false (default), suppress the inline alias dump and return a compact freshness_summary with newest_as_of plus any older or missing sources. Set true for the full per-dataset block.
date_fromNoCount only records dated on or after this day (YYYY-MM-DD). Omit both dates for all time.
evidence_limitNoMax recent records to return per evidence section
facility_limitNoMax facilities to return

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": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      -    "properties": {
      -      "better_match_candidates": {
      -        "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "call": {
      -              "type": "string"
      -            },
      -            "company_id": {
      -              "type": "string"
      -            },
      -            "matched_alias": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "company_id",
      -            "matched_alias",
      -            "call"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "company_resolution": {
      -        "additionalProperties": {},
      -        "description": "Which company family the summary covers and how it was matched",
      -        "properties": {
      -          "aliases": {
      -            "description": "Alias list; empty unless verbose=true",
      -            "items": {},
      -            "type": "array"
      -          },
      -          "company_id": {
      -            "description": "Resolved family ID; counts cover this whole family",
      -            "type": "string"
      -          },
      -          "confidence": {
      -            "description": "Resolution confidence from 0 to 1",
      -            "type": "number"
      -          },
      -          "input_company": {
      -            "description": "Company name as asked",
      -            "type": "string"
      -          },
      -          "input_normalized": {
      -            "type": "string"
      -          },
      -          "matched_family_member": {
      -            "additionalProperties": {},
      -            "description": "The linked family member the input names",
      -            "properties": {
      -              "child_company_id": {
      -                "type": "string"
      -              },
      -              "relationship_type": {
      -                "description": "Relationship to the parent",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "source": {
      -                "description": "Where the relationship comes from",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "child_company_id"
      -            ],
      -            "type": "object"
      -          },
      -          "resolved_via": {
      -            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
      -            "type": "string"
      -          },
      -          "scope_note": {
      -            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "company_id",
      -          "input_company",
      -          "input_normalized",
      -          "resolved_via",
      -          "confidence",
      -          "aliases"
      -        ],
      -        "type": "object"
      -      },
      -      "coverage": {
      -        "description": "complete, low_confidence, no_alias_pack or possible_split",
      -        "type": "string"
      -      },
      -      "data_freshness": {
      -        "additionalProperties": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "as_of_date": {
      -              "type": "string"
      -            },
      -            "executed_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "executed_at",
      -            "as_of_date"
      -          ],
      -          "type": "object"
      -        },
      -        "description": "Per-dataset freshness; only when verbose=true",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "document_text_coverage": {
      -        "additionalProperties": {},
      -        "description": "How many returned letters and 483s carry extracted text",
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "facility_footprint": {
      -        "additionalProperties": {},
      -        "description": "Sites in the family; group findings by these",
      -        "properties": {
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "fei_number": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "firm_profile_url": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "scope_note": {
      -            "type": "string"
      -          },
      -          "see_also": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "call": {
      -                "type": "string"
      -              },
      -              "reason": {
      -                "type": "string"
      -              },
      -              "tool": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "tool",
      -              "reason",
      -              "call"
      -            ],
      -            "type": "object"
      -          },
      -          "total_count": {
      -            "description": "Facilities registered or inspected under the family's names",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_count",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "family_context": {
      -        "additionalProperties": {},
      -        "description": "Linked family members included in the counts",
      -        "properties": {
      -          "child_company_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "family_members": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "alias_count": {
      -                  "description": "Aliases for this member (alias lists only when verbose=true)",
      -                  "type": "number"
      -                },
      -                "child_company_id": {
      -                  "type": "string"
      -                },
      -                "relationship_type": {
      -                  "description": "subsidiary, division or another relationship",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "child_company_id"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "fuzzy_expanded_names": {
      -            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "search_name_count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "child_company_ids",
      -          "family_members"
      -        ],
      -        "type": "object"
      -      },
      -      "former_subsidiaries": {
      -        "additionalProperties": {},
      -        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "freshness_summary": {
      -        "additionalProperties": {},
      -        "description": "Dataset freshness; state it in answers",
      -        "properties": {
      -          "covered_dataset_count": {
      -            "type": "number"
      -          },
      -          "expected_dataset_count": {
      -            "type": "number"
      -          },
      -          "freshest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "missing_dataset_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "newest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "older_datasets": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "as_of_date": {
      -                  "type": "string"
      -                },
      -                "dataset_id": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "dataset_id",
      -                "as_of_date"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "oldest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "stalest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "covered_dataset_count",
      -          "expected_dataset_count",
      -          "older_datasets",
      -          "missing_dataset_ids"
      -        ],
      -        "type": "object"
      -      },
      -      "highest_severity_signals": {
      -        "description": "Most serious findings first, each dated; lead answers with these",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "count": {
      -              "description": "Matching records of this type",
      -              "type": "number"
      -            },
      -            "last_5_years_count": {
      -              "description": "Records inside the recent window",
      -              "type": "number"
      -            },
      -            "most_recent_date": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "recent_window_start": {
      -              "type": "string"
      -            },
      -            "recommended_tool": {
      -              "description": "Tool that returns the underlying records",
      -              "type": "string"
      -            },
      -            "severity": {
      -              "description": "critical, high or medium",
      -              "type": "string"
      -            },
      -            "signal_type": {
      -              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      -              "type": "string"
      -            },
      -            "summary": {
      -              "description": "One-line reading of this signal, including its age",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "signal_type",
      -            "severity",
      -            "count",
      -            "last_5_years_count",
      -            "recent_window_start",
      -            "summary",
      -            "recommended_tool"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "import_risk": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "footprint_linked_refusal_count": {
      -            "type": "number"
      -          },
      -          "green_list_count": {
      -            "type": "number"
      -          },
      -          "import_alert_count": {
      -            "type": "number"
      -          },
      -          "import_refusal_count": {
      -            "type": "number"
      -          },
      -          "last_alert_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "last_refusal_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name_match_only_refusal_count": {
      -            "type": "number"
      -          },
      -          "recent_import_alerts": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_import_refusals": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "site_link": {
      -                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "red_list_count": {
      -            "description": "Red-list (detention without physical examination) entries",
      -            "type": "number"
      -          },
      -          "refusal_site_link_note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "import_alert_count",
      -          "red_list_count",
      -          "green_list_count",
      -          "recent_import_alerts",
      -          "import_refusal_count",
      -          "recent_import_refusals",
      -          "footprint_linked_refusal_count",
      -          "name_match_only_refusal_count"
      -        ],
      -        "type": "object"
      -      },
      -      "inspection_summary": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "last_inspection_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "nai": {
      -            "type": "number"
      -          },
      -          "oai": {
      -            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      -            "type": "number"
      -          },
      -          "total_inspections": {
      -            "type": "number"
      -          },
      -          "vai": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_inspections",
      -          "nai",
      -          "vai",
      -          "oai"
      -        ],
      -        "type": "object"
      -      },
      -      "integrity_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "debarment_count": {
      -            "type": "number"
      -          },
      -          "debarments": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "debarment_count",
      -          "debarments"
      -        ],
      -        "type": "object"
      -      },
      -      "matching_notes": {
      -        "description": "How names were matched",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_candidates": {
      -        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_note": {
      -        "type": "string"
      -      },
      -      "newest_as_of": {
      -        "description": "Newest source date (default compact freshness)",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "next_step": {
      -        "additionalProperties": {},
      -        "description": "Present when nothing matched",
      -        "properties": {
      -          "call": {
      -            "type": "string"
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "tool": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "tool",
      -          "reason",
      -          "call"
      -        ],
      -        "type": "object"
      -      },
      -      "no_records_note": {
      -        "description": "Present when nothing matched: no matching records does not establish safety",
      -        "type": "string"
      -      },
      -      "notable_gaps": {
      -        "description": "Missing data, matching limits and stale sources; state these",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "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": {},
      -        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      -        "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"
      -      },
      -      "period": {
      -        "additionalProperties": {},
      -        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      -        "properties": {
      -          "date_from": {
      -            "description": "First day counted (YYYY-MM-DD), or null",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "date_to": {
      -            "description": "Last day counted (YYYY-MM-DD), or null",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "label": {
      -            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      -            "type": "string"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "date_from",
      -          "date_to",
      -          "label",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "possible_split_with": {
      -        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "recall_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "count_note": {
      -            "type": "string"
      -          },
      -          "ires_count": {
      -            "description": "Recalls in FDA iRES enforcement reports",
      -            "type": "number"
      -          },
      -          "last_ires_report_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "last_openfda_report_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "openfda_enforcement_count": {
      -            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      -            "type": "number"
      -          },
      -          "recent_ires_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_openfda_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls": {
      -            "description": "One entry per recall number, merged across both sources",
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "recall_number": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "report_date": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "sources": {
      -                  "description": "ires, openfda or both",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls_note": {
      -            "type": "string"
      -          },
      -          "unique_recall_count": {
      -            "description": "Distinct recall numbers across both sources",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "ires_count",
      -          "recent_ires_enforcement",
      -          "openfda_enforcement_count",
      -          "recent_openfda_enforcement",
      -          "unique_recall_count",
      -          "count_note",
      -          "recent_recalls",
      -          "recent_recalls_note"
      -        ],
      -        "type": "object"
      -      },
      -      "recent_inspections": {
      -        "items": {
      -          "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": "array"
      -      },
      -      "recent_oii_records": {
      -        "description": "Form 483s and other OII reading-room documents",
      -        "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_warning_letters": {
      -        "description": "Warning letters from the letter index",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "letter_excerpt": {
      -              "description": "Start of the letter text",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "letter_issue_date": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "letter_text_status": {
      -              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "letter_url": {
      -              "description": "Official FDA letter; cite it",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "warning_letter_id": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recommend_subsidiary_search": {
      -        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      -        "type": "boolean"
      -      },
      -      "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"
      -      },
      -      "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"
      -      },
      -      "unresolved_entities": {
      -        "additionalProperties": {},
      -        "description": "Related entities with no recorded ownership change; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "company_resolution",
      -      "coverage",
      -      "recommend_subsidiary_search",
      -      "matching_notes",
      -      "family_context",
      -      "freshness_summary",
      -      "facility_footprint",
      -      "inspection_summary",
      -      "recent_inspections",
      -      "document_text_coverage",
      -      "recent_warning_letters",
      -      "recent_oii_records",
      -      "import_risk",
      -      "integrity_signals",
      -      "recall_signals",
      -      "highest_severity_signals",
      -      "recommended_follow_ups",
      -      "notable_gaps"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      -    "properties": {
      -      "attempted_tool": {
      -        "type": "string"
      -      },
      -      "auth_required": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "signup_url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "auth_required",
      -      "attempted_tool",
      -      "message",
      -      "signup_url"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      +    "properties": {
      +      "better_match_candidates": {
      +        "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "call": {
      +              "type": "string"
      +            },
      +            "company_id": {
      +              "type": "string"
      +            },
      +            "matched_alias": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "company_id",
      +            "matched_alias",
      +            "call"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "company_resolution": {
      +        "additionalProperties": {},
      +        "description": "Which company family the summary covers and how it was matched",
      +        "properties": {
      +          "aliases": {
      +            "description": "Alias list; empty unless verbose=true",
      +            "items": {},
      +            "type": "array"
      +          },
      +          "company_id": {
      +            "description": "Resolved family ID; counts cover this whole family",
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "description": "Resolution confidence from 0 to 1",
      +            "type": "number"
      +          },
      +          "input_company": {
      +            "description": "Company name as asked",
      +            "type": "string"
      +          },
      +          "input_normalized": {
      +            "type": "string"
      +          },
      +          "matched_family_member": {
      +            "additionalProperties": {},
      +            "description": "The linked family member the input names",
      +            "properties": {
      +              "child_company_id": {
      +                "type": "string"
      +              },
      +              "relationship_type": {
      +                "description": "Relationship to the parent",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "source": {
      +                "description": "Where the relationship comes from",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "child_company_id"
      +            ],
      +            "type": "object"
      +          },
      +          "resolved_via": {
      +            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
      +            "type": "string"
      +          },
      +          "scope_note": {
      +            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "company_id",
      +          "input_company",
      +          "input_normalized",
      +          "resolved_via",
      +          "confidence",
      +          "aliases"
      +        ],
      +        "type": "object"
      +      },
      +      "coverage": {
      +        "description": "complete, low_confidence, no_alias_pack or possible_split",
      +        "type": "string"
      +      },
      +      "data_freshness": {
      +        "additionalProperties": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "as_of_date": {
      +              "type": "string"
      +            },
      +            "executed_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "executed_at",
      +            "as_of_date"
      +          ],
      +          "type": "object"
      +        },
      +        "description": "Per-dataset freshness; only when verbose=true",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "document_text_coverage": {
      +        "additionalProperties": {},
      +        "description": "How many returned letters and 483s carry extracted text",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "facility_footprint": {
      +        "additionalProperties": {},
      +        "description": "Sites in the family; group findings by these",
      +        "properties": {
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "fei_number": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "firm_profile_url": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "scope_note": {
      +            "type": "string"
      +          },
      +          "see_also": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "call": {
      +                "type": "string"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "tool": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tool",
      +              "reason",
      +              "call"
      +            ],
      +            "type": "object"
      +          },
      +          "total_count": {
      +            "description": "Facilities registered or inspected under the family's names",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_count",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "family_context": {
      +        "additionalProperties": {},
      +        "description": "Linked family members included in the counts",
      +        "properties": {
      +          "child_company_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "family_members": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "alias_count": {
      +                  "description": "Aliases for this member (alias lists only when verbose=true)",
      +                  "type": "number"
      +                },
      +                "child_company_id": {
      +                  "type": "string"
      +                },
      +                "relationship_type": {
      +                  "description": "subsidiary, division or another relationship",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "child_company_id"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "fuzzy_expanded_names": {
      +            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "search_name_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "child_company_ids",
      +          "family_members"
      +        ],
      +        "type": "object"
      +      },
      +      "former_subsidiaries": {
      +        "additionalProperties": {},
      +        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "freshness_summary": {
      +        "additionalProperties": {},
      +        "description": "Dataset freshness; state it in answers",
      +        "properties": {
      +          "covered_dataset_count": {
      +            "type": "number"
      +          },
      +          "expected_dataset_count": {
      +            "type": "number"
      +          },
      +          "freshest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "missing_dataset_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "newest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "older_datasets": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "as_of_date": {
      +                  "type": "string"
      +                },
      +                "dataset_id": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "dataset_id",
      +                "as_of_date"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "oldest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "stalest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "covered_dataset_count",
      +          "expected_dataset_count",
      +          "older_datasets",
      +          "missing_dataset_ids"
      +        ],
      +        "type": "object"
      +      },
      +      "highest_severity_signals": {
      +        "description": "Most serious findings first, each dated; lead answers with these",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "count": {
      +              "description": "Matching records of this type",
      +              "type": "number"
      +            },
      +            "last_5_years_count": {
      +              "description": "Records inside the recent window",
      +              "type": "number"
      +            },
      +            "most_recent_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "recent_window_start": {
      +              "type": "string"
      +            },
      +            "recommended_tool": {
      +              "description": "Tool that returns the underlying records",
      +              "type": "string"
      +            },
      +            "severity": {
      +              "description": "critical, high or medium",
      +              "type": "string"
      +            },
      +            "signal_type": {
      +              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      +              "type": "string"
      +            },
      +            "summary": {
      +              "description": "One-line reading of this signal, including its age",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "signal_type",
      +            "severity",
      +            "count",
      +            "last_5_years_count",
      +            "recent_window_start",
      +            "summary",
      +            "recommended_tool"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "import_risk": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "footprint_linked_refusal_count": {
      +            "type": "number"
      +          },
      +          "green_list_count": {
      +            "type": "number"
      +          },
      +          "import_alert_count": {
      +            "type": "number"
      +          },
      +          "import_refusal_count": {
      +            "type": "number"
      +          },
      +          "last_alert_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_refusal_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name_match_only_refusal_count": {
      +            "type": "number"
      +          },
      +          "recent_import_alerts": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_import_refusals": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "site_link": {
      +                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "red_list_count": {
      +            "description": "Red-list (detention without physical examination) entries",
      +            "type": "number"
      +          },
      +          "refusal_site_link_note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "import_alert_count",
      +          "red_list_count",
      +          "green_list_count",
      +          "recent_import_alerts",
      +          "import_refusal_count",
      +          "recent_import_refusals",
      +          "footprint_linked_refusal_count",
      +          "name_match_only_refusal_count"
      +        ],
      +        "type": "object"
      +      },
      +      "inspection_summary": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "last_inspection_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "nai": {
      +            "type": "number"
      +          },
      +          "oai": {
      +            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      +            "type": "number"
      +          },
      +          "total_inspections": {
      +            "type": "number"
      +          },
      +          "vai": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_inspections",
      +          "nai",
      +          "vai",
      +          "oai"
      +        ],
      +        "type": "object"
      +      },
      +      "integrity_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "debarment_count": {
      +            "type": "number"
      +          },
      +          "debarments": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "debarment_count",
      +          "debarments"
      +        ],
      +        "type": "object"
      +      },
      +      "matching_notes": {
      +        "description": "How names were matched",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_candidates": {
      +        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_note": {
      +        "type": "string"
      +      },
      +      "newest_as_of": {
      +        "description": "Newest source date (default compact freshness)",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "next_step": {
      +        "additionalProperties": {},
      +        "description": "Present when nothing matched",
      +        "properties": {
      +          "call": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "tool": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tool",
      +          "reason",
      +          "call"
      +        ],
      +        "type": "object"
      +      },
      +      "no_records_note": {
      +        "description": "Present when nothing matched: no matching records does not establish safety",
      +        "type": "string"
      +      },
      +      "notable_gaps": {
      +        "description": "Missing data, matching limits and stale sources; state these",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "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": {},
      +        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      +        "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"
      +      },
      +      "period": {
      +        "additionalProperties": {},
      +        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      +        "properties": {
      +          "date_from": {
      +            "description": "First day counted (YYYY-MM-DD), or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "date_to": {
      +            "description": "Last day counted (YYYY-MM-DD), or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "label": {
      +            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "date_from",
      +          "date_to",
      +          "label",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "possible_split_with": {
      +        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "recall_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "count_note": {
      +            "type": "string"
      +          },
      +          "ires_count": {
      +            "description": "Recalls in FDA iRES enforcement reports",
      +            "type": "number"
      +          },
      +          "last_ires_report_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_openfda_report_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "openfda_enforcement_count": {
      +            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      +            "type": "number"
      +          },
      +          "recent_ires_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_openfda_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls": {
      +            "description": "One entry per recall number, merged across both sources",
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "event_id": {
      +                  "description": "Event id, set when the recall number is not assigned yet",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "recall_number": {
      +                  "description": "FDA recall number. Null when FDA has not assigned one yet",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "recall_number_note": {
      +                  "description": "Present when FDA has not assigned a recall number yet",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "report_date": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "sources": {
      +                  "description": "ires, openfda or both",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls_note": {
      +            "type": "string"
      +          },
      +          "unique_recall_count": {
      +            "description": "Distinct recall numbers across both sources",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "ires_count",
      +          "recent_ires_enforcement",
      +          "openfda_enforcement_count",
      +          "recent_openfda_enforcement",
      +          "unique_recall_count",
      +          "count_note",
      +          "recent_recalls",
      +          "recent_recalls_note"
      +        ],
      +        "type": "object"
      +      },
      +      "recent_inspections": {
      +        "items": {
      +          "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": "array"
      +      },
      +      "recent_oii_records": {
      +        "description": "Form 483s and other OII reading-room documents",
      +        "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_warning_letters": {
      +        "description": "Warning letters from the letter index",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "letter_excerpt": {
      +              "description": "Start of the letter text",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_issue_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_text_status": {
      +              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_url": {
      +              "description": "Official FDA letter; cite it",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "warning_letter_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recommend_subsidiary_search": {
      +        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      +        "type": "boolean"
      +      },
      +      "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"
      +      },
      +      "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"
      +      },
      +      "unresolved_entities": {
      +        "additionalProperties": {},
      +        "description": "Related entities with no recorded ownership change; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "company_resolution",
      +      "coverage",
      +      "recommend_subsidiary_search",
      +      "matching_notes",
      +      "family_context",
      +      "freshness_summary",
      +      "facility_footprint",
      +      "inspection_summary",
      +      "recent_inspections",
      +      "document_text_coverage",
      +      "recent_warning_letters",
      +      "recent_oii_records",
      +      "import_risk",
      +      "integrity_signals",
      +      "recall_signals",
      +      "highest_severity_signals",
      +      "recommended_follow_ups",
      +      "notable_gaps"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": {},
      +    "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      +    "properties": {
      +      "attempted_tool": {
      +        "type": "string"
      +      },
      +      "auth_required": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "signup_url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "auth_required",
      +      "attempted_tool",
      +      "message",
      +      "signup_url"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      -    "properties": {
      -      "better_match_candidates": {
      -        "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "call": {
      -              "type": "string"
      -            },
      -            "company_id": {
      -              "type": "string"
      -            },
      -            "matched_alias": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "company_id",
      -            "matched_alias",
      -            "call"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "company_resolution": {
      -        "additionalProperties": {},
      -        "description": "Which company family the summary covers and how it was matched",
      -        "properties": {
      -          "aliases": {
      -            "description": "Alias list; empty unless verbose=true",
      -            "items": {},
      -            "type": "array"
      -          },
      -          "company_id": {
      -            "description": "Resolved family ID; counts cover this whole family",
      -            "type": "string"
      -          },
      -          "confidence": {
      -            "description": "Resolution confidence from 0 to 1",
      -            "type": "number"
      -          },
      -          "input_company": {
      -            "description": "Company name as asked",
      -            "type": "string"
      -          },
      -          "input_normalized": {
      -            "type": "string"
      -          },
      -          "matched_family_member": {
      -            "additionalProperties": {},
      -            "description": "The linked family member the input names",
      -            "properties": {
      -              "child_company_id": {
      -                "type": "string"
      -              },
      -              "relationship_type": {
      -                "description": "Relationship to the parent",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              },
      -              "source": {
      -                "description": "Where the relationship comes from",
      -                "type": [
      -                  "string",
      -                  "null"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "child_company_id"
      -            ],
      -            "type": "object"
      -          },
      -          "resolved_via": {
      -            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
      -            "type": "string"
      -          },
      -          "scope_note": {
      -            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "company_id",
      -          "input_company",
      -          "input_normalized",
      -          "resolved_via",
      -          "confidence",
      -          "aliases"
      -        ],
      -        "type": "object"
      -      },
      -      "coverage": {
      -        "description": "complete, low_confidence, no_alias_pack or possible_split",
      -        "type": "string"
      -      },
      -      "data_freshness": {
      -        "additionalProperties": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "as_of_date": {
      -              "type": "string"
      -            },
      -            "executed_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "executed_at",
      -            "as_of_date"
      -          ],
      -          "type": "object"
      -        },
      -        "description": "Per-dataset freshness; only when verbose=true",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "document_text_coverage": {
      -        "additionalProperties": {},
      -        "description": "How many returned letters and 483s carry extracted text",
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "facility_footprint": {
      -        "additionalProperties": {},
      -        "description": "Sites in the family; group findings by these",
      -        "properties": {
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "fei_number": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "firm_profile_url": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "scope_note": {
      -            "type": "string"
      -          },
      -          "see_also": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "call": {
      -                "type": "string"
      -              },
      -              "reason": {
      -                "type": "string"
      -              },
      -              "tool": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "tool",
      -              "reason",
      -              "call"
      -            ],
      -            "type": "object"
      -          },
      -          "total_count": {
      -            "description": "Facilities registered or inspected under the family's names",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_count",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "family_context": {
      -        "additionalProperties": {},
      -        "description": "Linked family members included in the counts",
      -        "properties": {
      -          "child_company_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "family_members": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "alias_count": {
      -                  "description": "Aliases for this member (alias lists only when verbose=true)",
      -                  "type": "number"
      -                },
      -                "child_company_id": {
      -                  "type": "string"
      -                },
      -                "relationship_type": {
      -                  "description": "subsidiary, division or another relationship",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "required": [
      -                "child_company_id"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "fuzzy_expanded_names": {
      -            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "search_name_count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "child_company_ids",
      -          "family_members"
      -        ],
      -        "type": "object"
      -      },
      -      "former_subsidiaries": {
      -        "additionalProperties": {},
      -        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "freshness_summary": {
      -        "additionalProperties": {},
      -        "description": "Dataset freshness; state it in answers",
      -        "properties": {
      -          "covered_dataset_count": {
      -            "type": "number"
      -          },
      -          "expected_dataset_count": {
      -            "type": "number"
      -          },
      -          "freshest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "missing_dataset_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "newest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "older_datasets": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "as_of_date": {
      -                  "type": "string"
      -                },
      -                "dataset_id": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "dataset_id",
      -                "as_of_date"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "oldest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "stalest_as_of_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "covered_dataset_count",
      -          "expected_dataset_count",
      -          "older_datasets",
      -          "missing_dataset_ids"
      -        ],
      -        "type": "object"
      -      },
      -      "highest_severity_signals": {
      -        "description": "Most serious findings first, each dated; lead answers with these",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "count": {
      -              "description": "Matching records of this type",
      -              "type": "number"
      -            },
      -            "last_5_years_count": {
      -              "description": "Records inside the recent window",
      -              "type": "number"
      -            },
      -            "most_recent_date": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "recent_window_start": {
      -              "type": "string"
      -            },
      -            "recommended_tool": {
      -              "description": "Tool that returns the underlying records",
      -              "type": "string"
      -            },
      -            "severity": {
      -              "description": "critical, high or medium",
      -              "type": "string"
      -            },
      -            "signal_type": {
      -              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      -              "type": "string"
      -            },
      -            "summary": {
      -              "description": "One-line reading of this signal, including its age",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "signal_type",
      -            "severity",
      -            "count",
      -            "last_5_years_count",
      -            "recent_window_start",
      -            "summary",
      -            "recommended_tool"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "import_risk": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "footprint_linked_refusal_count": {
      -            "type": "number"
      -          },
      -          "green_list_count": {
      -            "type": "number"
      -          },
      -          "import_alert_count": {
      -            "type": "number"
      -          },
      -          "import_refusal_count": {
      -            "type": "number"
      -          },
      -          "last_alert_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "last_refusal_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "name_match_only_refusal_count": {
      -            "type": "number"
      -          },
      -          "recent_import_alerts": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_import_refusals": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "site_link": {
      -                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "red_list_count": {
      -            "description": "Red-list (detention without physical examination) entries",
      -            "type": "number"
      -          },
      -          "refusal_site_link_note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "import_alert_count",
      -          "red_list_count",
      -          "green_list_count",
      -          "recent_import_alerts",
      -          "import_refusal_count",
      -          "recent_import_refusals",
      -          "footprint_linked_refusal_count",
      -          "name_match_only_refusal_count"
      -        ],
      -        "type": "object"
      -      },
      -      "inspection_summary": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "last_inspection_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "nai": {
      -            "type": "number"
      -          },
      -          "oai": {
      -            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      -            "type": "number"
      -          },
      -          "total_inspections": {
      -            "type": "number"
      -          },
      -          "vai": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_inspections",
      -          "nai",
      -          "vai",
      -          "oai"
      -        ],
      -        "type": "object"
      -      },
      -      "integrity_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "debarment_count": {
      -            "type": "number"
      -          },
      -          "debarments": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "debarment_count",
      -          "debarments"
      -        ],
      -        "type": "object"
      -      },
      -      "matching_notes": {
      -        "description": "How names were matched",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_candidates": {
      -        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_note": {
      -        "type": "string"
      -      },
      -      "newest_as_of": {
      -        "description": "Newest source date (default compact freshness)",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "next_step": {
      -        "additionalProperties": {},
      -        "description": "Present when nothing matched",
      -        "properties": {
      -          "call": {
      -            "type": "string"
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "tool": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "tool",
      -          "reason",
      -          "call"
      -        ],
      -        "type": "object"
      -      },
      -      "no_records_note": {
      -        "description": "Present when nothing matched: no matching records does not establish safety",
      -        "type": "string"
      -      },
      -      "notable_gaps": {
      -        "description": "Missing data, matching limits and stale sources; state these",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "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": {},
      -        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      -        "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"
      -      },
      -      "period": {
      -        "additionalProperties": {},
      -        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      -        "properties": {
      -          "date_from": {
      -            "description": "First day counted (YYYY-MM-DD), or null",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "date_to": {
      -            "description": "Last day counted (YYYY-MM-DD), or null",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "label": {
      -            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      -            "type": "string"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "date_from",
      -          "date_to",
      -          "label",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "possible_split_with": {
      -        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "recall_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "count_note": {
      -            "type": "string"
      -          },
      -          "ires_count": {
      -            "description": "Recalls in FDA iRES enforcement reports",
      -            "type": "number"
      -          },
      -          "last_ires_report_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "last_openfda_report_date": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "openfda_enforcement_count": {
      -            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      -            "type": "number"
      -          },
      -          "recent_ires_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_openfda_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls": {
      -            "description": "One entry per recall number, merged across both sources",
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "recall_number": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "report_date": {
      -                  "type": [
      -                    "string",
      -                    "null"
      -                  ]
      -                },
      -                "sources": {
      -                  "description": "ires, openfda or both",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls_note": {
      -            "type": "string"
      -          },
      -          "unique_recall_count": {
      -            "description": "Distinct recall numbers across both sources",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "ires_count",
      -          "recent_ires_enforcement",
      -          "openfda_enforcement_count",
      -          "recent_openfda_enforcement",
      -          "unique_recall_count",
      -          "count_note",
      -          "recent_recalls",
      -          "recent_recalls_note"
      -        ],
      -        "type": "object"
      -      },
      -      "recent_inspections": {
      -        "items": {
      -          "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": "array"
      -      },
      -      "recent_oii_records": {
      -        "description": "Form 483s and other OII reading-room documents",
      -        "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_warning_letters": {
      -        "description": "Warning letters from the letter index",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "letter_excerpt": {
      -              "description": "Start of the letter text",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "letter_issue_date": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "letter_text_status": {
      -              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "letter_url": {
      -              "description": "Official FDA letter; cite it",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "warning_letter_id": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "recommend_subsidiary_search": {
      -        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      -        "type": "boolean"
      -      },
      -      "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"
      -      },
      -      "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"
      -      },
      -      "unresolved_entities": {
      -        "additionalProperties": {},
      -        "description": "Related entities with no recorded ownership change; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "company_resolution",
      -      "coverage",
      -      "recommend_subsidiary_search",
      -      "matching_notes",
      -      "family_context",
      -      "freshness_summary",
      -      "facility_footprint",
      -      "inspection_summary",
      -      "recent_inspections",
      -      "document_text_coverage",
      -      "recent_warning_letters",
      -      "recent_oii_records",
      -      "import_risk",
      -      "integrity_signals",
      -      "recall_signals",
      -      "highest_severity_signals",
      -      "recommended_follow_ups",
      -      "notable_gaps"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      -    "properties": {
      -      "attempted_tool": {
      -        "type": "string"
      -      },
      -      "auth_required": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "signup_url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "auth_required",
      -      "attempted_tool",
      -      "message",
      -      "signup_url"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      +    "properties": {
      +      "better_match_candidates": {
      +        "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "call": {
      +              "type": "string"
      +            },
      +            "company_id": {
      +              "type": "string"
      +            },
      +            "matched_alias": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "company_id",
      +            "matched_alias",
      +            "call"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "company_resolution": {
      +        "additionalProperties": {},
      +        "description": "Which company family the summary covers and how it was matched",
      +        "properties": {
      +          "aliases": {
      +            "description": "Alias list; empty unless verbose=true",
      +            "items": {},
      +            "type": "array"
      +          },
      +          "company_id": {
      +            "description": "Resolved family ID; counts cover this whole family",
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "description": "Resolution confidence from 0 to 1",
      +            "type": "number"
      +          },
      +          "input_company": {
      +            "description": "Company name as asked",
      +            "type": "string"
      +          },
      +          "input_normalized": {
      +            "type": "string"
      +          },
      +          "matched_family_member": {
      +            "additionalProperties": {},
      +            "description": "The linked family member the input names",
      +            "properties": {
      +              "child_company_id": {
      +                "type": "string"
      +              },
      +              "relationship_type": {
      +                "description": "Relationship to the parent",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "source": {
      +                "description": "Where the relationship comes from",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "child_company_id"
      +            ],
      +            "type": "object"
      +          },
      +          "resolved_via": {
      +            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
      +            "type": "string"
      +          },
      +          "scope_note": {
      +            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "company_id",
      +          "input_company",
      +          "input_normalized",
      +          "resolved_via",
      +          "confidence",
      +          "aliases"
      +        ],
      +        "type": "object"
      +      },
      +      "coverage": {
      +        "description": "complete, low_confidence, no_alias_pack or possible_split",
      +        "type": "string"
      +      },
      +      "data_freshness": {
      +        "additionalProperties": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "as_of_date": {
      +              "type": "string"
      +            },
      +            "executed_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "executed_at",
      +            "as_of_date"
      +          ],
      +          "type": "object"
      +        },
      +        "description": "Per-dataset freshness; only when verbose=true",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "document_text_coverage": {
      +        "additionalProperties": {},
      +        "description": "How many returned letters and 483s carry extracted text",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "facility_footprint": {
      +        "additionalProperties": {},
      +        "description": "Sites in the family; group findings by these",
      +        "properties": {
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "fei_number": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "firm_profile_url": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "scope_note": {
      +            "type": "string"
      +          },
      +          "see_also": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "call": {
      +                "type": "string"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "tool": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tool",
      +              "reason",
      +              "call"
      +            ],
      +            "type": "object"
      +          },
      +          "total_count": {
      +            "description": "Facilities registered or inspected under the family's names",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_count",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "family_context": {
      +        "additionalProperties": {},
      +        "description": "Linked family members included in the counts",
      +        "properties": {
      +          "child_company_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "family_members": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "alias_count": {
      +                  "description": "Aliases for this member (alias lists only when verbose=true)",
      +                  "type": "number"
      +                },
      +                "child_company_id": {
      +                  "type": "string"
      +                },
      +                "relationship_type": {
      +                  "description": "subsidiary, division or another relationship",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "child_company_id"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "fuzzy_expanded_names": {
      +            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "search_name_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "child_company_ids",
      +          "family_members"
      +        ],
      +        "type": "object"
      +      },
      +      "former_subsidiaries": {
      +        "additionalProperties": {},
      +        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "freshness_summary": {
      +        "additionalProperties": {},
      +        "description": "Dataset freshness; state it in answers",
      +        "properties": {
      +          "covered_dataset_count": {
      +            "type": "number"
      +          },
      +          "expected_dataset_count": {
      +            "type": "number"
      +          },
      +          "freshest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "missing_dataset_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "newest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "older_datasets": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "as_of_date": {
      +                  "type": "string"
      +                },
      +                "dataset_id": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "dataset_id",
      +                "as_of_date"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "oldest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "stalest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "covered_dataset_count",
      +          "expected_dataset_count",
      +          "older_datasets",
      +          "missing_dataset_ids"
      +        ],
      +        "type": "object"
      +      },
      +      "highest_severity_signals": {
      +        "description": "Most serious findings first, each dated; lead answers with these",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "count": {
      +              "description": "Matching records of this type",
      +              "type": "number"
      +            },
      +            "last_5_years_count": {
      +              "description": "Records inside the recent window",
      +              "type": "number"
      +            },
      +            "most_recent_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "recent_window_start": {
      +              "type": "string"
      +            },
      +            "recommended_tool": {
      +              "description": "Tool that returns the underlying records",
      +              "type": "string"
      +            },
      +            "severity": {
      +              "description": "critical, high or medium",
      +              "type": "string"
      +            },
      +            "signal_type": {
      +              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      +              "type": "string"
      +            },
      +            "summary": {
      +              "description": "One-line reading of this signal, including its age",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "signal_type",
      +            "severity",
      +            "count",
      +            "last_5_years_count",
      +            "recent_window_start",
      +            "summary",
      +            "recommended_tool"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "import_risk": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "footprint_linked_refusal_count": {
      +            "type": "number"
      +          },
      +          "green_list_count": {
      +            "type": "number"
      +          },
      +          "import_alert_count": {
      +            "type": "number"
      +          },
      +          "import_refusal_count": {
      +            "type": "number"
      +          },
      +          "last_alert_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_refusal_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name_match_only_refusal_count": {
      +            "type": "number"
      +          },
      +          "recent_import_alerts": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_import_refusals": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "site_link": {
      +                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "red_list_count": {
      +            "description": "Red-list (detention without physical examination) entries",
      +            "type": "number"
      +          },
      +          "refusal_site_link_note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "import_alert_count",
      +          "red_list_count",
      +          "green_list_count",
      +          "recent_import_alerts",
      +          "import_refusal_count",
      +          "recent_import_refusals",
      +          "footprint_linked_refusal_count",
      +          "name_match_only_refusal_count"
      +        ],
      +        "type": "object"
      +      },
      +      "inspection_summary": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "last_inspection_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "nai": {
      +            "type": "number"
      +          },
      +          "oai": {
      +            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      +            "type": "number"
      +          },
      +          "total_inspections": {
      +            "type": "number"
      +          },
      +          "vai": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_inspections",
      +          "nai",
      +          "vai",
      +          "oai"
      +        ],
      +        "type": "object"
      +      },
      +      "integrity_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "debarment_count": {
      +            "type": "number"
      +          },
      +          "debarments": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "debarment_count",
      +          "debarments"
      +        ],
      +        "type": "object"
      +      },
      +      "matching_notes": {
      +        "description": "How names were matched",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_candidates": {
      +        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_note": {
      +        "type": "string"
      +      },
      +      "newest_as_of": {
      +        "description": "Newest source date (default compact freshness)",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "next_step": {
      +        "additionalProperties": {},
      +        "description": "Present when nothing matched",
      +        "properties": {
      +          "call": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "tool": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tool",
      +          "reason",
      +          "call"
      +        ],
      +        "type": "object"
      +      },
      +      "no_records_note": {
      +        "description": "Present when nothing matched: no matching records does not establish safety",
      +        "type": "string"
      +      },
      +      "notable_gaps": {
      +        "description": "Missing data, matching limits and stale sources; state these",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "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": {},
      +        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      +        "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"
      +      },
      +      "period": {
      +        "additionalProperties": {},
      +        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      +        "properties": {
      +          "date_from": {
      +            "description": "First day counted (YYYY-MM-DD), or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "date_to": {
      +            "description": "Last day counted (YYYY-MM-DD), or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "label": {
      +            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "date_from",
      +          "date_to",
      +          "label",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "possible_split_with": {
      +        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "recall_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "count_note": {
      +            "type": "string"
      +          },
      +          "ires_count": {
      +            "description": "Recalls in FDA iRES enforcement reports",
      +            "type": "number"
      +          },
      +          "last_ires_report_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_openfda_report_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "openfda_enforcement_count": {
      +            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      +            "type": "number"
      +          },
      +          "recent_ires_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_openfda_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls": {
      +            "description": "One entry per recall number, merged across both sources",
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "recall_number": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "report_date": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "sources": {
      +                  "description": "ires, openfda or both",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls_note": {
      +            "type": "string"
      +          },
      +          "unique_recall_count": {
      +            "description": "Distinct recall numbers across both sources",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "ires_count",
      +          "recent_ires_enforcement",
      +          "openfda_enforcement_count",
      +          "recent_openfda_enforcement",
      +          "unique_recall_count",
      +          "count_note",
      +          "recent_recalls",
      +          "recent_recalls_note"
      +        ],
      +        "type": "object"
      +      },
      +      "recent_inspections": {
      +        "items": {
      +          "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": "array"
      +      },
      +      "recent_oii_records": {
      +        "description": "Form 483s and other OII reading-room documents",
      +        "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_warning_letters": {
      +        "description": "Warning letters from the letter index",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "letter_excerpt": {
      +              "description": "Start of the letter text",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_issue_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_text_status": {
      +              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_url": {
      +              "description": "Official FDA letter; cite it",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "warning_letter_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recommend_subsidiary_search": {
      +        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      +        "type": "boolean"
      +      },
      +      "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"
      +      },
      +      "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"
      +      },
      +      "unresolved_entities": {
      +        "additionalProperties": {},
      +        "description": "Related entities with no recorded ownership change; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "company_resolution",
      +      "coverage",
      +      "recommend_subsidiary_search",
      +      "matching_notes",
      +      "family_context",
      +      "freshness_summary",
      +      "facility_footprint",
      +      "inspection_summary",
      +      "recent_inspections",
      +      "document_text_coverage",
      +      "recent_warning_letters",
      +      "recent_oii_records",
      +      "import_risk",
      +      "integrity_signals",
      +      "recall_signals",
      +      "highest_severity_signals",
      +      "recommended_follow_ups",
      +      "notable_gaps"
      +    ],
      +    "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"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      -    "properties": {
      -      "better_match_candidates": {
      -        "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "call": {
      -              "type": "string"
      -            },
      -            "company_id": {
      -              "type": "string"
      -            },
      -            "matched_alias": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "company_id",
      -            "matched_alias",
      -            "call"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "company_resolution": {
      -        "additionalProperties": {},
      -        "description": "Which company family the summary covers and how it was matched",
      -        "properties": {
      -          "aliases": {
      -            "description": "Alias list; empty unless verbose=true",
      -            "items": {},
      -            "type": "array"
      -          },
      -          "company_id": {
      -            "description": "Resolved family ID; counts cover this whole family",
      -            "type": "string"
      -          },
      -          "confidence": {
      -            "description": "Resolution confidence from 0 to 1",
      -            "type": "number"
      -          },
      -          "input_company": {
      -            "description": "Company name as asked",
      -            "type": "string"
      -          },
      -          "input_normalized": {
      -            "type": "string"
      -          },
      -          "matched_family_member": {
      -            "additionalProperties": {},
      -            "description": "The linked family member the input names",
      -            "properties": {
      -              "child_company_id": {
      -                "type": "string"
      -              },
      -              "relationship_type": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Relationship to the parent"
      -              },
      -              "source": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Where the relationship comes from"
      -              }
      -            },
      -            "required": [
      -              "child_company_id"
      -            ],
      -            "type": "object"
      -          },
      -          "resolved_via": {
      -            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
      -            "type": "string"
      -          },
      -          "scope_note": {
      -            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "company_id",
      -          "input_company",
      -          "input_normalized",
      -          "resolved_via",
      -          "confidence",
      -          "aliases"
      -        ],
      -        "type": "object"
      -      },
      -      "coverage": {
      -        "description": "complete, low_confidence, no_alias_pack or possible_split",
      -        "type": "string"
      -      },
      -      "data_freshness": {
      -        "additionalProperties": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "as_of_date": {
      -              "type": "string"
      -            },
      -            "executed_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "executed_at",
      -            "as_of_date"
      -          ],
      -          "type": "object"
      -        },
      -        "description": "Per-dataset freshness; only when verbose=true",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "document_text_coverage": {
      -        "additionalProperties": {},
      -        "description": "How many returned letters and 483s carry extracted text",
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "facility_footprint": {
      -        "additionalProperties": {},
      -        "description": "Sites in the family; group findings by these",
      -        "properties": {
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "fei_number": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "firm_profile_url": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "scope_note": {
      -            "type": "string"
      -          },
      -          "see_also": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "call": {
      -                "type": "string"
      -              },
      -              "reason": {
      -                "type": "string"
      -              },
      -              "tool": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "tool",
      -              "reason",
      -              "call"
      -            ],
      -            "type": "object"
      -          },
      -          "total_count": {
      -            "description": "Facilities registered or inspected under the family's names",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_count",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "family_context": {
      -        "additionalProperties": {},
      -        "description": "Linked family members included in the counts",
      -        "properties": {
      -          "child_company_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "family_members": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "alias_count": {
      -                  "description": "Aliases for this member (alias lists only when verbose=true)",
      -                  "type": "number"
      -                },
      -                "child_company_id": {
      -                  "type": "string"
      -                },
      -                "relationship_type": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "subsidiary, division or another relationship"
      -                }
      -              },
      -              "required": [
      -                "child_company_id"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "fuzzy_expanded_names": {
      -            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "search_name_count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "child_company_ids",
      -          "family_members"
      -        ],
      -        "type": "object"
      -      },
      -      "former_subsidiaries": {
      -        "additionalProperties": {},
      -        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "freshness_summary": {
      -        "additionalProperties": {},
      -        "description": "Dataset freshness; state it in answers",
      -        "properties": {
      -          "covered_dataset_count": {
      -            "type": "number"
      -          },
      -          "expected_dataset_count": {
      -            "type": "number"
      -          },
      -          "freshest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "missing_dataset_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "newest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "older_datasets": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "as_of_date": {
      -                  "type": "string"
      -                },
      -                "dataset_id": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "dataset_id",
      -                "as_of_date"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "oldest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "stalest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "covered_dataset_count",
      -          "expected_dataset_count",
      -          "older_datasets",
      -          "missing_dataset_ids"
      -        ],
      -        "type": "object"
      -      },
      -      "highest_severity_signals": {
      -        "description": "Most serious findings first, each dated; lead answers with these",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "count": {
      -              "description": "Matching records of this type",
      -              "type": "number"
      -            },
      -            "last_5_years_count": {
      -              "description": "Records inside the recent window",
      -              "type": "number"
      -            },
      -            "most_recent_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "recent_window_start": {
      -              "type": "string"
      -            },
      -            "recommended_tool": {
      -              "description": "Tool that returns the underlying records",
      -              "type": "string"
      -            },
      -            "severity": {
      -              "description": "critical, high or medium",
      -              "type": "string"
      -            },
      -            "signal_type": {
      -              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      -              "type": "string"
      -            },
      -            "summary": {
      -              "description": "One-line reading of this signal, including its age",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "signal_type",
      -            "severity",
      -            "count",
      -            "last_5_years_count",
      -            "recent_window_start",
      -            "summary",
      -            "recommended_tool"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "import_risk": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "footprint_linked_refusal_count": {
      -            "type": "number"
      -          },
      -          "green_list_count": {
      -            "type": "number"
      -          },
      -          "import_alert_count": {
      -            "type": "number"
      -          },
      -          "import_refusal_count": {
      -            "type": "number"
      -          },
      -          "last_alert_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_refusal_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "name_match_only_refusal_count": {
      -            "type": "number"
      -          },
      -          "recent_import_alerts": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_import_refusals": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "site_link": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "red_list_count": {
      -            "description": "Red-list (detention without physical examination) entries",
      -            "type": "number"
      -          },
      -          "refusal_site_link_note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "import_alert_count",
      -          "red_list_count",
      -          "green_list_count",
      -          "recent_import_alerts",
      -          "import_refusal_count",
      -          "recent_import_refusals",
      -          "footprint_linked_refusal_count",
      -          "name_match_only_refusal_count"
      -        ],
      -        "type": "object"
      -      },
      -      "inspection_summary": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "last_inspection_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "nai": {
      -            "type": "number"
      -          },
      -          "oai": {
      -            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      -            "type": "number"
      -          },
      -          "total_inspections": {
      -            "type": "number"
      -          },
      -          "vai": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_inspections",
      -          "nai",
      -          "vai",
      -          "oai"
      -        ],
      -        "type": "object"
      -      },
      -      "integrity_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "debarment_count": {
      -            "type": "number"
      -          },
      -          "debarments": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "debarment_count",
      -          "debarments"
      -        ],
      -        "type": "object"
      -      },
      -      "matching_notes": {
      -        "description": "How names were matched",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_candidates": {
      -        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_note": {
      -        "type": "string"
      -      },
      -      "newest_as_of": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Newest source date (default compact freshness)"
      -      },
      -      "next_step": {
      -        "additionalProperties": {},
      -        "description": "Present when nothing matched",
      -        "properties": {
      -          "call": {
      -            "type": "string"
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "tool": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "tool",
      -          "reason",
      -          "call"
      -        ],
      -        "type": "object"
      -      },
      -      "no_records_note": {
      -        "description": "Present when nothing matched: no matching records does not establish safety",
      -        "type": "string"
      -      },
      -      "notable_gaps": {
      -        "description": "Missing data, matching limits and stale sources; state these",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "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": {},
      -        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      -        "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"
      -      },
      -      "period": {
      -        "additionalProperties": {},
      -        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      -        "properties": {
      -          "date_from": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "First day counted (YYYY-MM-DD), or null"
      -          },
      -          "date_to": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Last day counted (YYYY-MM-DD), or null"
      -          },
      -          "label": {
      -            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      -            "type": "string"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "date_from",
      -          "date_to",
      -          "label",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "possible_split_with": {
      -        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "recall_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "count_note": {
      -            "type": "string"
      -          },
      -          "ires_count": {
      -            "description": "Recalls in FDA iRES enforcement reports",
      -            "type": "number"
      -          },
      -          "last_ires_report_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_openfda_report_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "openfda_enforcement_count": {
      -            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      -            "type": "number"
      -          },
      -          "recent_ires_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_openfda_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls": {
      -            "description": "One entry per recall number, merged across both sources",
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "recall_number": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "report_date": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "sources": {
      -                  "description": "ires, openfda or both",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls_note": {
      -            "type": "string"
      -          },
      -          "unique_recall_count": {
      -            "description": "Distinct recall numbers across both sources",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "ires_count",
      -          "recent_ires_enforcement",
      -          "openfda_enforcement_count",
      -          "recent_openfda_enforcement",
      -          "unique_recall_count",
      -          "count_note",
      -          "recent_recalls",
      -          "recent_recalls_note"
      -        ],
      -        "type": "object"
      -      },
      -      "recent_inspections": {
      -        "items": {
      -          "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": "array"
      -      },
      -      "recent_oii_records": {
      -        "description": "Form 483s and other OII reading-room documents",
      -        "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_warning_letters": {
      -        "description": "Warning letters from the letter index",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "letter_excerpt": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Start of the letter text"
      -            },
      -            "letter_issue_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "letter_text_status": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable"
      -            },
      -            "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"
      -      },
      -      "recommend_subsidiary_search": {
      -        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      -        "type": "boolean"
      -      },
      -      "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"
      -      },
      -      "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"
      -      },
      -      "unresolved_entities": {
      -        "additionalProperties": {},
      -        "description": "Related entities with no recorded ownership change; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "company_resolution",
      -      "coverage",
      -      "recommend_subsidiary_search",
      -      "matching_notes",
      -      "family_context",
      -      "freshness_summary",
      -      "facility_footprint",
      -      "inspection_summary",
      -      "recent_inspections",
      -      "document_text_coverage",
      -      "recent_warning_letters",
      -      "recent_oii_records",
      -      "import_risk",
      -      "integrity_signals",
      -      "recall_signals",
      -      "highest_severity_signals",
      -      "recommended_follow_ups",
      -      "notable_gaps"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      -    "properties": {
      -      "attempted_tool": {
      -        "type": "string"
      -      },
      -      "auth_required": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "signup_url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "auth_required",
      -      "attempted_tool",
      -      "message",
      -      "signup_url"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      +    "properties": {
      +      "better_match_candidates": {
      +        "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "call": {
      +              "type": "string"
      +            },
      +            "company_id": {
      +              "type": "string"
      +            },
      +            "matched_alias": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "company_id",
      +            "matched_alias",
      +            "call"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "company_resolution": {
      +        "additionalProperties": {},
      +        "description": "Which company family the summary covers and how it was matched",
      +        "properties": {
      +          "aliases": {
      +            "description": "Alias list; empty unless verbose=true",
      +            "items": {},
      +            "type": "array"
      +          },
      +          "company_id": {
      +            "description": "Resolved family ID; counts cover this whole family",
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "description": "Resolution confidence from 0 to 1",
      +            "type": "number"
      +          },
      +          "input_company": {
      +            "description": "Company name as asked",
      +            "type": "string"
      +          },
      +          "input_normalized": {
      +            "type": "string"
      +          },
      +          "matched_family_member": {
      +            "additionalProperties": {},
      +            "description": "The linked family member the input names",
      +            "properties": {
      +              "child_company_id": {
      +                "type": "string"
      +              },
      +              "relationship_type": {
      +                "description": "Relationship to the parent",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "source": {
      +                "description": "Where the relationship comes from",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "child_company_id"
      +            ],
      +            "type": "object"
      +          },
      +          "resolved_via": {
      +            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
      +            "type": "string"
      +          },
      +          "scope_note": {
      +            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "company_id",
      +          "input_company",
      +          "input_normalized",
      +          "resolved_via",
      +          "confidence",
      +          "aliases"
      +        ],
      +        "type": "object"
      +      },
      +      "coverage": {
      +        "description": "complete, low_confidence, no_alias_pack or possible_split",
      +        "type": "string"
      +      },
      +      "data_freshness": {
      +        "additionalProperties": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "as_of_date": {
      +              "type": "string"
      +            },
      +            "executed_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "executed_at",
      +            "as_of_date"
      +          ],
      +          "type": "object"
      +        },
      +        "description": "Per-dataset freshness; only when verbose=true",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "document_text_coverage": {
      +        "additionalProperties": {},
      +        "description": "How many returned letters and 483s carry extracted text",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "facility_footprint": {
      +        "additionalProperties": {},
      +        "description": "Sites in the family; group findings by these",
      +        "properties": {
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "fei_number": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "firm_profile_url": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "scope_note": {
      +            "type": "string"
      +          },
      +          "see_also": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "call": {
      +                "type": "string"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "tool": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tool",
      +              "reason",
      +              "call"
      +            ],
      +            "type": "object"
      +          },
      +          "total_count": {
      +            "description": "Facilities registered or inspected under the family's names",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_count",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "family_context": {
      +        "additionalProperties": {},
      +        "description": "Linked family members included in the counts",
      +        "properties": {
      +          "child_company_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "family_members": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "alias_count": {
      +                  "description": "Aliases for this member (alias lists only when verbose=true)",
      +                  "type": "number"
      +                },
      +                "child_company_id": {
      +                  "type": "string"
      +                },
      +                "relationship_type": {
      +                  "description": "subsidiary, division or another relationship",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "child_company_id"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "fuzzy_expanded_names": {
      +            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "search_name_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "child_company_ids",
      +          "family_members"
      +        ],
      +        "type": "object"
      +      },
      +      "former_subsidiaries": {
      +        "additionalProperties": {},
      +        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "freshness_summary": {
      +        "additionalProperties": {},
      +        "description": "Dataset freshness; state it in answers",
      +        "properties": {
      +          "covered_dataset_count": {
      +            "type": "number"
      +          },
      +          "expected_dataset_count": {
      +            "type": "number"
      +          },
      +          "freshest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "missing_dataset_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "newest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "older_datasets": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "as_of_date": {
      +                  "type": "string"
      +                },
      +                "dataset_id": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "dataset_id",
      +                "as_of_date"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "oldest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "stalest_as_of_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "covered_dataset_count",
      +          "expected_dataset_count",
      +          "older_datasets",
      +          "missing_dataset_ids"
      +        ],
      +        "type": "object"
      +      },
      +      "highest_severity_signals": {
      +        "description": "Most serious findings first, each dated; lead answers with these",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "count": {
      +              "description": "Matching records of this type",
      +              "type": "number"
      +            },
      +            "last_5_years_count": {
      +              "description": "Records inside the recent window",
      +              "type": "number"
      +            },
      +            "most_recent_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "recent_window_start": {
      +              "type": "string"
      +            },
      +            "recommended_tool": {
      +              "description": "Tool that returns the underlying records",
      +              "type": "string"
      +            },
      +            "severity": {
      +              "description": "critical, high or medium",
      +              "type": "string"
      +            },
      +            "signal_type": {
      +              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      +              "type": "string"
      +            },
      +            "summary": {
      +              "description": "One-line reading of this signal, including its age",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "signal_type",
      +            "severity",
      +            "count",
      +            "last_5_years_count",
      +            "recent_window_start",
      +            "summary",
      +            "recommended_tool"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "import_risk": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "footprint_linked_refusal_count": {
      +            "type": "number"
      +          },
      +          "green_list_count": {
      +            "type": "number"
      +          },
      +          "import_alert_count": {
      +            "type": "number"
      +          },
      +          "import_refusal_count": {
      +            "type": "number"
      +          },
      +          "last_alert_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_refusal_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name_match_only_refusal_count": {
      +            "type": "number"
      +          },
      +          "recent_import_alerts": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_import_refusals": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "site_link": {
      +                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "red_list_count": {
      +            "description": "Red-list (detention without physical examination) entries",
      +            "type": "number"
      +          },
      +          "refusal_site_link_note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "import_alert_count",
      +          "red_list_count",
      +          "green_list_count",
      +          "recent_import_alerts",
      +          "import_refusal_count",
      +          "recent_import_refusals",
      +          "footprint_linked_refusal_count",
      +          "name_match_only_refusal_count"
      +        ],
      +        "type": "object"
      +      },
      +      "inspection_summary": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "last_inspection_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "nai": {
      +            "type": "number"
      +          },
      +          "oai": {
      +            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      +            "type": "number"
      +          },
      +          "total_inspections": {
      +            "type": "number"
      +          },
      +          "vai": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_inspections",
      +          "nai",
      +          "vai",
      +          "oai"
      +        ],
      +        "type": "object"
      +      },
      +      "integrity_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "debarment_count": {
      +            "type": "number"
      +          },
      +          "debarments": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "debarment_count",
      +          "debarments"
      +        ],
      +        "type": "object"
      +      },
      +      "matching_notes": {
      +        "description": "How names were matched",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_candidates": {
      +        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_note": {
      +        "type": "string"
      +      },
      +      "newest_as_of": {
      +        "description": "Newest source date (default compact freshness)",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "next_step": {
      +        "additionalProperties": {},
      +        "description": "Present when nothing matched",
      +        "properties": {
      +          "call": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "tool": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tool",
      +          "reason",
      +          "call"
      +        ],
      +        "type": "object"
      +      },
      +      "no_records_note": {
      +        "description": "Present when nothing matched: no matching records does not establish safety",
      +        "type": "string"
      +      },
      +      "notable_gaps": {
      +        "description": "Missing data, matching limits and stale sources; state these",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "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": {},
      +        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      +        "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"
      +      },
      +      "period": {
      +        "additionalProperties": {},
      +        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      +        "properties": {
      +          "date_from": {
      +            "description": "First day counted (YYYY-MM-DD), or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "date_to": {
      +            "description": "Last day counted (YYYY-MM-DD), or null",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "label": {
      +            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "date_from",
      +          "date_to",
      +          "label",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "possible_split_with": {
      +        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "recall_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "count_note": {
      +            "type": "string"
      +          },
      +          "ires_count": {
      +            "description": "Recalls in FDA iRES enforcement reports",
      +            "type": "number"
      +          },
      +          "last_ires_report_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_openfda_report_date": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "openfda_enforcement_count": {
      +            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      +            "type": "number"
      +          },
      +          "recent_ires_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_openfda_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls": {
      +            "description": "One entry per recall number, merged across both sources",
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "recall_number": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "report_date": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "sources": {
      +                  "description": "ires, openfda or both",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls_note": {
      +            "type": "string"
      +          },
      +          "unique_recall_count": {
      +            "description": "Distinct recall numbers across both sources",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "ires_count",
      +          "recent_ires_enforcement",
      +          "openfda_enforcement_count",
      +          "recent_openfda_enforcement",
      +          "unique_recall_count",
      +          "count_note",
      +          "recent_recalls",
      +          "recent_recalls_note"
      +        ],
      +        "type": "object"
      +      },
      +      "recent_inspections": {
      +        "items": {
      +          "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": "array"
      +      },
      +      "recent_oii_records": {
      +        "description": "Form 483s and other OII reading-room documents",
      +        "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_warning_letters": {
      +        "description": "Warning letters from the letter index",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "letter_excerpt": {
      +              "description": "Start of the letter text",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_issue_date": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_text_status": {
      +              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "letter_url": {
      +              "description": "Official FDA letter; cite it",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "warning_letter_id": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "recommend_subsidiary_search": {
      +        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      +        "type": "boolean"
      +      },
      +      "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"
      +      },
      +      "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"
      +      },
      +      "unresolved_entities": {
      +        "additionalProperties": {},
      +        "description": "Related entities with no recorded ownership change; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "company_resolution",
      +      "coverage",
      +      "recommend_subsidiary_search",
      +      "matching_notes",
      +      "family_context",
      +      "freshness_summary",
      +      "facility_footprint",
      +      "inspection_summary",
      +      "recent_inspections",
      +      "document_text_coverage",
      +      "recent_warning_letters",
      +      "recent_oii_records",
      +      "import_risk",
      +      "integrity_signals",
      +      "recall_signals",
      +      "highest_severity_signals",
      +      "recommended_follow_ups",
      +      "notable_gaps"
      +    ],
      +    "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"
      +  }
      +]
  4. Changed1 schema field changed
    • changedOutput schema / properties / data / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {},
      -    "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      -    "properties": {
      -      "company_resolution": {
      -        "additionalProperties": {},
      -        "description": "Which company family the summary covers and how it was matched",
      -        "properties": {
      -          "aliases": {
      -            "description": "Alias list; empty unless verbose=true",
      -            "items": {},
      -            "type": "array"
      -          },
      -          "company_id": {
      -            "description": "Resolved family ID; counts cover this whole family",
      -            "type": "string"
      -          },
      -          "confidence": {
      -            "description": "Resolution confidence from 0 to 1",
      -            "type": "number"
      -          },
      -          "input_company": {
      -            "description": "Company name as asked",
      -            "type": "string"
      -          },
      -          "input_normalized": {
      -            "type": "string"
      -          },
      -          "matched_family_member": {
      -            "additionalProperties": {},
      -            "description": "The linked family member the input names",
      -            "properties": {
      -              "child_company_id": {
      -                "type": "string"
      -              },
      -              "relationship_type": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Relationship to the parent"
      -              },
      -              "source": {
      -                "anyOf": [
      -                  {
      -                    "type": "string"
      -                  },
      -                  {
      -                    "type": "null"
      -                  }
      -                ],
      -                "description": "Where the relationship comes from"
      -              }
      -            },
      -            "required": [
      -              "child_company_id"
      -            ],
      -            "type": "object"
      -          },
      -          "resolved_via": {
      -            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias or new_lookup",
      -            "type": "string"
      -          },
      -          "scope_note": {
      -            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "company_id",
      -          "input_company",
      -          "input_normalized",
      -          "resolved_via",
      -          "confidence",
      -          "aliases"
      -        ],
      -        "type": "object"
      -      },
      -      "coverage": {
      -        "description": "complete, low_confidence, no_alias_pack or possible_split",
      -        "type": "string"
      -      },
      -      "data_freshness": {
      -        "additionalProperties": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "as_of_date": {
      -              "type": "string"
      -            },
      -            "executed_at": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "executed_at",
      -            "as_of_date"
      -          ],
      -          "type": "object"
      -        },
      -        "description": "Per-dataset freshness; only when verbose=true",
      -        "propertyNames": {
      -          "type": "string"
      -        },
      -        "type": "object"
      -      },
      -      "document_text_coverage": {
      -        "additionalProperties": {},
      -        "description": "How many returned letters and 483s carry extracted text",
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "facility_footprint": {
      -        "additionalProperties": {},
      -        "description": "Sites in the family; group findings by these",
      -        "properties": {
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "fei_number": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "firm_profile_url": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "scope_note": {
      -            "type": "string"
      -          },
      -          "see_also": {
      -            "additionalProperties": {},
      -            "properties": {
      -              "call": {
      -                "type": "string"
      -              },
      -              "reason": {
      -                "type": "string"
      -              },
      -              "tool": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "tool",
      -              "reason",
      -              "call"
      -            ],
      -            "type": "object"
      -          },
      -          "total_count": {
      -            "description": "Facilities registered or inspected under the family's names",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_count",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "family_context": {
      -        "additionalProperties": {},
      -        "description": "Linked family members included in the counts",
      -        "properties": {
      -          "child_company_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "family_members": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "alias_count": {
      -                  "description": "Aliases for this member (alias lists only when verbose=true)",
      -                  "type": "number"
      -                },
      -                "child_company_id": {
      -                  "type": "string"
      -                },
      -                "relationship_type": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "subsidiary, division or another relationship"
      -                }
      -              },
      -              "required": [
      -                "child_company_id"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "fuzzy_expanded_names": {
      -            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "search_name_count": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "child_company_ids",
      -          "family_members"
      -        ],
      -        "type": "object"
      -      },
      -      "former_subsidiaries": {
      -        "additionalProperties": {},
      -        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      },
      -      "freshness_summary": {
      -        "additionalProperties": {},
      -        "description": "Dataset freshness; state it in answers",
      -        "properties": {
      -          "covered_dataset_count": {
      -            "type": "number"
      -          },
      -          "expected_dataset_count": {
      -            "type": "number"
      -          },
      -          "freshest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "missing_dataset_ids": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "newest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "older_datasets": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "as_of_date": {
      -                  "type": "string"
      -                },
      -                "dataset_id": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "dataset_id",
      -                "as_of_date"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "oldest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "stalest_as_of_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          }
      -        },
      -        "required": [
      -          "covered_dataset_count",
      -          "expected_dataset_count",
      -          "older_datasets",
      -          "missing_dataset_ids"
      -        ],
      -        "type": "object"
      -      },
      -      "highest_severity_signals": {
      -        "description": "Most serious findings first, each dated; lead answers with these",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "count": {
      -              "description": "Matching records of this type",
      -              "type": "number"
      -            },
      -            "last_5_years_count": {
      -              "description": "Records inside the recent window",
      -              "type": "number"
      -            },
      -            "most_recent_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "recent_window_start": {
      -              "type": "string"
      -            },
      -            "recommended_tool": {
      -              "description": "Tool that returns the underlying records",
      -              "type": "string"
      -            },
      -            "severity": {
      -              "description": "critical, high or medium",
      -              "type": "string"
      -            },
      -            "signal_type": {
      -              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      -              "type": "string"
      -            },
      -            "summary": {
      -              "description": "One-line reading of this signal, including its age",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "signal_type",
      -            "severity",
      -            "count",
      -            "last_5_years_count",
      -            "recent_window_start",
      -            "summary",
      -            "recommended_tool"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "import_risk": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "footprint_linked_refusal_count": {
      -            "type": "number"
      -          },
      -          "green_list_count": {
      -            "type": "number"
      -          },
      -          "import_alert_count": {
      -            "type": "number"
      -          },
      -          "import_refusal_count": {
      -            "type": "number"
      -          },
      -          "last_alert_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_refusal_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "name_match_only_refusal_count": {
      -            "type": "number"
      -          },
      -          "recent_import_alerts": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_import_refusals": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "site_link": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "red_list_count": {
      -            "description": "Red-list (detention without physical examination) entries",
      -            "type": "number"
      -          },
      -          "refusal_site_link_note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "import_alert_count",
      -          "red_list_count",
      -          "green_list_count",
      -          "recent_import_alerts",
      -          "import_refusal_count",
      -          "recent_import_refusals",
      -          "footprint_linked_refusal_count",
      -          "name_match_only_refusal_count"
      -        ],
      -        "type": "object"
      -      },
      -      "inspection_summary": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "last_inspection_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "nai": {
      -            "type": "number"
      -          },
      -          "oai": {
      -            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      -            "type": "number"
      -          },
      -          "total_inspections": {
      -            "type": "number"
      -          },
      -          "vai": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "total_inspections",
      -          "nai",
      -          "vai",
      -          "oai"
      -        ],
      -        "type": "object"
      -      },
      -      "integrity_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "debarment_count": {
      -            "type": "number"
      -          },
      -          "debarments": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "debarment_count",
      -          "debarments"
      -        ],
      -        "type": "object"
      -      },
      -      "matching_notes": {
      -        "description": "How names were matched",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_candidates": {
      -        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {},
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "near_name_note": {
      -        "type": "string"
      -      },
      -      "newest_as_of": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Newest source date (default compact freshness)"
      -      },
      -      "next_step": {
      -        "additionalProperties": {},
      -        "description": "Present when nothing matched",
      -        "properties": {
      -          "call": {
      -            "type": "string"
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "tool": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "tool",
      -          "reason",
      -          "call"
      -        ],
      -        "type": "object"
      -      },
      -      "no_records_note": {
      -        "description": "Present when nothing matched: no matching records does not establish safety",
      -        "type": "string"
      -      },
      -      "notable_gaps": {
      -        "description": "Missing data, matching limits and stale sources; state these",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "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": {},
      -        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      -        "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"
      -      },
      -      "period": {
      -        "additionalProperties": {},
      -        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      -        "properties": {
      -          "date_from": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "First day counted (YYYY-MM-DD), or null"
      -          },
      -          "date_to": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ],
      -            "description": "Last day counted (YYYY-MM-DD), or null"
      -          },
      -          "label": {
      -            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      -            "type": "string"
      -          },
      -          "note": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "date_from",
      -          "date_to",
      -          "label",
      -          "note"
      -        ],
      -        "type": "object"
      -      },
      -      "possible_split_with": {
      -        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "recall_signals": {
      -        "additionalProperties": {},
      -        "properties": {
      -          "count_note": {
      -            "type": "string"
      -          },
      -          "ires_count": {
      -            "description": "Recalls in FDA iRES enforcement reports",
      -            "type": "number"
      -          },
      -          "last_ires_report_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "last_openfda_report_date": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "openfda_enforcement_count": {
      -            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      -            "type": "number"
      -          },
      -          "recent_ires_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_openfda_enforcement": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls": {
      -            "description": "One entry per recall number, merged across both sources",
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {
      -                "recall_number": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "report_date": {
      -                  "anyOf": [
      -                    {
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ]
      -                },
      -                "sources": {
      -                  "description": "ires, openfda or both",
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "recent_recalls_note": {
      -            "type": "string"
      -          },
      -          "unique_recall_count": {
      -            "description": "Distinct recall numbers across both sources",
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "ires_count",
      -          "recent_ires_enforcement",
      -          "openfda_enforcement_count",
      -          "recent_openfda_enforcement",
      -          "unique_recall_count",
      -          "count_note",
      -          "recent_recalls",
      -          "recent_recalls_note"
      -        ],
      -        "type": "object"
      -      },
      -      "recent_inspections": {
      -        "items": {
      -          "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": "array"
      -      },
      -      "recent_oii_records": {
      -        "description": "Form 483s and other OII reading-room documents",
      -        "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_warning_letters": {
      -        "description": "Warning letters from the letter index",
      -        "items": {
      -          "additionalProperties": {},
      -          "properties": {
      -            "letter_excerpt": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "Start of the letter text"
      -            },
      -            "letter_issue_date": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ]
      -            },
      -            "letter_text_status": {
      -              "anyOf": [
      -                {
      -                  "type": "string"
      -                },
      -                {
      -                  "type": "null"
      -                }
      -              ],
      -              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable"
      -            },
      -            "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"
      -      },
      -      "recommend_subsidiary_search": {
      -        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      -        "type": "boolean"
      -      },
      -      "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"
      -      },
      -      "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"
      -      },
      -      "unresolved_entities": {
      -        "additionalProperties": {},
      -        "description": "Related entities with no recorded ownership change; not in the totals above",
      -        "properties": {
      -          "counted_in_parent_totals": {
      -            "const": false,
      -            "type": "boolean"
      -          },
      -          "note": {
      -            "type": "string"
      -          },
      -          "results": {
      -            "items": {
      -              "additionalProperties": {},
      -              "properties": {},
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "counted_in_parent_totals",
      -          "note",
      -          "results"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "company_resolution",
      -      "coverage",
      -      "recommend_subsidiary_search",
      -      "matching_notes",
      -      "family_context",
      -      "freshness_summary",
      -      "facility_footprint",
      -      "inspection_summary",
      -      "recent_inspections",
      -      "document_text_coverage",
      -      "recent_warning_letters",
      -      "recent_oii_records",
      -      "import_risk",
      -      "integrity_signals",
      -      "recall_signals",
      -      "highest_severity_signals",
      -      "recommended_follow_ups",
      -      "notable_gaps"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      -    "properties": {
      -      "attempted_tool": {
      -        "type": "string"
      -      },
      -      "auth_required": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "signup_url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "auth_required",
      -      "attempted_tool",
      -      "message",
      -      "signup_url"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {},
      +    "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      +    "properties": {
      +      "better_match_candidates": {
      +        "description": "Curated companies whose name the input begins, present when the input matched only loosely (e.g. Sun Pharma -> sun-pharmaceutical). Re-run with the first company_id before treating these counts as the company's record",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "call": {
      +              "type": "string"
      +            },
      +            "company_id": {
      +              "type": "string"
      +            },
      +            "matched_alias": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "company_id",
      +            "matched_alias",
      +            "call"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "company_resolution": {
      +        "additionalProperties": {},
      +        "description": "Which company family the summary covers and how it was matched",
      +        "properties": {
      +          "aliases": {
      +            "description": "Alias list; empty unless verbose=true",
      +            "items": {},
      +            "type": "array"
      +          },
      +          "company_id": {
      +            "description": "Resolved family ID; counts cover this whole family",
      +            "type": "string"
      +          },
      +          "confidence": {
      +            "description": "Resolution confidence from 0 to 1",
      +            "type": "number"
      +          },
      +          "input_company": {
      +            "description": "Company name as asked",
      +            "type": "string"
      +          },
      +          "input_normalized": {
      +            "type": "string"
      +          },
      +          "matched_family_member": {
      +            "additionalProperties": {},
      +            "description": "The linked family member the input names",
      +            "properties": {
      +              "child_company_id": {
      +                "type": "string"
      +              },
      +              "relationship_type": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Relationship to the parent"
      +              },
      +              "source": {
      +                "anyOf": [
      +                  {
      +                    "type": "string"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "description": "Where the relationship comes from"
      +              }
      +            },
      +            "required": [
      +              "child_company_id"
      +            ],
      +            "type": "object"
      +          },
      +          "resolved_via": {
      +            "description": "How the name was resolved, e.g. exact_alias, heuristic_alias, curated_name_prefix (a short name read as the curated company whose name it begins) or new_lookup",
      +            "type": "string"
      +          },
      +          "scope_note": {
      +            "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "company_id",
      +          "input_company",
      +          "input_normalized",
      +          "resolved_via",
      +          "confidence",
      +          "aliases"
      +        ],
      +        "type": "object"
      +      },
      +      "coverage": {
      +        "description": "complete, low_confidence, no_alias_pack or possible_split",
      +        "type": "string"
      +      },
      +      "data_freshness": {
      +        "additionalProperties": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "as_of_date": {
      +              "type": "string"
      +            },
      +            "executed_at": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "executed_at",
      +            "as_of_date"
      +          ],
      +          "type": "object"
      +        },
      +        "description": "Per-dataset freshness; only when verbose=true",
      +        "propertyNames": {
      +          "type": "string"
      +        },
      +        "type": "object"
      +      },
      +      "document_text_coverage": {
      +        "additionalProperties": {},
      +        "description": "How many returned letters and 483s carry extracted text",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "facility_footprint": {
      +        "additionalProperties": {},
      +        "description": "Sites in the family; group findings by these",
      +        "properties": {
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "fei_number": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "firm_profile_url": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "scope_note": {
      +            "type": "string"
      +          },
      +          "see_also": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "call": {
      +                "type": "string"
      +              },
      +              "reason": {
      +                "type": "string"
      +              },
      +              "tool": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "tool",
      +              "reason",
      +              "call"
      +            ],
      +            "type": "object"
      +          },
      +          "total_count": {
      +            "description": "Facilities registered or inspected under the family's names",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_count",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "family_context": {
      +        "additionalProperties": {},
      +        "description": "Linked family members included in the counts",
      +        "properties": {
      +          "child_company_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "family_members": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "alias_count": {
      +                  "description": "Aliases for this member (alias lists only when verbose=true)",
      +                  "type": "number"
      +                },
      +                "child_company_id": {
      +                  "type": "string"
      +                },
      +                "relationship_type": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "subsidiary, division or another relationship"
      +                }
      +              },
      +              "required": [
      +                "child_company_id"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "fuzzy_expanded_names": {
      +            "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "search_name_count": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "child_company_ids",
      +          "family_members"
      +        ],
      +        "type": "object"
      +      },
      +      "former_subsidiaries": {
      +        "additionalProperties": {},
      +        "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      },
      +      "freshness_summary": {
      +        "additionalProperties": {},
      +        "description": "Dataset freshness; state it in answers",
      +        "properties": {
      +          "covered_dataset_count": {
      +            "type": "number"
      +          },
      +          "expected_dataset_count": {
      +            "type": "number"
      +          },
      +          "freshest_as_of_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "missing_dataset_ids": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "newest_as_of_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "older_datasets": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "as_of_date": {
      +                  "type": "string"
      +                },
      +                "dataset_id": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "dataset_id",
      +                "as_of_date"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "oldest_as_of_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "stalest_as_of_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          }
      +        },
      +        "required": [
      +          "covered_dataset_count",
      +          "expected_dataset_count",
      +          "older_datasets",
      +          "missing_dataset_ids"
      +        ],
      +        "type": "object"
      +      },
      +      "highest_severity_signals": {
      +        "description": "Most serious findings first, each dated; lead answers with these",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "count": {
      +              "description": "Matching records of this type",
      +              "type": "number"
      +            },
      +            "last_5_years_count": {
      +              "description": "Records inside the recent window",
      +              "type": "number"
      +            },
      +            "most_recent_date": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "recent_window_start": {
      +              "type": "string"
      +            },
      +            "recommended_tool": {
      +              "description": "Tool that returns the underlying records",
      +              "type": "string"
      +            },
      +            "severity": {
      +              "description": "critical, high or medium",
      +              "type": "string"
      +            },
      +            "signal_type": {
      +              "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      +              "type": "string"
      +            },
      +            "summary": {
      +              "description": "One-line reading of this signal, including its age",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "signal_type",
      +            "severity",
      +            "count",
      +            "last_5_years_count",
      +            "recent_window_start",
      +            "summary",
      +            "recommended_tool"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "import_risk": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "footprint_linked_refusal_count": {
      +            "type": "number"
      +          },
      +          "green_list_count": {
      +            "type": "number"
      +          },
      +          "import_alert_count": {
      +            "type": "number"
      +          },
      +          "import_refusal_count": {
      +            "type": "number"
      +          },
      +          "last_alert_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "last_refusal_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "name_match_only_refusal_count": {
      +            "type": "number"
      +          },
      +          "recent_import_alerts": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_import_refusals": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "site_link": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "red_list_count": {
      +            "description": "Red-list (detention without physical examination) entries",
      +            "type": "number"
      +          },
      +          "refusal_site_link_note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "import_alert_count",
      +          "red_list_count",
      +          "green_list_count",
      +          "recent_import_alerts",
      +          "import_refusal_count",
      +          "recent_import_refusals",
      +          "footprint_linked_refusal_count",
      +          "name_match_only_refusal_count"
      +        ],
      +        "type": "object"
      +      },
      +      "inspection_summary": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "last_inspection_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "nai": {
      +            "type": "number"
      +          },
      +          "oai": {
      +            "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      +            "type": "number"
      +          },
      +          "total_inspections": {
      +            "type": "number"
      +          },
      +          "vai": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "total_inspections",
      +          "nai",
      +          "vai",
      +          "oai"
      +        ],
      +        "type": "object"
      +      },
      +      "integrity_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "debarment_count": {
      +            "type": "number"
      +          },
      +          "debarments": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "debarment_count",
      +          "debarments"
      +        ],
      +        "type": "object"
      +      },
      +      "matching_notes": {
      +        "description": "How names were matched",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_candidates": {
      +        "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {},
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "near_name_note": {
      +        "type": "string"
      +      },
      +      "newest_as_of": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Newest source date (default compact freshness)"
      +      },
      +      "next_step": {
      +        "additionalProperties": {},
      +        "description": "Present when nothing matched",
      +        "properties": {
      +          "call": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "tool": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "tool",
      +          "reason",
      +          "call"
      +        ],
      +        "type": "object"
      +      },
      +      "no_records_note": {
      +        "description": "Present when nothing matched: no matching records does not establish safety",
      +        "type": "string"
      +      },
      +      "notable_gaps": {
      +        "description": "Missing data, matching limits and stale sources; state these",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "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": {},
      +        "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      +        "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"
      +      },
      +      "period": {
      +        "additionalProperties": {},
      +        "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      +        "properties": {
      +          "date_from": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "First day counted (YYYY-MM-DD), or null"
      +          },
      +          "date_to": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Last day counted (YYYY-MM-DD), or null"
      +          },
      +          "label": {
      +            "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "date_from",
      +          "date_to",
      +          "label",
      +          "note"
      +        ],
      +        "type": "object"
      +      },
      +      "possible_split_with": {
      +        "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "recall_signals": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "count_note": {
      +            "type": "string"
      +          },
      +          "ires_count": {
      +            "description": "Recalls in FDA iRES enforcement reports",
      +            "type": "number"
      +          },
      +          "last_ires_report_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "last_openfda_report_date": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "openfda_enforcement_count": {
      +            "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      +            "type": "number"
      +          },
      +          "recent_ires_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_openfda_enforcement": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls": {
      +            "description": "One entry per recall number, merged across both sources",
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "recall_number": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "report_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "sources": {
      +                  "description": "ires, openfda or both",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "recent_recalls_note": {
      +            "type": "string"
      +          },
      +          "unique_recall_count": {
      +            "description": "Distinct recall numbers across both sources",
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "ires_count",
      +          "recent_ires_enforcement",
      +          "openfda_enforcement_count",
      +          "recent_openfda_enforcement",
      +          "unique_recall_count",
      +          "count_note",
      +          "recent_recalls",
      +          "recent_recalls_note"
      +        ],
      +        "type": "object"
      +      },
      +      "recent_inspections": {
      +        "items": {
      +          "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": "array"
      +      },
      +      "recent_oii_records": {
      +        "description": "Form 483s and other OII reading-room documents",
      +        "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_warning_letters": {
      +        "description": "Warning letters from the letter index",
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "letter_excerpt": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Start of the letter text"
      +            },
      +            "letter_issue_date": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "letter_text_status": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable"
      +            },
      +            "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"
      +      },
      +      "recommend_subsidiary_search": {
      +        "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      +        "type": "boolean"
      +      },
      +      "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"
      +      },
      +      "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"
      +      },
      +      "unresolved_entities": {
      +        "additionalProperties": {},
      +        "description": "Related entities with no recorded ownership change; not in the totals above",
      +        "properties": {
      +          "counted_in_parent_totals": {
      +            "const": false,
      +            "type": "boolean"
      +          },
      +          "note": {
      +            "type": "string"
      +          },
      +          "results": {
      +            "items": {
      +              "additionalProperties": {},
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "counted_in_parent_totals",
      +          "note",
      +          "results"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "company_resolution",
      +      "coverage",
      +      "recommend_subsidiary_search",
      +      "matching_notes",
      +      "family_context",
      +      "freshness_summary",
      +      "facility_footprint",
      +      "inspection_summary",
      +      "recent_inspections",
      +      "document_text_coverage",
      +      "recent_warning_letters",
      +      "recent_oii_records",
      +      "import_risk",
      +      "integrity_signals",
      +      "recall_signals",
      +      "highest_severity_signals",
      +      "recommended_follow_ups",
      +      "notable_gaps"
      +    ],
      +    "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"
      +  }
      +]
  5. Changed4 schema fields changed
    • addedInput schema / properties / date_from
      Added value: +{
      +  "description": "Count only records dated on or after this day (YYYY-MM-DD). Omit both dates for all time.",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / date_to
      Added value: +{
      +  "description": "Count only records dated on or before this day (YYYY-MM-DD)",
      +  "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      +  "type": "string"
      +}
    • changedInput schema / properties / verbose / description
      Previous value: -"When false (default), suppress the inline alias dump and collapse per-dataset data_freshness to a single top-level as_of. Set true for the full block."New value: +"When false (default), suppress the inline alias dump and return a compact freshness_summary with newest_as_of plus any older or missing sources. Set true for the full per-dataset block."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "description": "Company manufacturing and compliance summary across the curated family: sites, inspections, warning letters, Form 483s, import, debarment and recall signals, with dates (YYYY-MM-DD), freshness and matching limits",
      +          "properties": {
      +            "company_resolution": {
      +              "additionalProperties": {},
      +              "description": "Which company family the summary covers and how it was matched",
      +              "properties": {
      +                "aliases": {
      +                  "description": "Alias list; empty unless verbose=true",
      +                  "items": {},
      +                  "type": "array"
      +                },
      +                "company_id": {
      +                  "description": "Resolved family ID; counts cover this whole family",
      +                  "type": "string"
      +                },
      +                "confidence": {
      +                  "description": "Resolution confidence from 0 to 1",
      +                  "type": "number"
      +                },
      +                "input_company": {
      +                  "description": "Company name as asked",
      +                  "type": "string"
      +                },
      +                "input_normalized": {
      +                  "type": "string"
      +                },
      +                "matched_family_member": {
      +                  "additionalProperties": {},
      +                  "description": "The linked family member the input names",
      +                  "properties": {
      +                    "child_company_id": {
      +                      "type": "string"
      +                    },
      +                    "relationship_type": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "Relationship to the parent"
      +                    },
      +                    "source": {
      +                      "anyOf": [
      +                        {
      +                          "type": "string"
      +                        },
      +                        {
      +                          "type": "null"
      +                        }
      +                      ],
      +                      "description": "Where the relationship comes from"
      +                    }
      +                  },
      +                  "required": [
      +                    "child_company_id"
      +                  ],
      +                  "type": "object"
      +                },
      +                "resolved_via": {
      +                  "description": "How the name was resolved, e.g. exact_alias, heuristic_alias or new_lookup",
      +                  "type": "string"
      +                },
      +                "scope_note": {
      +                  "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "company_id",
      +                "input_company",
      +                "input_normalized",
      +                "resolved_via",
      +                "confidence",
      +                "aliases"
      +              ],
      +              "type": "object"
      +            },
      +            "coverage": {
      +              "description": "complete, low_confidence, no_alias_pack or possible_split",
      +              "type": "string"
      +            },
      +            "data_freshness": {
      +              "additionalProperties": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "as_of_date": {
      +                    "type": "string"
      +                  },
      +                  "executed_at": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "executed_at",
      +                  "as_of_date"
      +                ],
      +                "type": "object"
      +              },
      +              "description": "Per-dataset freshness; only when verbose=true",
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "document_text_coverage": {
      +              "additionalProperties": {},
      +              "description": "How many returned letters and 483s carry extracted text",
      +              "properties": {},
      +              "type": "object"
      +            },
      +            "facility_footprint": {
      +              "additionalProperties": {},
      +              "description": "Sites in the family; group findings by these",
      +              "properties": {
      +                "results": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "fei_number": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "firm_profile_url": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "scope_note": {
      +                  "type": "string"
      +                },
      +                "see_also": {
      +                  "additionalProperties": {},
      +                  "properties": {
      +                    "call": {
      +                      "type": "string"
      +                    },
      +                    "reason": {
      +                      "type": "string"
      +                    },
      +                    "tool": {
      +                      "type": "string"
      +                    }
      +                  },
      +                  "required": [
      +                    "tool",
      +                    "reason",
      +                    "call"
      +                  ],
      +                  "type": "object"
      +                },
      +                "total_count": {
      +                  "description": "Facilities registered or inspected under the family's names",
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "total_count",
      +                "results"
      +              ],
      +              "type": "object"
      +            },
      +            "family_context": {
      +              "additionalProperties": {},
      +              "description": "Linked family members included in the counts",
      +              "properties": {
      +                "child_company_ids": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "family_members": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "alias_count": {
      +                        "description": "Aliases for this member (alias lists only when verbose=true)",
      +                        "type": "number"
      +                      },
      +                      "child_company_id": {
      +                        "type": "string"
      +                      },
      +                      "relationship_type": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ],
      +                        "description": "subsidiary, division or another relationship"
      +                      }
      +                    },
      +                    "required": [
      +                      "child_company_id"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "fuzzy_expanded_names": {
      +                  "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "note": {
      +                  "type": "string"
      +                },
      +                "search_name_count": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "child_company_ids",
      +                "family_members"
      +              ],
      +              "type": "object"
      +            },
      +            "former_subsidiaries": {
      +              "additionalProperties": {},
      +              "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
      +              "properties": {
      +                "counted_in_parent_totals": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "note": {
      +                  "type": "string"
      +                },
      +                "results": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {},
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "counted_in_parent_totals",
      +                "note",
      +                "results"
      +              ],
      +              "type": "object"
      +            },
      +            "freshness_summary": {
      +              "additionalProperties": {},
      +              "description": "Dataset freshness; state it in answers",
      +              "properties": {
      +                "covered_dataset_count": {
      +                  "type": "number"
      +                },
      +                "expected_dataset_count": {
      +                  "type": "number"
      +                },
      +                "freshest_as_of_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "missing_dataset_ids": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                },
      +                "newest_as_of_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "older_datasets": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "as_of_date": {
      +                        "type": "string"
      +                      },
      +                      "dataset_id": {
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "dataset_id",
      +                      "as_of_date"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "oldest_as_of_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "stalest_as_of_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                }
      +              },
      +              "required": [
      +                "covered_dataset_count",
      +                "expected_dataset_count",
      +                "older_datasets",
      +                "missing_dataset_ids"
      +              ],
      +              "type": "object"
      +            },
      +            "highest_severity_signals": {
      +              "description": "Most serious findings first, each dated; lead answers with these",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "count": {
      +                    "description": "Matching records of this type",
      +                    "type": "number"
      +                  },
      +                  "last_5_years_count": {
      +                    "description": "Records inside the recent window",
      +                    "type": "number"
      +                  },
      +                  "most_recent_date": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "recent_window_start": {
      +                    "type": "string"
      +                  },
      +                  "recommended_tool": {
      +                    "description": "Tool that returns the underlying records",
      +                    "type": "string"
      +                  },
      +                  "severity": {
      +                    "description": "critical, high or medium",
      +                    "type": "string"
      +                  },
      +                  "signal_type": {
      +                    "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall",
      +                    "type": "string"
      +                  },
      +                  "summary": {
      +                    "description": "One-line reading of this signal, including its age",
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "signal_type",
      +                  "severity",
      +                  "count",
      +                  "last_5_years_count",
      +                  "recent_window_start",
      +                  "summary",
      +                  "recommended_tool"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "import_risk": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "footprint_linked_refusal_count": {
      +                  "type": "number"
      +                },
      +                "green_list_count": {
      +                  "type": "number"
      +                },
      +                "import_alert_count": {
      +                  "type": "number"
      +                },
      +                "import_refusal_count": {
      +                  "type": "number"
      +                },
      +                "last_alert_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "last_refusal_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "name_match_only_refusal_count": {
      +                  "type": "number"
      +                },
      +                "recent_import_alerts": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {},
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "recent_import_refusals": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "site_link": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ],
      +                        "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "red_list_count": {
      +                  "description": "Red-list (detention without physical examination) entries",
      +                  "type": "number"
      +                },
      +                "refusal_site_link_note": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "import_alert_count",
      +                "red_list_count",
      +                "green_list_count",
      +                "recent_import_alerts",
      +                "import_refusal_count",
      +                "recent_import_refusals",
      +                "footprint_linked_refusal_count",
      +                "name_match_only_refusal_count"
      +              ],
      +              "type": "object"
      +            },
      +            "inspection_summary": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "last_inspection_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "nai": {
      +                  "type": "number"
      +                },
      +                "oai": {
      +                  "description": "Official Action Indicated (regulatory and/or administrative actions recommended)",
      +                  "type": "number"
      +                },
      +                "total_inspections": {
      +                  "type": "number"
      +                },
      +                "vai": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "total_inspections",
      +                "nai",
      +                "vai",
      +                "oai"
      +              ],
      +              "type": "object"
      +            },
      +            "integrity_signals": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "debarment_count": {
      +                  "type": "number"
      +                },
      +                "debarments": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {},
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "debarment_count",
      +                "debarments"
      +              ],
      +              "type": "object"
      +            },
      +            "matching_notes": {
      +              "description": "How names were matched",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "near_name_candidates": {
      +              "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {},
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "near_name_note": {
      +              "type": "string"
      +            },
      +            "newest_as_of": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Newest source date (default compact freshness)"
      +            },
      +            "next_step": {
      +              "additionalProperties": {},
      +              "description": "Present when nothing matched",
      +              "properties": {
      +                "call": {
      +                  "type": "string"
      +                },
      +                "reason": {
      +                  "type": "string"
      +                },
      +                "tool": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "tool",
      +                "reason",
      +                "call"
      +              ],
      +              "type": "object"
      +            },
      +            "no_records_note": {
      +              "description": "Present when nothing matched: no matching records does not establish safety",
      +              "type": "string"
      +            },
      +            "notable_gaps": {
      +              "description": "Missing data, matching limits and stale sources; state these",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "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": {},
      +              "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
      +              "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"
      +            },
      +            "period": {
      +              "additionalProperties": {},
      +              "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
      +              "properties": {
      +                "date_from": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "First day counted (YYYY-MM-DD), or null"
      +                },
      +                "date_to": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "Last day counted (YYYY-MM-DD), or null"
      +                },
      +                "label": {
      +                  "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts",
      +                  "type": "string"
      +                },
      +                "note": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "date_from",
      +                "date_to",
      +                "label",
      +                "note"
      +              ],
      +              "type": "object"
      +            },
      +            "possible_split_with": {
      +              "description": "Other company_ids with the same name once legal forms are removed; records filed only under them may be missing here, and results can overlap. Present with coverage possible_split",
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "recall_signals": {
      +              "additionalProperties": {},
      +              "properties": {
      +                "count_note": {
      +                  "type": "string"
      +                },
      +                "ires_count": {
      +                  "description": "Recalls in FDA iRES enforcement reports",
      +                  "type": "number"
      +                },
      +                "last_ires_report_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "last_openfda_report_date": {
      +                  "anyOf": [
      +                    {
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ]
      +                },
      +                "openfda_enforcement_count": {
      +                  "description": "Recalls in openFDA enforcement data; overlaps ires_count",
      +                  "type": "number"
      +                },
      +                "recent_ires_enforcement": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {},
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "recent_openfda_enforcement": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {},
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "recent_recalls": {
      +                  "description": "One entry per recall number, merged across both sources",
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {
      +                      "recall_number": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "report_date": {
      +                        "anyOf": [
      +                          {
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ]
      +                      },
      +                      "sources": {
      +                        "description": "ires, openfda or both",
      +                        "items": {
      +                          "type": "string"
      +                        },
      +                        "type": "array"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                },
      +                "recent_recalls_note": {
      +                  "type": "string"
      +                },
      +                "unique_recall_count": {
      +                  "description": "Distinct recall numbers across both sources",
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "ires_count",
      +                "recent_ires_enforcement",
      +                "openfda_enforcement_count",
      +                "recent_openfda_enforcement",
      +                "unique_recall_count",
      +                "count_note",
      +                "recent_recalls",
      +                "recent_recalls_note"
      +              ],
      +              "type": "object"
      +            },
      +            "recent_inspections": {
      +              "items": {
      +                "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": "array"
      +            },
      +            "recent_oii_records": {
      +              "description": "Form 483s and other OII reading-room documents",
      +              "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_warning_letters": {
      +              "description": "Warning letters from the letter index",
      +              "items": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "letter_excerpt": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Start of the letter text"
      +                  },
      +                  "letter_issue_date": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ]
      +                  },
      +                  "letter_text_status": {
      +                    "anyOf": [
      +                      {
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable"
      +                  },
      +                  "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"
      +            },
      +            "recommend_subsidiary_search": {
      +              "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries",
      +              "type": "boolean"
      +            },
      +            "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"
      +            },
      +            "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"
      +            },
      +            "unresolved_entities": {
      +              "additionalProperties": {},
      +              "description": "Related entities with no recorded ownership change; not in the totals above",
      +              "properties": {
      +                "counted_in_parent_totals": {
      +                  "const": false,
      +                  "type": "boolean"
      +                },
      +                "note": {
      +                  "type": "string"
      +                },
      +                "results": {
      +                  "items": {
      +                    "additionalProperties": {},
      +                    "properties": {},
      +                    "type": "object"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "counted_in_parent_totals",
      +                "note",
      +                "results"
      +              ],
      +              "type": "object"
      +            }
      +          },
      +          "required": [
      +            "company_resolution",
      +            "coverage",
      +            "recommend_subsidiary_search",
      +            "matching_notes",
      +            "family_context",
      +            "freshness_summary",
      +            "facility_footprint",
      +            "inspection_summary",
      +            "recent_inspections",
      +            "document_text_coverage",
      +            "recent_warning_letters",
      +            "recent_oii_records",
      +            "import_risk",
      +            "integrity_signals",
      +            "recall_signals",
      +            "highest_severity_signals",
      +            "recommended_follow_ups",
      +            "notable_gaps"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "additionalProperties": {},
      +          "description": "Returned instead of records when the session has no API key: how to sign up and connect",
      +          "properties": {
      +            "attempted_tool": {
      +              "type": "string"
      +            },
      +            "auth_required": {
      +              "const": true,
      +              "type": "boolean"
      +            },
      +            "message": {
      +              "type": "string"
      +            },
      +            "signup_url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "auth_required",
      +            "attempted_tool",
      +            "message",
      +            "signup_url"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  6. Changed1 schema field changed
    • addedInput schema / properties / verbose
      Added value: +{
      +  "default": false,
      +  "description": "When false (default), suppress the inline alias dump and collapse per-dataset data_freshness to a single top-level as_of. Set true for the full block.",
      +  "type": "boolean"
      +}
  7. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds substantial behavioral context on top: corporate-family scoping rules, the exclusion of spun-off/sold entities into former_subsidiaries, date-window semantics, and the explicit caution that 'No matching records does not establish safety.' The FEI-level firm_profile_url behavior is also disclosed.

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

Conciseness4/5

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

Purpose and scope are front-loaded in the first sentence, and most subsequent sentences carry distinct constraints (exclusions, date covering, sibling routing, uncertainty caveat). The literal firm-profile URL template is bulky and the return-field detail is somewhat redundant given an output schema exists, which is the main 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 six-parameter, multi-dataset summary tool, the description covers scope, entity-family handling, date-window reporting, sibling routing for citations, and an interpretive caveat. Because an output schema exists, the sentences explaining former_subsidiaries and firm_profile_url are not strictly needed, but no critical calling information appears missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema for the date parameters: counts default to all time unless date_from/date_to set a period, and period.label must be stated alongside counts. It does not add anything for verbose, evidence_limit, or facility_limit, leaving those entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence states a specific verb and resource ('Review a company's manufacturing and compliance records across its curated family') and the description enumerates what is returned (inspection classifications, recall signals, freshness, matching limits). It also carves out a sibling by noting 'Inspection citations are available through fda_citations.' The phrase 'covers facility_footprint and recent_inspections' is somewhat opaque as to whether these are output sections or dataset names, which keeps it from full marks.

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 a clear use context ('Designed for initial supplier review') and routes one specific need to an alternative sibling (fda_citations for inspection citations). There are no explicit when-not-to-use statements and no comparison against other closely related siblings such as fda_supplier_risk_table or fda_company_full.

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.