{
  "openapi": "3.1.0",
  "info": {
    "title": "RegDataLab API",
    "version": "172a8676b942fa6b7c49865b57d21b8c4a7c8e29",
    "summary": "Public FDA compliance records (inspections, Form 483s, warning letters, recalls) linked by company and site.",
    "description": "RegDataLab serves its data through the Model Context Protocol (MCP) over Streamable HTTP. Every tool is one JSON-RPC 2.0 POST to /mcp: open a session with initialize, send notifications/initialized, then call tools/list and tools/call. Each tools/call request schema below names one tool and its arguments. This document lists the 54 tools an API-key session sees and is generated from the server's own tool definitions. Changes are listed at https://www.regdatalab.com/changelog. RegDataLab is independent of the FDA.",
    "termsOfService": "https://www.regdatalab.com/terms",
    "contact": {
      "name": "RegDataLab support",
      "url": "https://www.regdatalab.com/support",
      "email": "hello@regdatalab.com"
    }
  },
  "externalDocs": {
    "description": "Documentation",
    "url": "https://www.regdatalab.com/docs"
  },
  "servers": [
    {
      "url": "https://www.regdatalab.com"
    }
  ],
  "tags": [
    {
      "name": "MCP",
      "description": "Tool calls (JSON-RPC over Streamable HTTP)"
    },
    {
      "name": "Discovery",
      "description": "Public, no key needed"
    }
  ],
  "paths": {
    "/mcp": {
      "post": {
        "tags": [
          "MCP"
        ],
        "operationId": "mcpRequest",
        "summary": "Send one MCP JSON-RPC request (initialize, tools/list or tools/call)",
        "description": "Send Accept: application/json, text/event-stream. Tool calls use credits; each tool's description states its cost.",
        "security": [
          {
            "bearerAuth": []
          },
          {
            "apiKeyHeader": []
          },
          {
            "oauth2": [
              "fda:read"
            ]
          }
        ],
        "parameters": [
          {
            "name": "Mcp-Session-Id",
            "in": "header",
            "required": false,
            "description": "The id the initialize response returned. Send it on every request after initialize.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/McpRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response, as JSON or as one server-sent event.",
            "headers": {
              "Mcp-Session-Id": {
                "description": "Session id, on the initialize response.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Requests allowed per minute for this key.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Requests left in this minute.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "When the window resets.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/McpResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string",
                  "description": "event: message, then data: followed by an McpResponse as JSON."
                }
              }
            }
          },
          "202": {
            "description": "Notification accepted (no body)."
          },
          "401": {
            "description": "Missing or unknown API key or token.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Out of credits. MCP clients stay connected; the tool call reports it with isError.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded. Retry after the reset window.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "getApiInfo",
        "summary": "Server name, version, endpoints, tool names and credits per tool",
        "security": [],
        "responses": {
          "200": {
            "description": "Server information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "getHealth",
        "summary": "Service health and dataset freshness",
        "security": [],
        "responses": {
          "200": {
            "description": "Healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp.json": {
      "get": {
        "tags": [
          "Discovery"
        ],
        "operationId": "getMcpServerCard",
        "summary": "MCP server card: endpoint, sign-in details and tool list",
        "security": [],
        "responses": {
          "200": {
            "description": "Server card",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your RegDataLab API key from /signup: Authorization: Bearer YOUR_API_KEY. Never put a key in a URL."
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "The same API key in an x-api-key header."
      },
      "oauth2": {
        "type": "oauth2",
        "description": "OAuth 2.1 with PKCE (S256) and dynamic client registration, used by hosted connectors such as Claude and ChatGPT.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://www.regdatalab.com/oauth/authorize",
            "tokenUrl": "https://www.regdatalab.com/oauth/token",
            "scopes": {
              "fda:read": "Read public FDA records"
            }
          }
        }
      }
    },
    "schemas": {
      "FdaAdverseEventsArguments": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "consumer",
              "veterinary",
              "tobacco"
            ],
            "description": "Report dataset: consumer (food, cosmetic, supplement), veterinary or tobacco"
          },
          "product_area": {
            "description": "Filter by product area: food or cosmetic",
            "type": "string",
            "enum": [
              "food",
              "cosmetic"
            ]
          },
          "reaction": {
            "description": "Reaction keyword (searches reactions array)",
            "type": "string",
            "maxLength": 500
          },
          "species": {
            "description": "Animal species as openFDA names it, e.g. Dog, Cat, Cattle, Horse (exact, case-insensitive)",
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "drug_name": {
            "description": "Active ingredient (preferred, e.g. fluralaner) or common veterinary brand name (e.g. Bravecto, NexGard, Simparica, Credelio, Apoquel, Librela), which is mapped to its active ingredient(s) because openFDA masks veterinary brand names as \"MSK\". For unmapped brands, pass the active ingredient.",
            "type": "string",
            "minLength": 2,
            "maxLength": 200
          },
          "serious": {
            "description": "Filter by serious adverse event",
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          },
          "product_type": {
            "description": "Tobacco product type (searches tobacco_products array)",
            "type": "string",
            "maxLength": 500
          },
          "health_problem": {
            "description": "Reported health problem keyword",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Earliest report date (YYYY-MM-DD or YYYYMMDD): date created (consumer), receive date (veterinary) or date submitted (tobacco)",
            "type": "string",
            "pattern": "^\\d{4}-?\\d{2}-?\\d{2}$"
          },
          "date_to": {
            "description": "Latest report date (YYYY-MM-DD or YYYYMMDD), same date field as date_from",
            "type": "string",
            "pattern": "^\\d{4}-?\\d{2}-?\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "source"
        ],
        "title": "fda_adverse_events arguments"
      },
      "FdaAdverseEventsCall": {
        "type": "object",
        "description": "Search FDA adverse event reports. Find public FDA adverse event and problem reports. source picks the dataset: consumer (foods, cosmetics and supplements; filters product_area, reaction), veterinary (animal drugs; filters species, drug_name, serious; common vet brands map to active ingredients because openFDA masks brand names as MSK; needs at least one filter or a date) or tobacco (tobacco product problem reports; filters product_type, health_problem). date_from/date_to apply to every source. Filters from another source are rejected. Reports do not establish causation, incidence or comparative product safety. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_adverse_events"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaAdverseEventsArguments"
              }
            }
          }
        }
      },
      "FdaAdverseEventsResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_adverse_events structuredContent"
      },
      "FdaBpdrSummaryArguments": {
        "type": "object",
        "properties": {
          "fiscal_year": {
            "description": "Metric fiscal year, for example 2024",
            "type": "integer",
            "minimum": 2000,
            "maximum": 2100
          },
          "group_name": {
            "description": "Group name, for example Licensed Non-Blood Manufacturers",
            "type": "string",
            "maxLength": 200
          },
          "establishment_type": {
            "description": "Establishment type, for example Vaccine or 351 HCT/P",
            "type": "string",
            "maxLength": 200
          },
          "row_type": {
            "description": "Whether the row is a normal establishment line, subtotal, or total",
            "type": "string",
            "enum": [
              "establishment",
              "subtotal",
              "total"
            ]
          },
          "keyword": {
            "description": "Keyword to search in group_name or establishment_type",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_bpdr_summary arguments"
      },
      "FdaBpdrSummaryCall": {
        "type": "object",
        "description": "Search biological product deviation report (BPDR) summaries. Read FDA biological product deviation reporting (BPDR) annual summaries. Returns covered aggregate records. These summaries do not identify the compliance status of a specific facility. Requires at least one of fiscal_year, group_name, establishment_type, row_type or keyword; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_bpdr_summary"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaBpdrSummaryArguments"
              }
            }
          }
        }
      },
      "FdaBpdrSummaryResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_bpdr_summary structuredContent"
      },
      "FdaCitationsArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match). Also matches the company's known aliases, e.g. Pfizer finds citations filed under Hospira; each row's company_match says which",
            "type": "string",
            "maxLength": 500
          },
          "fei_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "act_cfr_number": {
            "description": "CFR section, section-anchored prefix match (e.g. '21 CFR 211.68' or '211.68' matches 211.68, 211.68(a), 211.68(b) but not 211.680 or 211.6)",
            "type": "string",
            "maxLength": 200
          },
          "keyword": {
            "description": "Keyword to search in citation descriptions",
            "type": "string",
            "maxLength": 500
          },
          "classification": {
            "description": "Parent inspection classification. NAI: no objectionable conditions or practices were found during the inspection. VAI: objectionable conditions or practices were found, but the agency is not prepared to take or recommend any administrative or regulatory action. OAI: regulatory and/or administrative actions are recommended.",
            "type": "string",
            "enum": [
              "NAI",
              "VAI",
              "OAI"
            ]
          },
          "program_area": {
            "description": "Program area (partial match, e.g. Drugs, Devices, Foods)",
            "type": "string",
            "maxLength": 200
          },
          "fiscal_year": {
            "description": "Fiscal year of the inspection",
            "type": "integer",
            "minimum": 2000,
            "maximum": 2100
          },
          "date_from": {
            "description": "Start date for inspection_end_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for inspection_end_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_citations arguments"
      },
      "FdaCitationsCall": {
        "type": "object",
        "description": "Search inspection citations. Find FDA inspection citations by company, FEI or regulation. Returns available observations and cited requirements. Citations are observations, not a final FDA determination of a violation. Rows with a known FEI include firm_profile_url, the FDA Data Dashboard firm profile (https://datadashboard.fda.gov/oii/firmprofile.htm?FEIi={fei_number}). fda_dashboard_links gives the dashboard citation search (https://datadashboard.fda.gov/ora/cd/inspobservations.htm). Requires at least one of company_name, fei_number, act_cfr_number, keyword, classification, program_area, fiscal_year, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_citations"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaCitationsArguments"
              }
            }
          }
        }
      },
      "FdaCitationsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "inspection_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "legal_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "inspection_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "program_area": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "act_cfr_number": {
                          "description": "Cited CFR section",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "short_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "inspection_classification_code": {
                          "description": "Parent inspection NAI, VAI or OAI",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "company_match": {
                          "description": "With company_name: company_name (name match) or company_alias (one of the company's known aliases)",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Inspection observations; not a final FDA determination of a violation"
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "company_matching": {
                    "description": "Present when company_name was given",
                    "type": "object",
                    "properties": {
                      "alias_names_searched": {
                        "type": "number",
                        "description": "Known alias spellings searched besides the name"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "alias_names_searched",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "fda_dashboard_links": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {},
                    "description": "FDA Data Dashboard firm profile pattern and search pages"
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "fda_dashboard_links",
                  "see_also",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "FDA inspection citations (cited CFR sections and observation text) with the parent inspection's classification. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_citations structuredContent"
      },
      "FdaClinicalResultLettersArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "application_number": {
            "description": "Application number (searches array, e.g. 'NDA 204017')",
            "type": "string",
            "maxLength": 500
          },
          "letter_type": {
            "description": "Letter type filter (e.g. 'COMPLETE RESPONSE')",
            "type": "string",
            "maxLength": 500
          },
          "detail": {
            "default": "summary",
            "description": "summary (default) shortens letter_text to its first 1500 characters and marks those rows text_truncated; full returns the complete letter",
            "type": "string",
            "enum": [
              "summary",
              "full"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_clinical_result_letters arguments"
      },
      "FdaClinicalResultLettersCall": {
        "type": "object",
        "description": "Search FDA complete response letters (CRLs). Find FDA complete response letters (CRLs) for drug applications by company, application number or letter type. A CRL is FDA's letter saying an application cannot be approved in its current form and listing the deficiencies; it is not an approval. Returns covered letters and dates, with each letter's text shortened to an opening excerpt unless detail='full' (letter_text_chars gives the full length). These are regulatory letters, not clinical trial results. Requires at least one of company_name, application_number or letter_type; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_clinical_result_letters"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaClinicalResultLettersArguments"
              }
            }
          }
        }
      },
      "FdaClinicalResultLettersResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_clinical_result_letters structuredContent"
      },
      "FdaCompanyComplianceTimelineArguments": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "maxLength": 500,
            "description": "Company name to build the timeline for"
          },
          "limit": {
            "default": 25,
            "description": "Maximum number of combined timeline events to return",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "verbose": {
            "default": false,
            "description": "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.",
            "type": "boolean"
          }
        },
        "required": [
          "company"
        ],
        "title": "fda_company_compliance_timeline arguments"
      },
      "FdaCompanyComplianceTimelineCall": {
        "type": "object",
        "description": "Company compliance timeline. Read a company’s available FDA compliance events in reverse date order. Returns source evidence, event dates and matching limits across its curated family. Events of companies the parent spun off or sold are left out; those companies are listed in former_subsidiaries. Missing events may reflect gaps in public records or company links. Costs 2 credits.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_company_compliance_timeline"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaCompanyComplianceTimelineArguments"
              }
            }
          }
        }
      },
      "FdaCompanyComplianceTimelineResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "company_resolution": {
                    "type": "object",
                    "properties": {
                      "company_id": {
                        "type": "string",
                        "description": "Resolved family ID; counts cover this whole family"
                      },
                      "input_company": {
                        "type": "string",
                        "description": "Company name as asked"
                      },
                      "input_normalized": {
                        "type": "string"
                      },
                      "resolved_via": {
                        "type": "string",
                        "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"
                      },
                      "confidence": {
                        "type": "number",
                        "description": "Resolution confidence from 0 to 1"
                      },
                      "aliases": {
                        "type": "array",
                        "items": {},
                        "description": "Alias list; empty unless verbose=true"
                      },
                      "scope_note": {
                        "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
                        "type": "string"
                      },
                      "matched_family_member": {
                        "description": "The linked family member the input names",
                        "type": "object",
                        "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"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "company_id",
                      "input_company",
                      "input_normalized",
                      "resolved_via",
                      "confidence",
                      "aliases"
                    ],
                    "additionalProperties": {},
                    "description": "Which company family the summary covers and how it was matched"
                  },
                  "coverage": {
                    "type": "string",
                    "description": "complete, low_confidence, no_alias_pack or possible_split"
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "recommend_subsidiary_search": {
                    "type": "boolean",
                    "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries"
                  },
                  "matching_notes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "How names were matched"
                  },
                  "family_context": {
                    "type": "object",
                    "properties": {
                      "child_company_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "family_members": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "child_company_id": {
                              "type": "string"
                            },
                            "relationship_type": {
                              "description": "subsidiary, division or another relationship",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "alias_count": {
                              "description": "Aliases for this member (alias lists only when verbose=true)",
                              "type": "number"
                            }
                          },
                          "required": [
                            "child_company_id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "search_name_count": {
                        "type": "number"
                      },
                      "fuzzy_expanded_names": {
                        "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "child_company_ids",
                      "family_members"
                    ],
                    "additionalProperties": {},
                    "description": "Linked family members included in the counts"
                  },
                  "newest_as_of": {
                    "description": "Newest source date (default compact freshness)",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "data_freshness": {
                    "description": "Per-dataset freshness; only when verbose=true",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "freshness_summary": {
                    "type": "object",
                    "properties": {
                      "newest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "oldest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "freshest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "stalest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "covered_dataset_count": {
                        "type": "number"
                      },
                      "expected_dataset_count": {
                        "type": "number"
                      },
                      "older_datasets": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "dataset_id": {
                              "type": "string"
                            },
                            "as_of_date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "dataset_id",
                            "as_of_date"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "missing_dataset_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "covered_dataset_count",
                      "expected_dataset_count",
                      "older_datasets",
                      "missing_dataset_ids"
                    ],
                    "additionalProperties": {},
                    "description": "Dataset freshness; state it in answers"
                  },
                  "source_counts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "number"
                    },
                    "description": "Events per source type"
                  },
                  "timeline": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "event_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_type": {
                          "type": "string",
                          "description": "inspection, warning_letter, import_alert, recall and other source types"
                        },
                        "headline": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source_id": {
                          "description": "Record id. Null when a recall has no FDA number yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "event_id": {
                          "description": "Event id, set when a recall number is not assigned yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "recall_number_note": {
                          "description": "Present when FDA has not assigned a recall number yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "event_url": {
                          "description": "Source link when one exists; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "source_type"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Dated events, newest first"
                  },
                  "recommended_follow_ups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "tool": {
                          "type": "string",
                          "description": "Tool to call next"
                        },
                        "reason": {
                          "type": "string",
                          "description": "Why the follow-up matters"
                        }
                      },
                      "required": [
                        "tool",
                        "reason"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "notable_gaps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Missing data, matching limits and stale sources; state these"
                  },
                  "next_step": {
                    "description": "Present when nothing matched",
                    "type": "object",
                    "properties": {
                      "tool": {
                        "type": "string"
                      },
                      "reason": {
                        "type": "string"
                      },
                      "call": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "tool",
                      "reason",
                      "call"
                    ],
                    "additionalProperties": {}
                  },
                  "no_records_note": {
                    "description": "Present when nothing matched: no matching records does not establish safety",
                    "type": "string"
                  },
                  "near_name_candidates": {
                    "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "near_name_note": {
                    "type": "string"
                  },
                  "former_subsidiaries": {
                    "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "unresolved_entities": {
                    "description": "Related entities with no recorded ownership change; not in the totals above",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "regdatalab_page": {
                    "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",
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "url"
                    ],
                    "additionalProperties": {}
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "company_resolution",
                  "coverage",
                  "recommend_subsidiary_search",
                  "matching_notes",
                  "family_context",
                  "freshness_summary",
                  "source_counts",
                  "timeline",
                  "recommended_follow_ups",
                  "notable_gaps"
                ],
                "additionalProperties": {},
                "description": "Dated manufacturing and compliance events for a company family, newest first, with freshness and matching limits. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_company_compliance_timeline structuredContent"
      },
      "FdaCompanyFullArguments": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "maxLength": 500,
            "description": "Company name to look up"
          },
          "facilities_offset": {
            "default": 0,
            "description": "Facilities result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "facilities_limit": {
            "default": 50,
            "description": "Facilities result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "enforcement_offset": {
            "default": 0,
            "description": "Enforcement result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "enforcement_limit": {
            "default": 50,
            "description": "Enforcement result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "clearances_offset": {
            "default": 0,
            "description": "510(k) clearances result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "clearances_limit": {
            "default": 50,
            "description": "510(k) clearances result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "approvals_offset": {
            "default": 0,
            "description": "PMA approvals result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "approvals_limit": {
            "default": 50,
            "description": "PMA approvals result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "drugs_offset": {
            "default": 0,
            "description": "Drug applications result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "drugs_limit": {
            "default": 50,
            "description": "Drug applications result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "company"
        ],
        "title": "fda_company_full arguments"
      },
      "FdaCompanyFullCall": {
        "type": "object",
        "description": "Full company profile. Read a company profile covering facilities, recalls, 510(k) clearances, PMA approvals and drug applications. Costs 5 credits. Excludes inspection history, citations, warning letters and family rollups across separate child company records. Facility rows carry firm_profile_url and summary.fda_dashboard_links lists FDA Data Dashboard firm profiles (https://datadashboard.fda.gov/oii/firmprofile.htm?FEIi={fei_number}) and inspection and citation search pages. Companies it spun off or sold are not counted; they are listed in former_subsidiaries. Possible family gaps are covered by fda_suggest_subsidiaries; compliance coverage and curated family records are available through fda_manufacturing_risk_summary.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_company_full"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaCompanyFullArguments"
              }
            }
          }
        }
      },
      "FdaCompanyFullResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_company_full structuredContent"
      },
      "FdaCompareCompaniesArguments": {
        "type": "object",
        "properties": {
          "companies": {
            "minItems": 2,
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 500
            },
            "description": "Company names or company_ids to compare (2 to 5)"
          },
          "date_from": {
            "description": "Count only records dated on or after this day (YYYY-MM-DD). Omit both dates for all time.",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "Count only records dated on or before this day (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "required": [
          "companies"
        ],
        "title": "fda_compare_companies arguments"
      },
      "FdaCompareCompaniesCall": {
        "type": "object",
        "description": "Compare companies. Compare 2 to 5 companies' FDA manufacturing and compliance records side by side in one call. Returns one row per company with facilities, inspection classifications (NAI/VAI/OAI), warning letters, the latest Form 483 or other OII record, import alerts and refusals, debarments and recalls, each with its most recent date, plus the highest-severity signals and dataset freshness. Counts match fda_manufacturing_risk_summary for the same company and period; use that tool for one company's records. Counts cover all dates unless date_from/date_to set a period; period.label says which. Costs 6 credits. No matching records does not establish safety.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_compare_companies"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaCompareCompaniesArguments"
              }
            }
          }
        }
      },
      "FdaCompareCompaniesResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "period": {
                    "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
                    "type": "object",
                    "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": {
                        "type": "string",
                        "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "date_from",
                      "date_to",
                      "label",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "companies_compared": {
                    "type": "number",
                    "description": "Companies with counts"
                  },
                  "comparison_note": {
                    "type": "string",
                    "description": "How to read the rows; counts grow with company size"
                  },
                  "comparison": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "input_company": {
                          "type": "string",
                          "description": "Company name as asked"
                        },
                        "status": {
                          "type": "string",
                          "description": "resolved; no_matching_records when nothing matched the name (zeros, check near_name_candidates); not_resolved when the name could not be read (no counts)"
                        },
                        "company_id": {
                          "description": "Resolved family ID; counts cover this whole family",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "coverage": {
                          "description": "complete, low_confidence, no_alias_pack or possible_split",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "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",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "company_id": {
                                "type": "string"
                              },
                              "matched_alias": {
                                "type": "string"
                              },
                              "call": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "company_id",
                              "matched_alias",
                              "call"
                            ],
                            "additionalProperties": {}
                          }
                        },
                        "scope_note": {
                          "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
                          "type": "string"
                        },
                        "error": {
                          "type": "string"
                        },
                        "facility_count": {
                          "type": "number",
                          "description": "Facilities registered or inspected under the family's names"
                        },
                        "inspections": {
                          "type": "object",
                          "properties": {
                            "total": {
                              "type": "number"
                            },
                            "nai": {
                              "type": "number"
                            },
                            "vai": {
                              "type": "number"
                            },
                            "oai": {
                              "type": "number"
                            },
                            "oai_share": {
                              "description": "OAI inspections as a share of all inspections, 0 to 1; null with no inspections",
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "last_inspection_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "total",
                            "nai",
                            "vai",
                            "oai",
                            "oai_share"
                          ],
                          "additionalProperties": {}
                        },
                        "warning_letters": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "number",
                              "description": "Warning letters, including older ones from FDA compliance actions"
                            },
                            "most_recent_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "count"
                          ],
                          "additionalProperties": {},
                          "description": "Warning letters, including older ones from FDA compliance actions"
                        },
                        "latest_oii_record": {
                          "description": "Newest Form 483 or other OII reading-room record",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "record_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "record_date": {
                                  "description": "FDA listing date",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "record_url": {
                                  "description": "Official FDA document; cite it",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "import_alerts": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "red_list_count": {
                              "type": "number"
                            },
                            "last_alert_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "count",
                            "red_list_count"
                          ],
                          "additionalProperties": {}
                        },
                        "import_refusals": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "footprint_linked_count": {
                              "type": "number"
                            },
                            "last_refusal_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "count",
                            "footprint_linked_count"
                          ],
                          "additionalProperties": {}
                        },
                        "debarment_count": {
                          "type": "number"
                        },
                        "recalls": {
                          "type": "object",
                          "properties": {
                            "unique_count": {
                              "type": "number"
                            },
                            "most_recent_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "unique_count"
                          ],
                          "additionalProperties": {}
                        },
                        "highest_severity_signals": {
                          "description": "Severity-ranked signals with dates",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {}
                          }
                        },
                        "notable_gaps": {
                          "description": "This company's caveats from the risk summary; state them with its counts",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "near_name_candidates": {
                          "description": "Present with no_matching_records: name-similarity suggestions, not verified identities",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {}
                          }
                        },
                        "details_call": {
                          "description": "fda_manufacturing_risk_summary call for this company's records",
                          "type": "string"
                        }
                      },
                      "required": [
                        "input_company",
                        "status",
                        "company_id"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "One row per company, in the order asked"
                  },
                  "newest_as_of": {
                    "description": "Newest source date (default compact freshness)",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "freshness_summary": {
                    "type": "object",
                    "properties": {
                      "newest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "oldest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "freshest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "stalest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "covered_dataset_count": {
                        "type": "number"
                      },
                      "expected_dataset_count": {
                        "type": "number"
                      },
                      "older_datasets": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "dataset_id": {
                              "type": "string"
                            },
                            "as_of_date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "dataset_id",
                            "as_of_date"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "missing_dataset_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "covered_dataset_count",
                      "expected_dataset_count",
                      "older_datasets",
                      "missing_dataset_ids"
                    ],
                    "additionalProperties": {},
                    "description": "Dataset freshness; state it in answers"
                  },
                  "notable_gaps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Caveats shared by every company (freshness, period), plus matching limits and unresolved names; state them"
                  },
                  "no_records_note": {
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "companies_compared",
                  "comparison_note",
                  "comparison",
                  "notable_gaps",
                  "no_records_note"
                ],
                "additionalProperties": {},
                "description": "Side-by-side manufacturing and compliance counts for 2 to 5 company families, each with its most recent dates, severity signals, freshness and matching limits"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_compare_companies structuredContent"
      },
      "FdaComplianceActionsArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "fei_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "action_type": {
            "description": "Compliance action type",
            "type": "string",
            "enum": [
              "Warning Letter",
              "Seizure",
              "Injunction"
            ]
          },
          "date_from": {
            "description": "Start date for action_taken_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for action_taken_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_compliance_actions arguments"
      },
      "FdaComplianceActionsCall": {
        "type": "object",
        "description": "Search compliance actions. Find available FDA compliance actions by company, FEI or date. Returns action records from covered datasets. Warning-letter text and source links are available through fda_search_warning_letters. Requires at least one of company_name, fei_number, action_type, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_compliance_actions"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaComplianceActionsArguments"
              }
            }
          }
        }
      },
      "FdaComplianceActionsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "legal_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "action_type": {
                          "description": "Warning letter, injunction, seizure or another action",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "action_taken_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "center": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "case_injunction_id": {
                          "description": "FDA Data Dashboard case ID",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "FDA compliance actions (warning letters, injunctions, seizures) from the FDA Data Dashboard. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_compliance_actions structuredContent"
      },
      "FdaDeviceClassArguments": {
        "type": "object",
        "properties": {
          "product_code": {
            "type": "string",
            "maxLength": 5,
            "pattern": "^[A-Z]{2,3}$",
            "description": "Device product code"
          }
        },
        "required": [
          "product_code"
        ],
        "title": "fda_device_class arguments"
      },
      "FdaDeviceClassCall": {
        "type": "object",
        "description": "Device classification lookup. Find an FDA device classification by its two- or three-letter product code. Device-name searches are available through fda_search_by_product. Returns the class and available regulatory requirements. The classification record does not decide how a specific new product should be classified. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_device_class"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaDeviceClassArguments"
              }
            }
          }
        }
      },
      "FdaDeviceClassResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_device_class structuredContent"
      },
      "FdaDeviceRecallsArguments": {
        "type": "object",
        "properties": {
          "recalling_firm": {
            "description": "Recalling firm name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "product_code": {
            "description": "Product code",
            "type": "string",
            "maxLength": 5,
            "pattern": "^[A-Z]{2,3}$"
          },
          "recall_status": {
            "description": "Recall status",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Start date for event_date_initiated (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for event_date_initiated (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "sort": {
            "description": "newest (default): latest event_date_initiated first; relevance: closest firm-name match first, then newest",
            "default": "newest",
            "type": "string",
            "enum": [
              "newest",
              "relevance"
            ]
          },
          "detail": {
            "default": "summary",
            "description": "summary (default) shortens product_description, code_info, reason_for_recall, root_cause_description, additional_info_contact to 300 characters and marks those rows text_truncated; full returns the complete text",
            "type": "string",
            "enum": [
              "summary",
              "full"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_device_recalls arguments"
      },
      "FdaDeviceRecallsCall": {
        "type": "object",
        "description": "Search device recalls. Find FDA device recalls by recalling firm, product code, status or date. Returns available recall records and reasons, newest event_date_initiated first (sort='relevance' puts the closest firm-name match first instead), with long text such as lot and serial lists shortened unless detail='full'. Possible manufacturing-site links are covered by fda_recall_facility_trace. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_device_recalls"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaDeviceRecallsArguments"
              }
            }
          }
        }
      },
      "FdaDeviceRecallsResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_device_recalls structuredContent"
      },
      "FdaDeviceSupplyStatusArguments": {
        "type": "object",
        "properties": {
          "list_type": {
            "description": "Whether to search the shortage list or discontinuance list",
            "type": "string",
            "enum": [
              "shortage",
              "discontinuance"
            ]
          },
          "product_code": {
            "description": "FDA product code, for example DSQ or MKJ",
            "type": "string",
            "maxLength": 50
          },
          "manufacturer_name": {
            "description": "Manufacturer name (fuzzy match, discontinuance list only)",
            "type": "string",
            "maxLength": 500
          },
          "category": {
            "description": "Device category",
            "type": "string",
            "maxLength": 500
          },
          "keyword": {
            "description": "Keyword to search descriptions, device names, notes, or reasons",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Start date for latest_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for latest_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_device_supply_status arguments"
      },
      "FdaDeviceSupplyStatusCall": {
        "type": "object",
        "description": "Search device shortages and discontinuances. Find FDA device shortage and discontinuance records. Returns available supply status evidence. Recorded statuses may be outdated. Requires at least one of list_type, product_code, manufacturer_name, category, keyword, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_device_supply_status"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaDeviceSupplyStatusArguments"
              }
            }
          }
        }
      },
      "FdaDeviceSupplyStatusResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_device_supply_status structuredContent"
      },
      "FdaDeviceUdiArguments": {
        "type": "object",
        "properties": {
          "brand_name": {
            "description": "Device brand name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "company_name": {
            "description": "Company/manufacturer name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "product_code": {
            "description": "FDA product code (3-letter code, e.g. OVE)",
            "type": "string",
            "maxLength": 5,
            "pattern": "^[A-Z]{2,3}$"
          },
          "di_number": {
            "description": "Device Identifier (DI/GTIN). Matches the full identifier exactly (the record's DI or unit-of-use ID); a partial or substring DI returns no matches. Omit leading-zero/formatting changes — pass the complete DI.",
            "type": "string",
            "maxLength": 100
          },
          "offset": {
            "default": 0,
            "description": "Result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 20,
            "description": "Result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "title": "fda_device_udi arguments"
      },
      "FdaDeviceUdiCall": {
        "type": "object",
        "description": "Search device UDI. Find device Unique Device Identification (UDI) records by company, device or identifier. Returns available listing details. A UDI listing does not establish FDA clearance or approval. Requires at least one of company_name, brand_name or di_number; product_code alone is rejected and only narrows those filters. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_device_udi"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaDeviceUdiArguments"
              }
            }
          }
        }
      },
      "FdaDeviceUdiResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_device_udi structuredContent"
      },
      "FdaDeviceUdiLookupArguments": {
        "type": "object",
        "properties": {
          "device_id": {
            "description": "Device Identifier (DI) — exact barcode/GTIN lookup",
            "type": "string",
            "maxLength": 100
          },
          "device_name": {
            "description": "Device/brand name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "company_name": {
            "description": "Company/manufacturer name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "brand_name": {
            "description": "Brand name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_device_udi_lookup arguments"
      },
      "FdaDeviceUdiLookupCall": {
        "type": "object",
        "description": "Device UDI lookup. Read a device UDI record by identifier. Returns available device listing details. The underlying FDA source documents the specific record and its scope. Requires at least one of device_id, device_name, company_name or brand_name; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_device_udi_lookup"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaDeviceUdiLookupArguments"
              }
            }
          }
        }
      },
      "FdaDeviceUdiLookupResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_device_udi_lookup structuredContent"
      },
      "FdaDrugLabelsArguments": {
        "type": "object",
        "properties": {
          "drug_name": {
            "description": "Brand or generic drug name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "manufacturer": {
            "description": "Manufacturer name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "application_number": {
            "description": "NDA or ANDA application number",
            "type": "string",
            "maxLength": 100
          },
          "section": {
            "description": "Label section to return in full, e.g. indications_and_usage, warnings, how_supplied or package_label_principal_display_panel (the tool description lists the valid sections). Case and spaces are ignored. Omit to get the key sections plus a per-section availability map with excerpts.",
            "type": "string",
            "maxLength": 100
          },
          "offset": {
            "default": 0,
            "description": "Result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 20,
            "description": "Result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "title": "fda_drug_labels arguments"
      },
      "FdaDrugLabelsCall": {
        "type": "object",
        "description": "Search drug labels. Find FDA drug labels by brand or generic name, manufacturer or application number. With no `section`, each result returns the key sections (indications, dosage, warnings, boxed warning, contraindications, adverse reactions, description, how supplied, active ingredient) plus a `sections` map of every available section as {chars, excerpt}; pass `section` to get one section's full text. Valid `section` values: indications_and_usage, dosage_and_administration, warnings, boxed_warning, contraindications, adverse_reactions, drug_interactions, description, how_supplied, active_ingredient, inactive_ingredient, pregnancy, pediatric_use, geriatric_use, overdosage, clinical_pharmacology, mechanism_of_action, clinical_studies, warnings_and_cautions, storage_and_handling; other SPL sections such as package_label_principal_display_panel, warnings_and_precautions, dosage_forms_and_strengths, use_in_specific_populations, information_for_patients, recent_major_changes, spl_medguide, pharmacokinetics, nonclinical_toxicology; and <section>_table forms. Section names ignore case and spaces, and the same sections work with every filter. Provides public records for research, not personal treatment or dosing advice. Requires at least one of drug_name, manufacturer or application_number; `section` alone is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_drug_labels"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaDrugLabelsArguments"
              }
            }
          }
        }
      },
      "FdaDrugLabelsResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_drug_labels structuredContent"
      },
      "FdaDrugShortagesArguments": {
        "type": "object",
        "properties": {
          "generic_name": {
            "description": "Generic drug name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "company_name": {
            "description": "Company name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "status": {
            "description": "Shortage status filter",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_drug_shortages arguments"
      },
      "FdaDrugShortagesCall": {
        "type": "object",
        "description": "Search drug shortages. Find FDA drug shortage records by drug or company. Returns available shortage records with their recorded status and posting dates. Recorded shortage statuses can change after posting; the underlying FDA source provides the current evidence for supply decisions. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_drug_shortages"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaDrugShortagesArguments"
              }
            }
          }
        }
      },
      "FdaDrugShortagesResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_drug_shortages structuredContent"
      },
      "FdaFacilityDossierArguments": {
        "type": "object",
        "properties": {
          "fei": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "evidence_limit": {
            "default": 5,
            "description": "Number of recent evidence rows to return per evidence section",
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          }
        },
        "required": [
          "fei"
        ],
        "title": "fda_facility_dossier arguments"
      },
      "FdaFacilityDossierCall": {
        "type": "object",
        "description": "Facility compliance dossier. Review inspection, citation, Form 483 (OII reading room), warning letter, import alert and recall evidence for one FEI. Site counts use only this FEI and the facility's own name; matches on the registrant or owner-operator (parent) name are returned separately under company_level_context and are not site evidence. Returns source records, dates, matching limits and freshness. No matching records does not establish safety. Rows with a known FEI include firm_profile_url, the FDA Data Dashboard firm profile (https://datadashboard.fda.gov/oii/firmprofile.htm?FEIi={fei_number}). Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_facility_dossier"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaFacilityDossierArguments"
              }
            }
          }
        }
      },
      "FdaFacilityDossierResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "facility": {
                    "type": "object",
                    "properties": {
                      "fei": {
                        "type": "string",
                        "description": "FDA Establishment Identifier"
                      },
                      "firm_profile_url": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "fei"
                    ],
                    "additionalProperties": {},
                    "description": "Facility profile for this FEI"
                  },
                  "dossier_summary": {
                    "type": "object",
                    "properties": {
                      "total_inspections": {
                        "type": "number"
                      },
                      "nai": {
                        "type": "number"
                      },
                      "vai": {
                        "type": "number"
                      },
                      "oai": {
                        "type": "number",
                        "description": "Official Action Indicated"
                      },
                      "warning_letters": {
                        "type": "number",
                        "description": "Warning letters for this site, index plus older compliance actions"
                      },
                      "older_warning_letters": {
                        "type": "number",
                        "description": "Warning letters before the letter index begins"
                      },
                      "import_refusals": {
                        "type": "number"
                      },
                      "import_alerts": {
                        "type": "number",
                        "description": "Import alert entries matching the facility name"
                      },
                      "recalls": {
                        "type": "number",
                        "description": "Recalls matching the facility name"
                      },
                      "oii_records": {
                        "type": "number",
                        "description": "Form 483s and other OII documents for this FEI"
                      },
                      "last_oii_record_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "last_inspection_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "last_inspection_classification": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "total_inspections",
                      "nai",
                      "vai",
                      "oai",
                      "warning_letters",
                      "older_warning_letters",
                      "import_refusals",
                      "import_alerts",
                      "recalls",
                      "oii_records"
                    ],
                    "additionalProperties": {},
                    "description": "Site-level counts only; parent-company matches are under company_level_context"
                  },
                  "site_match_basis": {
                    "type": "object",
                    "properties": {
                      "fei": {
                        "type": "string"
                      },
                      "facility_names": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "fei",
                      "facility_names",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "company_level_context": {
                    "type": "object",
                    "properties": {
                      "matched_names": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "note": {
                        "type": "string"
                      },
                      "warning_letters": {
                        "type": "object",
                        "properties": {
                          "total_count": {
                            "type": "number"
                          },
                          "recent": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {},
                              "additionalProperties": {}
                            }
                          }
                        },
                        "required": [
                          "total_count",
                          "recent"
                        ],
                        "additionalProperties": {}
                      },
                      "import_alerts": {
                        "type": "object",
                        "properties": {
                          "total_count": {
                            "type": "number"
                          },
                          "recent": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {},
                              "additionalProperties": {}
                            }
                          }
                        },
                        "required": [
                          "total_count",
                          "recent"
                        ],
                        "additionalProperties": {}
                      },
                      "recalls": {
                        "type": "object",
                        "properties": {
                          "total_count": {
                            "type": "number"
                          },
                          "recent": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {},
                              "additionalProperties": {}
                            }
                          }
                        },
                        "required": [
                          "total_count",
                          "recent"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "matched_names",
                      "note",
                      "warning_letters",
                      "import_alerts",
                      "recalls"
                    ],
                    "additionalProperties": {},
                    "description": "Records matching the registrant or owner-operator (parent) name. Not evidence for this site"
                  },
                  "latest_inspection": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "inspection_end_date": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "classification_code": {
                            "description": "NAI, VAI or OAI",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "fei_number": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "firm_profile_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "recent_citations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "citation_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "inspection_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "act_cfr_number": {
                          "description": "Cited CFR section",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "recent_warning_letters": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "warning_letter_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_issue_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_url": {
                          "description": "Official FDA letter; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "older_warning_letters": {
                    "type": "object",
                    "properties": {
                      "total_count": {
                        "type": "number",
                        "description": "Warning letters before the letter index begins"
                      },
                      "letter_index_earliest_issue_date": {
                        "description": "First issue date in the letter index",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fei_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "action_taken_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "case_injunction_id": {
                              "description": "FDA Data Dashboard case ID",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "firm_profile_url": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "additionalProperties": {}
                        }
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "total_count",
                      "results",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "recent_import_refusals": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "import_alert_mentions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    },
                    "description": "Import alert entries matching the facility name"
                  },
                  "recent_recalls": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    },
                    "description": "Recalls matching the facility name"
                  },
                  "recent_oii_records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "oii_record_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "record_url": {
                          "description": "Official FDA document; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "record_date": {
                          "description": "FDA listing record date; listing metadata, not the inspection date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "document_text_status": {
                          "description": "extracted, or why document text is missing",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "document_text_excerpt": {
                          "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "form_483_dates": {
                          "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "inspection_start": {
                                  "description": "First inspection date printed on the Form 483",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "inspection_end": {
                                  "description": "Last inspection date printed on the Form 483",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "issued_date": {
                                  "description": "Date the Form 483 was issued",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "date_conflict_note": {
                          "description": "Present when record_date disagrees with the dates printed on the Form 483",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Form 483s and other OII reading-room documents for this FEI"
                  },
                  "oii_records_note": {
                    "type": "string"
                  },
                  "freshness_summary": {
                    "type": "object",
                    "properties": {
                      "datasets_checked": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "covered_dataset_count": {
                        "type": "number"
                      },
                      "freshest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "stalest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "datasets_checked",
                      "covered_dataset_count"
                    ],
                    "additionalProperties": {}
                  },
                  "fda_dashboard_links": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {},
                    "description": "FDA Data Dashboard firm profile pattern and search pages"
                  },
                  "recommended_follow_ups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "tool": {
                          "type": "string",
                          "description": "Tool to call next"
                        },
                        "reason": {
                          "type": "string",
                          "description": "Why the follow-up matters"
                        }
                      },
                      "required": [
                        "tool",
                        "reason"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "regdatalab_page": {
                    "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",
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "url"
                    ],
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "facility",
                  "dossier_summary",
                  "site_match_basis",
                  "company_level_context",
                  "latest_inspection",
                  "recent_citations",
                  "recent_warning_letters",
                  "older_warning_letters",
                  "recent_import_refusals",
                  "import_alert_mentions",
                  "recent_recalls",
                  "recent_oii_records",
                  "oii_records_note",
                  "freshness_summary",
                  "fda_dashboard_links",
                  "recommended_follow_ups",
                  "see_also"
                ],
                "additionalProperties": {},
                "description": "Inspection, citation, Form 483, warning letter, import and recall evidence for one FEI, with site-only counts and parent-company context kept apart. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              },
              {
                "type": "object",
                "properties": {
                  "facility": {
                    "type": "null"
                  },
                  "found": {
                    "type": "boolean",
                    "const": false
                  },
                  "requested_fei": {
                    "type": "string",
                    "description": "The FEI as searched, without leading zeros"
                  },
                  "close_matches": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei": {
                          "type": "string"
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source": {
                          "type": "string"
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "fei",
                        "source"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Sites whose FEI differs by one digit; suggestions only, not this FEI's records"
                  },
                  "note": {
                    "type": "string"
                  },
                  "next_step": {
                    "type": "string"
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "facility",
                  "found",
                  "requested_fei",
                  "close_matches",
                  "note",
                  "next_step",
                  "see_also"
                ],
                "additionalProperties": {},
                "description": "No facility has this FEI: close matches to check, not evidence"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_facility_dossier structuredContent"
      },
      "FdaFacilityProductsArguments": {
        "type": "object",
        "properties": {
          "fei": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "fei"
        ],
        "title": "fda_facility_products arguments"
      },
      "FdaFacilityProductsCall": {
        "type": "object",
        "description": "Facility products. List available device products linked to a facility’s FEI. Returns device listing and classification records. Drug products are not linked by FEI here; fda_search_ndc and fda_search_drugs provide company-based searches. Product coverage can be incomplete. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_facility_products"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaFacilityProductsArguments"
              }
            }
          }
        }
      },
      "FdaFacilityProductsResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_facility_products structuredContent"
      },
      "FdaGetFacilityArguments": {
        "type": "object",
        "properties": {
          "fei": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "products_offset": {
            "default": 0,
            "description": "Products result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "products_limit": {
            "default": 200,
            "description": "Products result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "enforcement_offset": {
            "default": 0,
            "description": "Enforcement history result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "enforcement_limit": {
            "default": 25,
            "description": "Enforcement history result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "fei"
        ],
        "title": "fda_get_facility arguments"
      },
      "FdaGetFacilityCall": {
        "type": "object",
        "description": "Facility detail. Read a facility’s record by FDA Establishment Identifier (FEI). Returns available addresses, operations type, linked records and a facility_risk_summary. Inspection and compliance evidence is available through fda_facility_dossier. 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}). Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_get_facility"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaGetFacilityArguments"
              }
            }
          }
        }
      },
      "FdaGetFacilityResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_get_facility structuredContent"
      },
      "FdaImportRefusalsArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "fei_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "country_code": {
            "description": "ISO country code (e.g. CN, IN)",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Start date for refusal_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for refusal_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_import_refusals arguments"
      },
      "FdaImportRefusalsCall": {
        "type": "object",
        "description": "Search import refusals. Find FDA import refusal records by company, FEI, country or date. Returns available shipment refusal evidence. A refusal is distinct from an import alert. Requires at least one of company_name, fei_number, country_code, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_import_refusals"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaImportRefusalsArguments"
              }
            }
          }
        }
      },
      "FdaImportRefusalsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "refusal_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "product_code_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "refusal_charges": {
                          "description": "FDA refusal charge codes",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "FDA import refusals (shipments refused entry) with charges and dates. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_import_refusals structuredContent"
      },
      "FdaInspectionObservationSummaryArguments": {
        "type": "object",
        "properties": {
          "keyword": {
            "description": "Full-text query across short and long citation descriptions",
            "type": "string",
            "maxLength": 500
          },
          "product_area": {
            "description": "Product or program area (e.g. Drugs, Devices, Foods)",
            "type": "string",
            "maxLength": 200
          },
          "reference_number": {
            "description": "Regulatory citation reference number (e.g. 21 CFR 211.192)",
            "type": "string",
            "maxLength": 200
          },
          "cite_id": {
            "description": "FDA citation identifier from the spreadsheet",
            "type": "string",
            "maxLength": 50
          },
          "fiscal_year": {
            "description": "Fiscal year of the spreadsheet",
            "type": "integer",
            "minimum": 2000,
            "maximum": 2100
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_inspection_observation_summary arguments"
      },
      "FdaInspectionObservationSummaryCall": {
        "type": "object",
        "description": "Search inspection observation summary. Read aggregate FDA inspection observation summaries by fiscal year, product area or cited requirement. Returns covered counts by cited requirement. Aggregate counts do not establish findings at a specific facility. Requires at least one of keyword, product_area, reference_number, cite_id or fiscal_year; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_inspection_observation_summary"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaInspectionObservationSummaryArguments"
              }
            }
          }
        }
      },
      "FdaInspectionObservationSummaryResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_inspection_observation_summary structuredContent"
      },
      "FdaInspectionStatsArguments": {
        "type": "object",
        "properties": {
          "fiscal_year_from": {
            "description": "First fiscal year to include",
            "type": "integer",
            "minimum": 2000,
            "maximum": 2100
          },
          "fiscal_year_to": {
            "description": "Last fiscal year to include",
            "type": "integer",
            "minimum": 2000,
            "maximum": 2100
          },
          "product_type": {
            "description": "Product type, partial match (e.g. Drugs, Devices, Food/Cosmetics, Biologics)",
            "type": "string",
            "maxLength": 200
          },
          "project_area": {
            "description": "Project area, partial match (e.g. Drug Quality Assurance, Bioresearch Monitoring)",
            "type": "string",
            "maxLength": 200
          },
          "country": {
            "description": "Country code (e.g. US, IN, CN)",
            "type": "string",
            "maxLength": 10
          }
        },
        "title": "fda_inspection_stats arguments"
      },
      "FdaInspectionStatsCall": {
        "type": "object",
        "description": "Inspection outcome statistics. Count FDA inspections by fiscal year and outcome (OAI, VAI, NAI), with each year's OAI share, from the FDA Data Dashboard inspection dataset. With no filters the counts match https://www.regdatalab.com/stats/inspections. FDA's fiscal year N runs from Oct 1 of year N-1 to Sep 30 of year N; the current fiscal year is year to date. OAI means Official Action Indicated: regulatory and/or administrative actions are recommended. VAI means Voluntary Action Indicated: objectionable conditions were found but no action is recommended. NAI means No Action Indicated. These are counts of recorded inspections, not a measure of current site safety. For the inspections themselves use fda_inspections. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_inspection_stats"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaInspectionStatsArguments"
              }
            }
          }
        }
      },
      "FdaInspectionStatsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "current_fiscal_year": {
                    "type": "number"
                  },
                  "by_fiscal_year": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fiscal_year": {
                          "type": "number"
                        },
                        "year_to_date": {
                          "description": "True for the fiscal year in progress",
                          "type": "boolean"
                        },
                        "total": {
                          "type": "number",
                          "description": "All inspections in the year, classified or not"
                        },
                        "oai": {
                          "type": "number"
                        },
                        "vai": {
                          "type": "number"
                        },
                        "nai": {
                          "type": "number"
                        },
                        "unclassified": {
                          "type": "number"
                        },
                        "oai_share_pct": {
                          "description": "OAI as a percent of total, one decimal",
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "fiscal_year",
                        "total",
                        "oai",
                        "vai",
                        "nai",
                        "oai_share_pct"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Newest fiscal year first"
                  },
                  "totals": {
                    "type": "object",
                    "properties": {
                      "total": {
                        "type": "number",
                        "description": "All inspections in the year, classified or not"
                      },
                      "oai": {
                        "type": "number"
                      },
                      "vai": {
                        "type": "number"
                      },
                      "nai": {
                        "type": "number"
                      },
                      "unclassified": {
                        "type": "number"
                      },
                      "oai_share_pct": {
                        "description": "OAI as a percent of total, one decimal",
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "total",
                      "oai",
                      "vai",
                      "nai",
                      "oai_share_pct"
                    ],
                    "additionalProperties": {}
                  },
                  "filters": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {}
                  },
                  "method_note": {
                    "type": "string"
                  },
                  "stats_page_url": {
                    "type": "string"
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "current_fiscal_year",
                  "by_fiscal_year",
                  "totals",
                  "see_also",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "FDA inspection counts by fiscal year and outcome (OAI, VAI, NAI) with the OAI share"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_inspection_stats structuredContent"
      },
      "FdaInspectionsArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match). Also matches the company's known aliases",
            "type": "string",
            "maxLength": 500
          },
          "fei_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "classification_code": {
            "description": "Inspection classification code",
            "type": "string",
            "enum": [
              "NAI",
              "VAI",
              "OAI"
            ]
          },
          "state": {
            "description": "State code (e.g., CA, NY)",
            "type": "string",
            "maxLength": 10
          },
          "country": {
            "description": "Country code (e.g., US, DE)",
            "type": "string",
            "maxLength": 10
          },
          "city": {
            "description": "City name (exact match)",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Start date for inspection_end_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for inspection_end_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_inspections arguments"
      },
      "FdaInspectionsCall": {
        "type": "object",
        "description": "Search inspections. Find FDA inspections by company, FEI, date or classification. Returns available inspection records, newest first, with pagination (offset, total_count, has_more). company_name also matches the company's known aliases (e.g. Pfizer finds Hospira sites); each row's company_match says which. NAI means No Action Indicated: no objectionable conditions or practices were found during the inspection. VAI means Voluntary Action Indicated: objectionable conditions or practices were found, but the agency is not prepared to take or recommend any administrative or regulatory action. OAI means Official Action Indicated: regulatory and/or administrative actions are recommended. These outcomes describe the recorded inspection, not current site safety. Rows with a known FEI include firm_profile_url, the FDA Data Dashboard firm profile (https://datadashboard.fda.gov/oii/firmprofile.htm?FEIi={fei_number}). FDA has no page per inspection; fda_dashboard_links gives the dashboard inspection search (https://datadashboard.fda.gov/ora/cd/inspections.htm). Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_inspections"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaInspectionsArguments"
              }
            }
          }
        }
      },
      "FdaInspectionsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "legal_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "inspection_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "inspection_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "classification_code": {
                          "description": "NAI, VAI or OAI",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "project_area": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "product_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "company_match": {
                          "description": "With company_name: company_name (name match) or company_alias (one of the company's known aliases)",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "company_matching": {
                    "description": "Present when company_name was given",
                    "type": "object",
                    "properties": {
                      "alias_names_searched": {
                        "type": "number",
                        "description": "Known alias spellings searched besides the name"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "alias_names_searched",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "fda_dashboard_links": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {},
                    "description": "FDA Data Dashboard firm profile pattern and search pages"
                  },
                  "no_filter_note": {
                    "description": "Present when no filter was given and the newest inspections are shown",
                    "type": "string"
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "fda_dashboard_links",
                  "see_also",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "FDA inspections with classification (NAI, VAI or OAI) and end date, newest first. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_inspections structuredContent"
      },
      "FdaIresEnforcementArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "recall_number": {
            "description": "Recall number",
            "type": "string",
            "maxLength": 500
          },
          "product_type": {
            "description": "Product type (e.g. Drugs, Devices)",
            "type": "string",
            "maxLength": 500
          },
          "classification": {
            "description": "Recall classification severity; Class I is the most serious",
            "type": "string",
            "enum": [
              "Class I",
              "Class II",
              "Class III"
            ]
          },
          "date_from": {
            "description": "Start date for enforcement_report_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for enforcement_report_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "sort": {
            "description": "newest (default): latest enforcement_report_date first; relevance: closest company-name match first, then newest",
            "default": "newest",
            "type": "string",
            "enum": [
              "newest",
              "relevance"
            ]
          },
          "detail": {
            "default": "summary",
            "description": "summary (default) shortens product_description, reason_for_recall, code_information, distribution_area, product_quantity to 300 characters and marks those rows text_truncated; full returns the complete text",
            "type": "string",
            "enum": [
              "summary",
              "full"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_ires_enforcement arguments"
      },
      "FdaIresEnforcementCall": {
        "type": "object",
        "description": "Search FDA iRES recall enforcement reports. Find FDA iRES enforcement report records by company, recall number, product type, recall class or date. This is the most current recall source; openFDA recall data in fda_search_enforcement can trail it by weeks. Returns matching recalls newest enforcement_report_date first (sort='relevance' puts the closest firm-name match first instead), and available cross-references, with long text such as lot and serial lists shortened unless detail='full'. Period comparisons are limited by reported coverage and freshness. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_ires_enforcement"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaIresEnforcementArguments"
              }
            }
          }
        }
      },
      "FdaIresEnforcementResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "recall_number": {
                          "description": "FDA recall number. Null when FDA has not assigned one yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "event_id": {
                          "description": "Event id, set when the recall number is not assigned yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "recall_number_note": {
                          "description": "Present when FDA has not assigned a recall number yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "product_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_legal_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "classification": {
                          "description": "Class I, II or III; Class I is the most serious",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "recall_initiation_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "enforcement_report_date": {
                          "description": "Weekly FDA Enforcement Report date; can be later than today for recently classified recalls",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "termination_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "openfda_match": {
                          "description": "The same recall in openFDA enforcement data, when linked",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {},
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "sort": {
                    "description": "Result order: newest enforcement_report_date first, or closest company-name match first",
                    "type": "string",
                    "enum": [
                      "newest",
                      "relevance"
                    ]
                  },
                  "no_filter_note": {
                    "description": "Present when no filter was given and the newest reports are shown",
                    "type": "string"
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "coverage": {
                    "description": "dataset_not_loaded when iRES data is missing: not a confirmed no-recalls result",
                    "type": "string"
                  },
                  "note": {
                    "type": "string"
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "see_also"
                ],
                "additionalProperties": {},
                "description": "Recalls from FDA iRES weekly Enforcement Reports, with class, firm FEI, report dates and the matching openFDA record. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_ires_enforcement structuredContent"
      },
      "FdaLookupCompanyArguments": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "maxLength": 500,
            "description": "Company name to look up"
          },
          "facilities_offset": {
            "default": 0,
            "description": "Facilities result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "facilities_limit": {
            "default": 200,
            "description": "Facilities result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "enforcement_offset": {
            "default": 0,
            "description": "Enforcement result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "enforcement_limit": {
            "default": 200,
            "description": "Enforcement result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "company"
        ],
        "title": "fda_lookup_company arguments"
      },
      "FdaLookupCompanyCall": {
        "type": "object",
        "description": "Company lookup. Find a company’s FDA facilities, recalls and known names. Returns matching records and dataset freshness. Facility rows carry firm_profile_url and summary.fda_dashboard_links lists FDA Data Dashboard firm profiles (https://datadashboard.fda.gov/oii/firmprofile.htm?FEIi={fei_number}) and inspection and citation search pages. When no records or aliases match, returns scored near-name candidates and resolver suggestions. Costs 1 credit. Inspection and compliance coverage is available through fda_manufacturing_risk_summary. Related: fda_company_full adds drug and device application records.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_lookup_company"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaLookupCompanyArguments"
              }
            }
          }
        }
      },
      "FdaLookupCompanyResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_lookup_company structuredContent"
      },
      "FdaManufacturingRiskSummaryArguments": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "maxLength": 500,
            "description": "Company name to summarize"
          },
          "facility_limit": {
            "default": 10,
            "description": "Max facilities to return",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "evidence_limit": {
            "default": 5,
            "description": "Max recent records to return per evidence section",
            "type": "integer",
            "minimum": 1,
            "maximum": 25
          },
          "verbose": {
            "default": false,
            "description": "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.",
            "type": "boolean"
          },
          "date_from": {
            "description": "Count only records dated on or after this day (YYYY-MM-DD). Omit both dates for all time.",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "Count only records dated on or before this day (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "required": [
          "company"
        ],
        "title": "fda_manufacturing_risk_summary arguments"
      },
      "FdaManufacturingRiskSummaryCall": {
        "type": "object",
        "description": "Manufacturing risk summary. 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. Costs 3 credits. Designed for initial supplier review. No matching records does not establish safety.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_manufacturing_risk_summary"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaManufacturingRiskSummaryArguments"
              }
            }
          }
        }
      },
      "FdaManufacturingRiskSummaryResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "company_resolution": {
                    "type": "object",
                    "properties": {
                      "company_id": {
                        "type": "string",
                        "description": "Resolved family ID; counts cover this whole family"
                      },
                      "input_company": {
                        "type": "string",
                        "description": "Company name as asked"
                      },
                      "input_normalized": {
                        "type": "string"
                      },
                      "resolved_via": {
                        "type": "string",
                        "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"
                      },
                      "confidence": {
                        "type": "number",
                        "description": "Resolution confidence from 0 to 1"
                      },
                      "aliases": {
                        "type": "array",
                        "items": {},
                        "description": "Alias list; empty unless verbose=true"
                      },
                      "scope_note": {
                        "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
                        "type": "string"
                      },
                      "matched_family_member": {
                        "description": "The linked family member the input names",
                        "type": "object",
                        "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"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "company_id",
                      "input_company",
                      "input_normalized",
                      "resolved_via",
                      "confidence",
                      "aliases"
                    ],
                    "additionalProperties": {},
                    "description": "Which company family the summary covers and how it was matched"
                  },
                  "period": {
                    "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
                    "type": "object",
                    "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": {
                        "type": "string",
                        "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "date_from",
                      "date_to",
                      "label",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "coverage": {
                    "type": "string",
                    "description": "complete, low_confidence, no_alias_pack or possible_split"
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "recommend_subsidiary_search": {
                    "type": "boolean",
                    "description": "True when coverage is incomplete or nothing matched; consider fda_suggest_subsidiaries"
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "company_id": {
                          "type": "string"
                        },
                        "matched_alias": {
                          "type": "string"
                        },
                        "call": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "company_id",
                        "matched_alias",
                        "call"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "matching_notes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "How names were matched"
                  },
                  "family_context": {
                    "type": "object",
                    "properties": {
                      "child_company_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "family_members": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "child_company_id": {
                              "type": "string"
                            },
                            "relationship_type": {
                              "description": "subsidiary, division or another relationship",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "alias_count": {
                              "description": "Aliases for this member (alias lists only when verbose=true)",
                              "type": "number"
                            }
                          },
                          "required": [
                            "child_company_id"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "search_name_count": {
                        "type": "number"
                      },
                      "fuzzy_expanded_names": {
                        "description": "Names added by fuzzy matching; interpreted matches, not curated aliases",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "child_company_ids",
                      "family_members"
                    ],
                    "additionalProperties": {},
                    "description": "Linked family members included in the counts"
                  },
                  "newest_as_of": {
                    "description": "Newest source date (default compact freshness)",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "data_freshness": {
                    "description": "Per-dataset freshness; only when verbose=true",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "freshness_summary": {
                    "type": "object",
                    "properties": {
                      "newest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "oldest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "freshest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "stalest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "covered_dataset_count": {
                        "type": "number"
                      },
                      "expected_dataset_count": {
                        "type": "number"
                      },
                      "older_datasets": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "dataset_id": {
                              "type": "string"
                            },
                            "as_of_date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "dataset_id",
                            "as_of_date"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "missing_dataset_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "covered_dataset_count",
                      "expected_dataset_count",
                      "older_datasets",
                      "missing_dataset_ids"
                    ],
                    "additionalProperties": {},
                    "description": "Dataset freshness; state it in answers"
                  },
                  "facility_footprint": {
                    "type": "object",
                    "properties": {
                      "total_count": {
                        "type": "number",
                        "description": "Facilities registered or inspected under the family's names"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fei_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "firm_profile_url": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "additionalProperties": {}
                        }
                      },
                      "scope_note": {
                        "type": "string"
                      },
                      "see_also": {
                        "type": "object",
                        "properties": {
                          "tool": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          },
                          "call": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "tool",
                          "reason",
                          "call"
                        ],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "total_count",
                      "results"
                    ],
                    "additionalProperties": {},
                    "description": "Sites in the family; group findings by these"
                  },
                  "inspection_summary": {
                    "type": "object",
                    "properties": {
                      "total_inspections": {
                        "type": "number"
                      },
                      "nai": {
                        "type": "number"
                      },
                      "vai": {
                        "type": "number"
                      },
                      "oai": {
                        "type": "number",
                        "description": "Official Action Indicated (regulatory and/or administrative actions recommended)"
                      },
                      "last_inspection_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "total_inspections",
                      "nai",
                      "vai",
                      "oai"
                    ],
                    "additionalProperties": {}
                  },
                  "recent_inspections": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "inspection_end_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "classification_code": {
                          "description": "NAI, VAI or OAI",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "document_text_coverage": {
                    "type": "object",
                    "properties": {},
                    "additionalProperties": {},
                    "description": "How many returned letters and 483s carry extracted text"
                  },
                  "recent_warning_letters": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "warning_letter_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_issue_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_url": {
                          "description": "Official FDA letter; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_text_status": {
                          "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_excerpt": {
                          "description": "Start of the letter text",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Warning letters from the letter index"
                  },
                  "older_warning_letters": {
                    "description": "Warning letters before the letter index begins, from compliance actions (dates and FEIs only)",
                    "type": "object",
                    "properties": {
                      "total_count": {
                        "type": "number",
                        "description": "Warning letters before the letter index begins"
                      },
                      "letter_index_earliest_issue_date": {
                        "description": "First issue date in the letter index",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fei_number": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "action_taken_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "case_injunction_id": {
                              "description": "FDA Data Dashboard case ID",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "firm_profile_url": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "additionalProperties": {}
                        }
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "total_count",
                      "results",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "recent_oii_records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "oii_record_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "record_url": {
                          "description": "Official FDA document; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "record_date": {
                          "description": "FDA listing record date; listing metadata, not the inspection date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "document_text_status": {
                          "description": "extracted, or why document text is missing",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "document_text_excerpt": {
                          "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "form_483_dates": {
                          "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "inspection_start": {
                                  "description": "First inspection date printed on the Form 483",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "inspection_end": {
                                  "description": "Last inspection date printed on the Form 483",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "issued_date": {
                                  "description": "Date the Form 483 was issued",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "date_conflict_note": {
                          "description": "Present when record_date disagrees with the dates printed on the Form 483",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Form 483s and other OII reading-room documents"
                  },
                  "oii_records_note": {
                    "type": "string"
                  },
                  "import_risk": {
                    "type": "object",
                    "properties": {
                      "import_alert_count": {
                        "type": "number"
                      },
                      "red_list_count": {
                        "type": "number",
                        "description": "Red-list (detention without physical examination) entries"
                      },
                      "green_list_count": {
                        "type": "number"
                      },
                      "last_alert_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "recent_import_alerts": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      },
                      "import_refusal_count": {
                        "type": "number"
                      },
                      "last_refusal_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "recent_import_refusals": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "site_link": {
                              "description": "footprint_registration, inspected_site or name_match_only (unconfirmed, not a company site)",
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "additionalProperties": {}
                        }
                      },
                      "footprint_linked_refusal_count": {
                        "type": "number"
                      },
                      "name_match_only_refusal_count": {
                        "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"
                    ],
                    "additionalProperties": {}
                  },
                  "integrity_signals": {
                    "type": "object",
                    "properties": {
                      "debarment_count": {
                        "type": "number"
                      },
                      "debarments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "debarment_count",
                      "debarments"
                    ],
                    "additionalProperties": {}
                  },
                  "recall_signals": {
                    "type": "object",
                    "properties": {
                      "ires_count": {
                        "type": "number",
                        "description": "Recalls in FDA iRES enforcement reports"
                      },
                      "last_ires_report_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "recent_ires_enforcement": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      },
                      "openfda_enforcement_count": {
                        "type": "number",
                        "description": "Recalls in openFDA enforcement data; overlaps ires_count"
                      },
                      "last_openfda_report_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "recent_openfda_enforcement": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      },
                      "unique_recall_count": {
                        "type": "number",
                        "description": "Distinct recall numbers across both sources"
                      },
                      "count_note": {
                        "type": "string"
                      },
                      "recent_recalls": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "recall_number": {
                              "description": "FDA recall number. Null when FDA has not assigned one yet",
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "event_id": {
                              "description": "Event id, set when the recall number is not assigned 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",
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": {}
                        },
                        "description": "One entry per recall number, merged across both sources"
                      },
                      "recent_recalls_note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "ires_count",
                      "recent_ires_enforcement",
                      "openfda_enforcement_count",
                      "recent_openfda_enforcement",
                      "unique_recall_count",
                      "count_note",
                      "recent_recalls",
                      "recent_recalls_note"
                    ],
                    "additionalProperties": {}
                  },
                  "highest_severity_signals": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "signal_type": {
                          "type": "string",
                          "description": "warning_letter, oai_inspection, debarment, import_alert_red_list or recall"
                        },
                        "severity": {
                          "type": "string",
                          "description": "critical, high or medium"
                        },
                        "count": {
                          "type": "number",
                          "description": "Matching records of this type"
                        },
                        "most_recent_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "last_5_years_count": {
                          "type": "number",
                          "description": "Records inside the recent window"
                        },
                        "recent_window_start": {
                          "type": "string"
                        },
                        "summary": {
                          "type": "string",
                          "description": "One-line reading of this signal, including its age"
                        },
                        "recommended_tool": {
                          "type": "string",
                          "description": "Tool that returns the underlying records"
                        }
                      },
                      "required": [
                        "signal_type",
                        "severity",
                        "count",
                        "last_5_years_count",
                        "recent_window_start",
                        "summary",
                        "recommended_tool"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Most serious findings first, each dated; lead answers with these"
                  },
                  "recommended_follow_ups": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "tool": {
                          "type": "string",
                          "description": "Tool to call next"
                        },
                        "reason": {
                          "type": "string",
                          "description": "Why the follow-up matters"
                        }
                      },
                      "required": [
                        "tool",
                        "reason"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "notable_gaps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Missing data, matching limits and stale sources; state these"
                  },
                  "next_step": {
                    "description": "Present when nothing matched",
                    "type": "object",
                    "properties": {
                      "tool": {
                        "type": "string"
                      },
                      "reason": {
                        "type": "string"
                      },
                      "call": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "tool",
                      "reason",
                      "call"
                    ],
                    "additionalProperties": {}
                  },
                  "no_records_note": {
                    "description": "Present when nothing matched: no matching records does not establish safety",
                    "type": "string"
                  },
                  "near_name_candidates": {
                    "description": "Present when nothing matched: name-similarity suggestions, not verified identities",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "near_name_note": {
                    "type": "string"
                  },
                  "former_subsidiaries": {
                    "description": "Companies the parent spun off or sold, with their own record counts; not in the totals above",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "unresolved_entities": {
                    "description": "Related entities with no recorded ownership change; not in the totals above",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "regdatalab_page": {
                    "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",
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "url"
                    ],
                    "additionalProperties": {}
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "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"
                ],
                "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"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_manufacturing_risk_summary structuredContent"
      },
      "FdaProductCodeLookupArguments": {
        "type": "object",
        "properties": {
          "product_code": {
            "type": "string",
            "maxLength": 5,
            "pattern": "^[A-Z]{2,3}$",
            "description": "Device product code"
          },
          "clearances_offset": {
            "default": 0,
            "description": "510(k) clearances result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "clearances_limit": {
            "default": 100,
            "description": "510(k) clearances result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          },
          "approvals_offset": {
            "default": 0,
            "description": "PMA approvals result offset",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "approvals_limit": {
            "default": 100,
            "description": "PMA approvals result limit",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "product_code"
        ],
        "title": "fda_product_code_lookup arguments"
      },
      "FdaProductCodeLookupCall": {
        "type": "object",
        "description": "Product code cross-reference. Review a device product code across classification, clearance and approval records. Returns available records for the code. Requirements for a specific device depend on the underlying FDA source. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_product_code_lookup"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaProductCodeLookupArguments"
              }
            }
          }
        }
      },
      "FdaProductCodeLookupResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_product_code_lookup structuredContent"
      },
      "FdaRecallFacilityTraceArguments": {
        "type": "object",
        "properties": {
          "recall_number": {
            "description": "Recall number (preferred). If omitted, provide firm to auto-resolve.",
            "type": "string",
            "maxLength": 500
          },
          "firm": {
            "description": "Recalling firm name (fuzzy). Convenience path: resolves the best-matching recall when recall_number is omitted.",
            "type": "string",
            "maxLength": 500
          },
          "product": {
            "description": "Optional product keyword to narrow firm-based resolution (matches product_description).",
            "type": "string",
            "maxLength": 500
          }
        },
        "title": "fda_recall_facility_trace arguments"
      },
      "FdaRecallFacilityTraceCall": {
        "type": "object",
        "description": "Trace recall facilities. Review possible manufacturing sites linked to a recall number. Returns matching recall and facility evidence with link confidence. A company-name match alone does not confirm where a recalled product was made. Requires recall_number or firm; product alone only narrows a firm search. Costs 2 credits.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_recall_facility_trace"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaRecallFacilityTraceArguments"
              }
            }
          }
        }
      },
      "FdaRecallFacilityTraceResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "recall": {
                    "type": "object",
                    "properties": {
                      "recall_number": {
                        "description": "FDA recall number. Null when FDA has not assigned one yet",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "event_id": {
                        "description": "Event id, set when the recall number is not assigned yet",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "recall_number_note": {
                        "description": "Present when FDA has not assigned a recall number yet",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "recalling_firm": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "classification": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "status": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "report_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "product_description": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": {}
                  },
                  "ndc_products": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    },
                    "description": "NDC products cross-referenced from the recall"
                  },
                  "ndc_note": {
                    "description": "Why no NDC cross-reference is available",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "recalling_entity": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "candidate_facilities": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "match_type": {
                          "type": "string"
                        },
                        "confidence": {
                          "type": "string",
                          "description": "high, medium or low"
                        },
                        "note": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "match_type",
                        "confidence",
                        "note"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Possible manufacturing sites; candidates, not confirmed sites"
                  },
                  "resolved_via": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "resolution_path": {
                    "type": "string"
                  },
                  "caveat": {
                    "type": "string",
                    "description": "The manufacturing site cannot be confirmed from FDA public data alone; say so"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "recall",
                  "ndc_products",
                  "recalling_entity",
                  "candidate_facilities",
                  "resolution_path",
                  "caveat"
                ],
                "additionalProperties": {},
                "description": "One recall traced through NDC, labeler and company records to candidate manufacturing facilities. Candidates, not confirmed sites"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_recall_facility_trace structuredContent"
      },
      "FdaRecentFirmActionsArguments": {
        "type": "object",
        "properties": {
          "date_from": {
            "description": "First day of the period (YYYY-MM-DD). Default: 30 days before date_to",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "Last day of the period (YYYY-MM-DD). Default: today",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "kinds": {
            "description": "Which records to list: warning_letter, oai_inspection, or both (default)",
            "maxItems": 2,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "warning_letter",
                "oai_inspection"
              ]
            }
          },
          "product_type": {
            "description": "Product type on the record, partial match (e.g. Drugs, Devices, Food)",
            "type": "string",
            "maxLength": 100
          },
          "country": {
            "description": "Two-letter country code of the site (e.g. US, IN, CN)",
            "type": "string",
            "pattern": "^[A-Za-z]{2}$"
          },
          "include_tobacco": {
            "description": "Also list tobacco warning letters (default false; they are mostly to retailers)",
            "type": "boolean"
          },
          "limit": {
            "description": "Firms to return, newest first (default 50, at most 100)",
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "title": "fda_recent_firm_actions arguments"
      },
      "FdaRecentFirmActionsCall": {
        "type": "object",
        "description": "Recent warning letters and OAI results by firm. List the firms FDA published a warning letter or an OAI (Official Action Indicated) inspection result for in a period, one row per firm, newest first. Defaults to the last 30 days; date_from/date_to set another period of up to 92 days (for \"this month\", the month's first day to today). Each row gives the firm, the newest date, the site (FEI and place), each letter's FDA URL or the site's FDA Data Dashboard firm profile, and account_brief_call for the company's full record. Warning letters count by FDA's posted date; OAI results by the day they first appeared in the FDA Data Dashboard. Filter by kinds, product_type or country. These are public records, not a rating of the firm. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_recent_firm_actions"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaRecentFirmActionsArguments"
              }
            }
          }
        }
      },
      "FdaRecentFirmActionsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "period": {
                    "type": "object",
                    "properties": {
                      "date_from": {
                        "type": "string"
                      },
                      "date_to": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "date_from",
                      "date_to",
                      "label"
                    ],
                    "additionalProperties": {}
                  },
                  "kinds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "totals": {
                    "type": "object",
                    "properties": {
                      "firms": {
                        "type": "number"
                      },
                      "firms_shown": {
                        "type": "number"
                      },
                      "warning_letters": {
                        "type": "number"
                      },
                      "oai_inspections": {
                        "type": "number"
                      },
                      "firms_with_both": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "firms",
                      "firms_shown",
                      "warning_letters",
                      "oai_inspections",
                      "firms_with_both"
                    ],
                    "additionalProperties": {}
                  },
                  "records_capped": {
                    "type": "boolean"
                  },
                  "firms": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "firm_name": {
                          "type": "string",
                          "description": "Firm name as it appears on the record"
                        },
                        "latest_published_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "latest_kind": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "latest_url": {
                          "description": "FDA link for the newest record; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "place": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "warning_letters": {
                          "type": "number"
                        },
                        "oai_inspections": {
                          "type": "number"
                        },
                        "site_count": {
                          "type": "number"
                        },
                        "sites": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "fei_number": {
                                "type": "string"
                              },
                              "place": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "firm_profile_url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "fei_number"
                            ],
                            "additionalProperties": {}
                          }
                        },
                        "actions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "description": "warning_letter or oai_inspection"
                              },
                              "published_date": {
                                "description": "Warning letter: FDA posted date. OAI: day first seen in the FDA Data Dashboard",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "record_date": {
                                "description": "Warning letter: letter date. OAI: inspection end date",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "fei_number": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "place": {
                                "description": "City and state, or city and country, of the site",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "detail": {
                                "description": "Letter subject, or the inspection's project area and product type",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "url": {
                                "description": "The warning letter on fda.gov, or the site's FDA Data Dashboard firm profile; cite it",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "kind"
                            ],
                            "additionalProperties": {}
                          },
                          "description": "This firm's records in the period, newest first"
                        },
                        "account_brief_call": {
                          "type": "string",
                          "description": "fda_manufacturing_risk_summary call for the company's full record"
                        }
                      },
                      "required": [
                        "firm_name",
                        "warning_letters",
                        "oai_inspections",
                        "site_count",
                        "sites",
                        "actions",
                        "account_brief_call"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "One row per firm, newest published record first"
                  },
                  "notes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "How records are dated and grouped; state them"
                  },
                  "glossary": {
                    "type": "string"
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "period",
                  "kinds",
                  "totals",
                  "records_capped",
                  "firms",
                  "notes",
                  "glossary",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "Firms with a warning letter or OAI inspection result published in a period, one row per firm with dates, sites and FDA links"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_recent_firm_actions structuredContent"
      },
      "FdaResolveCompanyArguments": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "maxLength": 500,
            "description": "Company name to resolve"
          }
        },
        "required": [
          "company"
        ],
        "title": "fda_resolve_company arguments"
      },
      "FdaResolveCompanyCall": {
        "type": "object",
        "description": "Resolve company name. Match a company name to a canonical record and its known aliases. Returns the match confidence and names searched. Names of companies it spun off or sold are not aliases; they are listed in former_subsidiaries. Does not save aliases or discover new subsidiaries. Possible family gaps are covered by fda_suggest_subsidiaries. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_resolve_company"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaResolveCompanyArguments"
              }
            }
          }
        }
      },
      "FdaResolveCompanyResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "company_id": {
                    "type": "string",
                    "description": "Stable company ID. Other tools accept it as their company argument only when company_id_note is present"
                  },
                  "canonical_slug": {
                    "type": "string",
                    "description": "Same value as company_id (kept for older clients)"
                  },
                  "company_id_note": {
                    "description": "Present when company_id can be passed as the company argument of other tools; absent when it cannot",
                    "type": "string"
                  },
                  "input_normalized": {
                    "type": "string"
                  },
                  "match": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "description": "How the name matched, e.g. exact_alias, company_id (the input was this company_id) or new_lookup"
                      },
                      "matched_alias": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "source": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "confidence": {
                        "type": "number"
                      },
                      "verified_or_interpreted": {
                        "description": "verified (curated) or interpreted (heuristic) match",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "type",
                      "confidence"
                    ],
                    "additionalProperties": {},
                    "description": "How the input matched the canonical record"
                  },
                  "aliases": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "alias": {
                          "type": "string"
                        },
                        "source": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "interpreted": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "alias"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Names searched for this company"
                  },
                  "confidence": {
                    "type": "number",
                    "description": "Resolution confidence from 0 to 1"
                  },
                  "former_subsidiaries": {
                    "description": "Companies it spun off or sold; not aliases",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "unresolved_entities": {
                    "description": "Related entities with no recorded ownership change; not aliases",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "company_id",
                  "canonical_slug",
                  "input_normalized",
                  "match",
                  "aliases",
                  "confidence",
                  "see_also"
                ],
                "additionalProperties": {},
                "description": "Canonical company record for a name, with match type, confidence and the aliases that will be searched"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_resolve_company structuredContent"
      },
      "FdaSearch510kArguments": {
        "type": "object",
        "properties": {
          "company": {
            "description": "Company name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "product_code": {
            "description": "Device product code",
            "type": "string",
            "maxLength": 5,
            "pattern": "^[A-Z]{2,3}$"
          },
          "decision_code": {
            "description": "Decision code. SESE: Substantially Equivalent. SESD: Substantially Equivalent with Drug. SEKD: Substantially Equivalent - Kit with Drugs. DENG: De Novo granted (DEN-numbered record), not a denial.",
            "type": "string",
            "maxLength": 500
          },
          "clearance_type": {
            "description": "Clearance type (e.g., Traditional, Special)",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Start date for decision_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for decision_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_510k arguments"
      },
      "FdaSearch510kCall": {
        "type": "object",
        "description": "Search 510(k) clearances. Find FDA 510(k) device clearance records by applicant, product code, decision, clearance type or date. Returns matching clearance records. SESD means Substantially Equivalent with Drug. SEKD means Substantially Equivalent - Kit with Drugs. DENG means De Novo granted on a DEN-numbered record. It is not a denial. Clearance does not establish a supplier’s current compliance or product safety. Requires at least one of company, product_code, decision_code, clearance_type, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_510k"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearch510kArguments"
              }
            }
          }
        }
      },
      "FdaSearch510kResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_510k structuredContent"
      },
      "FdaSearchAphisArguments": {
        "type": "object",
        "properties": {
          "company": {
            "description": "Company name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "state": {
            "description": "State code (e.g., CA, NY)",
            "type": "string",
            "maxLength": 10
          },
          "type": {
            "description": "Establishment type",
            "type": "string",
            "enum": [
              "Licensee",
              "Permittee"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_aphis arguments"
      },
      "FdaSearchAphisCall": {
        "type": "object",
        "description": "Search USDA APHIS veterinary biologics. Find USDA APHIS Center for Veterinary Biologics licensed establishments (licensees and permittees) by company, division or state, from USDA's quarterly licensee list. These are USDA records, not FDA inspection findings. Requires at least one of company, state or type; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_aphis"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchAphisArguments"
              }
            }
          }
        }
      },
      "FdaSearchAphisResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_aphis structuredContent"
      },
      "FdaSearchByProductArguments": {
        "type": "object",
        "properties": {
          "product_name": {
            "type": "string",
            "maxLength": 500,
            "description": "Product or brand name (fuzzy search)"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "product_name"
        ],
        "title": "fda_search_by_product arguments"
      },
      "FdaSearchByProductCall": {
        "type": "object",
        "description": "Search by product name. Find available drug and device records by product name. Returns matching products and companies across the covered datasets. A matching name alone does not establish that records describe the same product. Costs 2 credits.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_by_product"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchByProductArguments"
              }
            }
          }
        }
      },
      "FdaSearchByProductResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_by_product structuredContent"
      },
      "FdaSearchDebarmentsArguments": {
        "type": "object",
        "properties": {
          "name": {
            "description": "Person or firm name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "list_type": {
            "description": "Debarment list type",
            "type": "string",
            "enum": [
              "drug_applications",
              "drug_imports",
              "food_imports"
            ]
          },
          "subject_type": {
            "description": "Whether the record is a person or a firm",
            "type": "string",
            "enum": [
              "person",
              "firm"
            ]
          },
          "date_from": {
            "description": "Start date for effective_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for effective_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_debarments arguments"
      },
      "FdaSearchDebarmentsCall": {
        "type": "object",
        "description": "Search FDA debarments. Find public FDA debarment records by name or category. Returns covered debarment evidence. Source dates and scope limit the record’s relevance to supplier decisions. Requires at least one of name, list_type, subject_type, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_debarments"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchDebarmentsArguments"
              }
            }
          }
        }
      },
      "FdaSearchDebarmentsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "list_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "subject_type": {
                          "description": "Person or firm",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "primary_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "effective_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "end_term": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fr_notice_date": {
                          "description": "Federal Register notice date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "volume_page": {
                          "description": "Federal Register citation",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "People and firms on FDA debarment lists, with effective dates and Federal Register citations. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_debarments structuredContent"
      },
      "FdaSearchDrugsArguments": {
        "type": "object",
        "properties": {
          "company": {
            "description": "Company name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "application_number": {
            "description": "Application number",
            "type": "string",
            "maxLength": 500
          },
          "brand_name": {
            "description": "Brand name (searches products JSONB)",
            "type": "string",
            "maxLength": 500
          },
          "status": {
            "description": "Submission status (searches submissions JSONB)",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_drugs arguments"
      },
      "FdaSearchDrugsCall": {
        "type": "object",
        "description": "Search drug applications. Find FDA drug application records by company, brand name, application number or submission status. Returns covered application and product data. Approval details are documented in the underlying FDA source. Requires at least one of company, application_number, brand_name or status; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_drugs"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchDrugsArguments"
              }
            }
          }
        }
      },
      "FdaSearchDrugsResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_drugs structuredContent"
      },
      "FdaSearchEnforcementArguments": {
        "type": "object",
        "properties": {
          "company": {
            "description": "Company or firm name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "classification": {
            "description": "Recall classification severity",
            "type": "string",
            "enum": [
              "Class I",
              "Class II",
              "Class III"
            ]
          },
          "date_from": {
            "description": "Start date for report_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for report_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "status": {
            "description": "Recall status",
            "type": "string",
            "enum": [
              "Ongoing",
              "Terminated"
            ]
          },
          "product_type": {
            "description": "Limit to drug, device or food recalls",
            "type": "string",
            "enum": [
              "drug",
              "device",
              "food"
            ]
          },
          "sort": {
            "description": "newest (default): latest report_date first; relevance: closest company-name match first, then newest",
            "default": "newest",
            "type": "string",
            "enum": [
              "newest",
              "relevance"
            ]
          },
          "detail": {
            "default": "summary",
            "description": "summary (default) shortens reason_for_recall and product_description to 300 characters and marks those rows text_truncated; full returns the complete text",
            "type": "string",
            "enum": [
              "summary",
              "full"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 25,
            "description": "Max results to return (1-500, default 25); page with offset",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_enforcement arguments"
      },
      "FdaSearchEnforcementCall": {
        "type": "object",
        "description": "Search recalls. Find drug, device and food recalls by company, class, product_type (drug, device or food), date or status. Returns 25 recalls per page by default, newest report_date first (sort='relevance' puts the closest firm-name match first instead), with product descriptions and recall reasons shortened unless detail='full'. Class I is the most serious recall class. Possible site links are covered by fda_recall_facility_trace. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_enforcement"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchEnforcementArguments"
              }
            }
          }
        }
      },
      "FdaSearchEnforcementResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "recall_number": {
                          "description": "FDA recall number. Null when FDA has not assigned one yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "event_id": {
                          "description": "openFDA event id, set when the recall number is not assigned yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "recall_number_note": {
                          "description": "Present when FDA has not assigned a recall number yet",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "recalling_firm": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "classification": {
                          "description": "Class I, II or III; Class I is the most serious",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "report_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_for_recall": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "product_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "product_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "text_truncated": {
                          "description": "Present when reason_for_recall or product_description was shortened; pass detail='full' for the complete text",
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "sort": {
                    "description": "Result order: newest report_date first, or closest company-name match first",
                    "type": "string",
                    "enum": [
                      "newest",
                      "relevance"
                    ]
                  },
                  "detail_note": {
                    "description": "Present when some recall text was shortened (detail='summary')",
                    "type": "string"
                  },
                  "no_filter_note": {
                    "description": "Present when no filter was given and the newest recalls are shown",
                    "type": "string"
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "latest_report_date": {
                    "description": "Newest imported report_date per product type (drugs, devices, food); openFDA can trail FDA's weekly Enforcement Report",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "recency_note": {
                    "description": "Present when the requested window runs past the newest imported records; relay it and use fda_ires_enforcement for newer recalls",
                    "type": "string"
                  },
                  "source_links": {
                    "type": "object",
                    "properties": {
                      "fda_enforcement_report": {
                        "type": "string"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "fda_enforcement_report",
                      "note"
                    ],
                    "additionalProperties": {},
                    "description": "FDA's Enforcement Report search page"
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "data_freshness",
                  "coverage_note",
                  "source_links",
                  "see_also"
                ],
                "additionalProperties": {},
                "description": "Drug, device and food recalls from openFDA enforcement data with class, status and reason. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_enforcement structuredContent"
      },
      "FdaSearchFacilitiesArguments": {
        "type": "object",
        "properties": {
          "company": {
            "description": "Facility or company name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "city": {
            "description": "City name",
            "type": "string",
            "maxLength": 500
          },
          "state": {
            "description": "State code (e.g. CA, NY)",
            "type": "string",
            "maxLength": 500
          },
          "country": {
            "description": "ISO country code (e.g. US, DE)",
            "type": "string",
            "maxLength": 500
          },
          "operations": {
            "description": "DECRS operations keyword",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_facilities arguments"
      },
      "FdaSearchFacilitiesCall": {
        "type": "object",
        "description": "Search facilities. Find FDA-registered facilities by company, location or operation. Returns site records with FEI identifiers, locations and source datasets. A registration does not establish compliance or safety. Rows with a known FEI include firm_profile_url, the FDA Data Dashboard firm profile (https://datadashboard.fda.gov/oii/firmprofile.htm?FEIi={fei_number}). Requires at least one of company, city, state, country or operations; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_facilities"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchFacilitiesArguments"
              }
            }
          }
        }
      },
      "FdaSearchFacilitiesResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source": {
                          "description": "Dataset the site came from",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "address": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "Registered and inspected facilities (FEIs) matching the search, with FDA Data Dashboard firm profile links"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_facilities structuredContent"
      },
      "FdaSearchFamilyFacilitiesArguments": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "maxLength": 500,
            "description": "Parent company name"
          },
          "city": {
            "description": "City name",
            "type": "string",
            "maxLength": 500
          },
          "state": {
            "description": "State code (e.g. CA, NY)",
            "type": "string",
            "maxLength": 500
          },
          "country": {
            "description": "ISO country code (e.g. US, DE)",
            "type": "string",
            "maxLength": 500
          },
          "operations": {
            "description": "DECRS operations keyword",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "company"
        ],
        "title": "fda_search_family_facilities arguments"
      },
      "FdaSearchFamilyFacilitiesCall": {
        "type": "object",
        "description": "Search family facilities. Find facilities for a company and its curated subsidiaries. Returns the family search scope and matching site records with FEI identifiers, locations and source datasets. Sites of companies the parent spun off or sold are excluded and counted separately under former_subsidiaries. Unlinked companies may be missing. Possible gaps in the curated family are covered by fda_suggest_subsidiaries. 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}). Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_family_facilities"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchFamilyFacilitiesArguments"
              }
            }
          }
        }
      },
      "FdaSearchFamilyFacilitiesResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "source": {
                          "description": "Dataset the site came from",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "address": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "matched_company_ids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Parent and linked child company IDs searched"
                  },
                  "matched_names": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Names searched"
                  },
                  "family_members_considered": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "former_subsidiaries": {
                    "description": "Companies the parent spun off or sold; not in results",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "unresolved_entities": {
                    "description": "Related entities with no recorded ownership change; not in results",
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "matched_company_ids",
                  "matched_names",
                  "family_members_considered",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "Facilities (FEIs) across a parent company and its linked subsidiaries, with the names that were searched"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_family_facilities structuredContent"
      },
      "FdaSearchImportAlertsArguments": {
        "type": "object",
        "properties": {
          "firm_name": {
            "description": "Firm name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "alert_number": {
            "description": "Import alert number, for example 66-40",
            "type": "string",
            "maxLength": 50
          },
          "list_status": {
            "description": "Whether the firm is on the red list or green list",
            "type": "string",
            "enum": [
              "red",
              "green"
            ]
          },
          "country": {
            "description": "Country name",
            "type": "string",
            "maxLength": 200
          },
          "keyword": {
            "description": "Keyword to search in the alert title, reason, charge, or product notes",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Start date for publish-date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for publish-date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "detail": {
            "default": "summary",
            "description": "summary (default) lists each alert's reason_for_alert, product_description and charge once in `alerts` and shortens each firm's product_lines_text, marking those rows text_truncated; full repeats the complete alert text on every firm row",
            "type": "string",
            "enum": [
              "summary",
              "full"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_import_alerts arguments"
      },
      "FdaSearchImportAlertsCall": {
        "type": "object",
        "description": "Search FDA import alerts. Find FDA import alerts by firm, alert number, country, date or text. Returns one row per listed firm; the alert's own reason, products and charge are given once per alert in `alerts` rather than on every firm row, unless detail='full'. An alert can permit detention without physical examination and is distinct from a specific shipment refusal. Requires at least one of firm_name, alert_number, list_status, country, keyword, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_import_alerts"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchImportAlertsArguments"
              }
            }
          }
        }
      },
      "FdaSearchImportAlertsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "alert_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "alert_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "alert_url": {
                          "description": "Official FDA import alert page; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "list_status": {
                          "description": "Red list (detention without physical examination) or green list",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_date_published": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "publish_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "text_truncated": {
                          "description": "Present when product_lines_text was shortened; pass detail='full' for the complete text",
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "alerts": {
                    "description": "Each alert on this page once, with its reason, products and charge (summary detail only)",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "alert_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "alert_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "alert_url": {
                          "description": "Official FDA import alert page; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "reason_for_alert": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "product_description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "charge": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "detail_note": {
                    "type": "string"
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "data_freshness",
                  "coverage_note",
                  "see_also"
                ],
                "additionalProperties": {},
                "description": "Firms on FDA import alerts with list status and official alert links. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_import_alerts structuredContent"
      },
      "FdaSearchNdcArguments": {
        "type": "object",
        "properties": {
          "company": {
            "description": "Labeler company name, e.g. Novo Nordisk (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "brand_name": {
            "description": "Brand name, e.g. Ozempic (partial match)",
            "type": "string",
            "maxLength": 500
          },
          "product_ndc": {
            "description": "Product NDC",
            "type": "string",
            "maxLength": 500
          },
          "application_number": {
            "description": "Application number",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_ndc arguments"
      },
      "FdaSearchNdcCall": {
        "type": "object",
        "description": "Search NDC directory. Find National Drug Code (NDC) directory records by company or product. Returns available listing details. An NDC listing does not establish FDA approval. Requires at least one of company, brand_name, product_ndc or application_number; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_ndc"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchNdcArguments"
              }
            }
          }
        }
      },
      "FdaSearchNdcResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_ndc structuredContent"
      },
      "FdaSearchNsdeArguments": {
        "type": "object",
        "properties": {
          "proprietary_name": {
            "description": "Brand/proprietary name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "application_number": {
            "description": "Application number (exact match)",
            "type": "string",
            "maxLength": 500
          },
          "package_ndc": {
            "description": "Package NDC (exact match)",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_nsde arguments"
      },
      "FdaSearchNsdeCall": {
        "type": "object",
        "description": "Search NDC SPL data elements (NSDE). Find FDA NDC SPL Data Element (NSDE) records. Returns available package and marketing details. A listing does not establish FDA approval. Requires at least one of proprietary_name, application_number or package_ndc; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_nsde"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchNsdeArguments"
              }
            }
          }
        }
      },
      "FdaSearchNsdeResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_nsde structuredContent"
      },
      "FdaSearchOiiRecordsArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "fei_number": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 40,
                "pattern": "^(?:[Ff][Ee][Ii][\\s:#-]*)?\\d[\\d\\s-]*$"
              },
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            ],
            "description": "FDA Establishment Identifier (FEI): 7 or 10 digits, as a string or a number (e.g. 3004387156)"
          },
          "record_type": {
            "description": "Record type, for example 483",
            "type": "string",
            "maxLength": 200
          },
          "establishment_type": {
            "description": "Establishment type, for example Sterile Drug Manufacturer",
            "type": "string",
            "maxLength": 500
          },
          "country": {
            "description": "Country name",
            "type": "string",
            "maxLength": 200
          },
          "state": {
            "description": "State name",
            "type": "string",
            "maxLength": 200
          },
          "keyword": {
            "description": "Keyword to search in the FDA-provided excerpt and extracted document text",
            "type": "string",
            "maxLength": 500
          },
          "date_from": {
            "description": "Start date for publish_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for publish_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_oii_records arguments"
      },
      "FdaSearchOiiRecordsCall": {
        "type": "object",
        "description": "Search FDA inspection reading room records (OII). Find FDA Office of Inspections and Investigations (OII) reading room records, including available Form 483 documents. Returns matching document records. A Form 483 lists inspection observations and is not a final agency determination. Requires at least one of company_name, fei_number, record_type, establishment_type, country, state, keyword, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_oii_records"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchOiiRecordsArguments"
              }
            }
          }
        }
      },
      "FdaSearchOiiRecordsResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "oii_record_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "record_url": {
                          "description": "Official FDA document; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "record_date": {
                          "description": "FDA listing record date; listing metadata, not the inspection date",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "document_text_status": {
                          "description": "extracted, or why document text is missing",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "document_text_excerpt": {
                          "description": "Machine-extracted (OCR) excerpt starting at Observation 1; may contain errors",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "form_483_dates": {
                          "description": "Dates printed on the Form 483 header, when every page header agrees. Prefer these over record_date",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "inspection_start": {
                                  "description": "First inspection date printed on the Form 483",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "inspection_end": {
                                  "description": "Last inspection date printed on the Form 483",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "issued_date": {
                                  "description": "Date the Form 483 was issued",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "date_conflict_note": {
                          "description": "Present when record_date disagrees with the dates printed on the Form 483",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "record_type": {
                          "description": "Form 483, EIR or another reading-room document type",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "company_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "publish_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "date_fields": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "What each date field means"
                  },
                  "document_text_note": {
                    "type": "string"
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "data_freshness": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "Last successful import per dataset; state it in answers"
                  },
                  "coverage_note": {
                    "type": "string",
                    "description": "What was searched; when nothing matched, says no matching records does not establish safety"
                  },
                  "next_step": {
                    "description": "Present when nothing matched: how to widen the search",
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "date_fields",
                  "pagination",
                  "see_also",
                  "data_freshness",
                  "coverage_note"
                ],
                "additionalProperties": {},
                "description": "Form 483s and other FDA OII reading-room documents with official links and OCR excerpts. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_oii_records structuredContent"
      },
      "FdaSearchOpdpUntitledLettersArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "product_issue": {
            "description": "Product or issue text from the OPDP table (partial match)",
            "type": "string",
            "maxLength": 500
          },
          "keyword": {
            "description": "Keyword to search in the extracted untitled-letter text",
            "type": "string",
            "maxLength": 500
          },
          "has_close_out": {
            "description": "Whether the record has a linked close-out letter",
            "type": "boolean"
          },
          "date_from": {
            "description": "Start date for issued_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for issued_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_opdp_untitled_letters arguments"
      },
      "FdaSearchOpdpUntitledLettersCall": {
        "type": "object",
        "description": "Search FDA drug promotion untitled letters (OPDP). Find FDA Office of Prescription Drug Promotion (OPDP) untitled letters by company, product or date. Returns covered letter records and source evidence. An untitled letter is distinct from a warning letter. Requires at least one of company_name, product_issue, keyword, has_close_out, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_opdp_untitled_letters"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchOpdpUntitledLettersArguments"
              }
            }
          }
        }
      },
      "FdaSearchOpdpUntitledLettersResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_opdp_untitled_letters structuredContent"
      },
      "FdaSearchPmaArguments": {
        "type": "object",
        "properties": {
          "company": {
            "description": "Company name (fuzzy search)",
            "type": "string",
            "maxLength": 500
          },
          "product_code": {
            "description": "Device product code",
            "type": "string",
            "maxLength": 5,
            "pattern": "^[A-Z]{2,3}$"
          },
          "date_from": {
            "description": "Start date for decision_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for decision_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_pma arguments"
      },
      "FdaSearchPmaCall": {
        "type": "object",
        "description": "Search PMA approvals. Find FDA premarket approval (PMA) device records by applicant, product code or date. Returns available approval and supplement records. Each source record documents the scope of its approval or supplement. Requires at least one of company, product_code, date_from or date_to; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_pma"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchPmaArguments"
              }
            }
          }
        }
      },
      "FdaSearchPmaResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_pma structuredContent"
      },
      "FdaSearchRecallTextArguments": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "description": "Search terms (e.g. 'salmonella contamination', 'mislabeled dosage')"
          },
          "search_field": {
            "description": "Which field to search: reason_for_recall, product_description, or both (default: both)",
            "default": "both",
            "type": "string",
            "enum": [
              "reason",
              "product",
              "both"
            ]
          },
          "classification": {
            "description": "Filter by recall classification severity",
            "type": "string",
            "enum": [
              "Class I",
              "Class II",
              "Class III"
            ]
          },
          "product_type": {
            "description": "Filter by product type",
            "type": "string",
            "enum": [
              "Drugs",
              "Devices"
            ]
          },
          "date_from": {
            "description": "Start date for report_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for report_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "sort": {
            "description": "newest (default): latest report_date first; relevance: best text match first, then newest",
            "default": "newest",
            "type": "string",
            "enum": [
              "newest",
              "relevance"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "required": [
          "query"
        ],
        "title": "fda_search_recall_text arguments"
      },
      "FdaSearchRecallTextCall": {
        "type": "object",
        "description": "Search recall text. Search recall product descriptions and reasons by text. Returns matching public recall records, newest report_date first (sort='relevance' ranks by text match instead). Class, product-type and date filters narrow results. A text match does not establish a facility link. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_recall_text"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchRecallTextArguments"
              }
            }
          }
        }
      },
      "FdaSearchRecallTextResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_recall_text structuredContent"
      },
      "FdaSearchWarningLettersArguments": {
        "type": "object",
        "properties": {
          "company_name": {
            "description": "Company name (fuzzy match). Also matches the company's known aliases and family members; each row's company_match says which",
            "type": "string",
            "maxLength": 500
          },
          "keyword": {
            "description": "Full-text query for body and subject; missing bodies fall back to listing subject, company and issuing office",
            "type": "string",
            "maxLength": 500
          },
          "issuing_office": {
            "description": "Issuing office or center name (partial match)",
            "type": "string",
            "maxLength": 500
          },
          "subject": {
            "description": "Subject line text (partial match)",
            "type": "string",
            "maxLength": 500
          },
          "marcs_cms_number": {
            "description": "MARCS-CMS case number shown on the letter page",
            "type": "string",
            "pattern": "^\\d{3,10}$"
          },
          "product_type": {
            "description": "Product type from the letter page (e.g. Drugs, Devices, Food)",
            "type": "string",
            "maxLength": 200
          },
          "status": {
            "description": "Derived status: closed (has closeout date), responded (has response date), or open",
            "type": "string",
            "enum": [
              "open",
              "responded",
              "closed"
            ]
          },
          "letter_category": {
            "description": "Heuristic category derived from issuing_office/subject/product_type",
            "type": "string",
            "enum": [
              "CGMP-manufacturing",
              "BIMO",
              "listing",
              "OPDP/promotion",
              "503B/compounding",
              "import",
              "postmarketing-reporting"
            ]
          },
          "violation_theme": {
            "description": "Heuristic violation theme from subject and body; missing bodies fall back to listing subject, company and issuing office",
            "type": "string",
            "enum": [
              "cgmp_subsystem",
              "data_integrity",
              "validation",
              "bimo",
              "listing",
              "promotion"
            ]
          },
          "dedupe": {
            "default": false,
            "description": "Collapse letters sharing a MARCS-CMS case number to one canonical row (recommended for prospecting)",
            "type": "boolean"
          },
          "date_from": {
            "description": "Start date for letter_issue_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "End date for letter_issue_date range (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_search_warning_letters arguments"
      },
      "FdaSearchWarningLettersCall": {
        "type": "object",
        "description": "Search warning letters. Find FDA warning letters by company, date or text. Returns matching letters and available source links. company_name also matches the company's known aliases and linked family members such as subsidiaries; each row's company_match says which. Public letter coverage and company matching may be incomplete. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_search_warning_letters"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSearchWarningLettersArguments"
              }
            }
          }
        }
      },
      "FdaSearchWarningLettersResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "warning_letter_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_url": {
                          "description": "Official FDA letter; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_issue_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "fei_source": {
                          "description": "letter_text, or fda_compliance_actions when the FEI comes from the Data Dashboard action with the same MARCS-CMS number",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_category": {
                          "description": "Heuristic category from office, subject and product type",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_text_status": {
                          "description": "retrieved when usable letter text is returned; otherwise not_retrieved or unavailable",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_excerpt": {
                          "description": "Start of the letter text",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    },
                    "description": "Letters from the warning-letter index"
                  },
                  "pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "no_filter_note": {
                    "description": "Present when no filter was given and the newest letters are shown",
                    "type": "string"
                  },
                  "related_letters": {
                    "description": "Letters linked to the company by alias, family link or candidate email domain, not counted in results; check link_reason before attributing them",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "warning_letter_id": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_url": {
                          "description": "Official FDA letter; cite it",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "company_name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "letter_issue_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "link_reason": {
                          "type": "string",
                          "description": "company_alias (another of the company's own aliases), family_member (a linked legal entity such as a subsidiary) or recipient_email_domain (recipient email at a candidate company domain)"
                        },
                        "candidate_email_domain": {
                          "description": "For recipient_email_domain: the registrable domain matched, inferred from the company name, not verified",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "link_reason"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "related_letters_note": {
                    "type": "string"
                  },
                  "letter_index_earliest_issue_date": {
                    "description": "First issue date in the letter index",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "warning_letter_actions": {
                    "description": "Present when a company search found no indexed letters: warning letters from compliance actions (dates and FEIs, no text)",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fei_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "action_taken_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "case_injunction_id": {
                          "description": "FDA Data Dashboard case ID",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "firm_profile_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": {}
                    }
                  },
                  "warning_letter_actions_pagination": {
                    "type": "object",
                    "properties": {
                      "offset": {
                        "type": "number"
                      },
                      "limit": {
                        "type": "number"
                      },
                      "total_count": {
                        "type": "number"
                      },
                      "has_more": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "offset",
                      "limit",
                      "total_count"
                    ],
                    "additionalProperties": {}
                  },
                  "coverage_note": {
                    "description": "Present when no indexed letter matched; explains what was searched",
                    "type": "string"
                  },
                  "data_freshness": {
                    "description": "Last successful warning-letter import, with the source as-of date",
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "executed_at": {
                          "type": "string"
                        },
                        "as_of_date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "executed_at",
                        "as_of_date"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "results",
                  "pagination",
                  "see_also"
                ],
                "additionalProperties": {},
                "description": "Warning letters with official letter links, plus older warning-letter actions when a company has none in the letter index. Dates are YYYY-MM-DD"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_search_warning_letters structuredContent"
      },
      "FdaSubstanceLookupArguments": {
        "type": "object",
        "properties": {
          "unii": {
            "description": "UNII code (exact match)",
            "type": "string",
            "maxLength": 20
          },
          "substance_name": {
            "description": "Substance name (fuzzy match)",
            "type": "string",
            "maxLength": 500
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination (0-10000)",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 100,
            "description": "Max results to return (1-500)",
            "type": "integer",
            "minimum": 1,
            "maximum": 500
          }
        },
        "title": "fda_substance_lookup arguments"
      },
      "FdaSubstanceLookupCall": {
        "type": "object",
        "description": "Substance lookup. Find FDA substance records and Unique Ingredient Identifier (UNII) codes by name or identifier. A substance identifier does not establish product approval or safety. Requires at least one of unii or substance_name; a call with only offset and limit is rejected. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_substance_lookup"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSubstanceLookupArguments"
              }
            }
          }
        }
      },
      "FdaSubstanceLookupResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_substance_lookup structuredContent"
      },
      "FdaSuggestSubsidiariesArguments": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string",
            "maxLength": 500,
            "description": "Company name to analyze"
          },
          "cik": {
            "description": "SEC CIK (optional, auto-resolved if omitted)",
            "type": "string",
            "pattern": "^\\d{1,10}$"
          }
        },
        "required": [
          "company"
        ],
        "title": "fda_suggest_subsidiaries arguments"
      },
      "FdaSuggestSubsidiariesCall": {
        "type": "object",
        "description": "Discover subsidiaries. Review possible subsidiaries using FDA datasets first, then SEC EDGAR Exhibit 21 filings and GLEIF relationships. Costs 2 credits. Returns candidates, supporting evidence and coverage gaps. Does not save or link companies. External sources can lag acquisitions and divestitures; known spun-off or sold companies are listed in former_subsidiaries and not suggested. Confirmed relationship changes require evidence review and administrator curation.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_suggest_subsidiaries"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSuggestSubsidiariesArguments"
              }
            }
          }
        }
      },
      "FdaSuggestSubsidiariesResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "company_id": {
                    "type": "string"
                  },
                  "input_normalized": {
                    "type": "string"
                  },
                  "fda_candidates": {
                    "description": "Name variants seen in FDA data; unverified until linked",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "datasets": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "frequency": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": {}
                    }
                  },
                  "edgar_subsidiaries": {
                    "description": "Subsidiaries from SEC EDGAR filings",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "gleif_subsidiaries": {
                    "description": "Subsidiary names from GLEIF ownership records",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "suggested_company_records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "existing_aliases": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "existing_family_members": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {}
                    }
                  },
                  "name_expansion": {
                    "type": "object",
                    "properties": {
                      "complete": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "complete"
                    ],
                    "additionalProperties": {}
                  },
                  "former_subsidiaries": {
                    "type": "object",
                    "properties": {
                      "counted_in_parent_totals": {
                        "type": "boolean",
                        "const": false
                      },
                      "note": {
                        "type": "string"
                      },
                      "results": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {},
                          "additionalProperties": {}
                        }
                      }
                    },
                    "required": [
                      "counted_in_parent_totals",
                      "note",
                      "results"
                    ],
                    "additionalProperties": {}
                  },
                  "external_sources_note": {
                    "type": "string"
                  },
                  "external_sources": {
                    "description": "Whether SEC EDGAR and GLEIF answered; only returned means the source was checked",
                    "type": "object",
                    "properties": {
                      "edgar": {
                        "type": "string",
                        "enum": [
                          "returned",
                          "no_filer",
                          "unavailable",
                          "timed_out"
                        ]
                      },
                      "gleif": {
                        "type": "string",
                        "enum": [
                          "returned",
                          "no_filer",
                          "unavailable",
                          "timed_out"
                        ]
                      }
                    },
                    "required": [
                      "edgar",
                      "gleif"
                    ],
                    "additionalProperties": {}
                  },
                  "excluded_other_family_records": {
                    "description": "Company records left out because they head or belong to another curated family",
                    "type": "number"
                  },
                  "coverage": {
                    "description": "How many candidate FEIs are already in the family",
                    "type": "object",
                    "properties": {
                      "linked_feis": {
                        "type": "number",
                        "description": "Candidate FEIs already linked to the company or a family member; never above total_candidate_feis"
                      },
                      "total_candidate_feis": {
                        "type": "number"
                      },
                      "unlinked_feis": {
                        "type": "number"
                      },
                      "family_linked_feis": {
                        "description": "All FEIs linked to the family, including ones outside the candidate set",
                        "type": "number"
                      }
                    },
                    "required": [
                      "linked_feis",
                      "total_candidate_feis",
                      "unlinked_feis"
                    ],
                    "additionalProperties": {}
                  },
                  "see_also": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Related tools and what each adds"
                  },
                  "output_limits": {
                    "description": "Per-section truncation; partial means something was left out",
                    "type": "object",
                    "properties": {
                      "partial": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "partial"
                    ],
                    "additionalProperties": {}
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "additionalProperties": {},
                "description": "Possible subsidiaries and name variants not yet in the company family, from FDA, SEC EDGAR and GLEIF data. Suggestions, not verified relationships"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_suggest_subsidiaries structuredContent"
      },
      "FdaSupplierRiskTableArguments": {
        "type": "object",
        "properties": {
          "suppliers": {
            "minItems": 2,
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 500
            },
            "description": "Supplier company names or company_ids (2 to 25), one per entry"
          },
          "sort_by": {
            "description": "records (default): most warning letters, OAI inspections, import alerts and recalls first; latest_record: newest record first; input_order: as given",
            "type": "string",
            "enum": [
              "records",
              "latest_record",
              "input_order"
            ]
          },
          "date_from": {
            "description": "Count only records dated on or after this day (YYYY-MM-DD). Omit both dates for all time.",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "date_to": {
            "description": "Count only records dated on or before this day (YYYY-MM-DD)",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "required": [
          "suppliers"
        ],
        "title": "fda_supplier_risk_table arguments"
      },
      "FdaSupplierRiskTableCall": {
        "type": "object",
        "description": "Supplier risk table. Check a list of 2 to 25 suppliers in one call and get one table of their FDA records. Returns one row per supplier with the matched company family, facilities, inspection classifications (NAI/VAI/OAI), warning letters, the latest Form 483 or other OII record, import alerts and refusals, debarments and recalls, each with its most recent date and FDA source links, plus totals and dataset freshness. Rows are sorted by record counts (sort_by: records), newest record (latest_record) or as given (input_order); the order is not a risk rating. Counts match fda_manufacturing_risk_summary for the same company and period; each row's details_call gives that call. Counts cover all dates unless date_from/date_to set a period. No matching records does not establish safety.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "fda_supplier_risk_table"
              },
              "arguments": {
                "$ref": "#/components/schemas/FdaSupplierRiskTableArguments"
              }
            }
          }
        }
      },
      "FdaSupplierRiskTableResult": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "period": {
                    "description": "Which dates the counts, recent records and signals cover (date_from/date_to inputs); all time unless set",
                    "type": "object",
                    "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": {
                        "type": "string",
                        "description": "The period in words, e.g. All time or Since 2022-01-01; state it with the counts"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "date_from",
                      "date_to",
                      "label",
                      "note"
                    ],
                    "additionalProperties": {}
                  },
                  "sort_by": {
                    "type": "string",
                    "description": "records, latest_record or input_order"
                  },
                  "sort_note": {
                    "type": "string",
                    "description": "How rows are sorted; the order is not a risk rating"
                  },
                  "table_note": {
                    "type": "string",
                    "description": "How to read the rows; counts grow with company size"
                  },
                  "totals": {
                    "type": "object",
                    "properties": {
                      "suppliers_asked": {
                        "type": "number"
                      },
                      "suppliers_with_counts": {
                        "type": "number"
                      },
                      "with_warning_letters": {
                        "type": "number"
                      },
                      "with_oai_inspections": {
                        "type": "number"
                      },
                      "with_import_alerts": {
                        "type": "number"
                      },
                      "with_recalls": {
                        "type": "number"
                      },
                      "with_no_matching_records": {
                        "type": "number"
                      },
                      "not_resolved": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "suppliers_asked",
                      "suppliers_with_counts",
                      "with_warning_letters",
                      "with_oai_inspections",
                      "with_import_alerts",
                      "with_recalls",
                      "with_no_matching_records",
                      "not_resolved"
                    ],
                    "additionalProperties": {},
                    "description": "How many suppliers have each kind of record"
                  },
                  "table": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "input_company": {
                          "type": "string",
                          "description": "Company name as asked"
                        },
                        "status": {
                          "type": "string",
                          "description": "resolved; no_matching_records (zeros, check near_name_candidates); not_resolved (name could not be read, no counts)"
                        },
                        "company_id": {
                          "description": "Resolved family ID; counts cover this whole family",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "coverage": {
                          "description": "complete, low_confidence, no_alias_pack or possible_split",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "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",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "company_id": {
                                "type": "string"
                              },
                              "matched_alias": {
                                "type": "string"
                              },
                              "call": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "company_id",
                              "matched_alias",
                              "call"
                            ],
                            "additionalProperties": {}
                          }
                        },
                        "scope_note": {
                          "description": "Present when the input rolled up to a parent family it does not name; say this to the user",
                          "type": "string"
                        },
                        "error": {
                          "type": "string"
                        },
                        "facility_count": {
                          "type": "number",
                          "description": "Facilities registered or inspected under the family's names"
                        },
                        "inspections": {
                          "type": "object",
                          "properties": {
                            "total": {
                              "type": "number"
                            },
                            "nai": {
                              "type": "number"
                            },
                            "vai": {
                              "type": "number"
                            },
                            "oai": {
                              "type": "number"
                            },
                            "oai_share": {
                              "description": "OAI inspections as a share of all inspections, 0 to 1; null with no inspections",
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "last_inspection_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "total",
                            "nai",
                            "vai",
                            "oai",
                            "oai_share"
                          ],
                          "additionalProperties": {}
                        },
                        "warning_letters": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "number",
                              "description": "Warning letters, including older ones from FDA compliance actions"
                            },
                            "most_recent_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "count"
                          ],
                          "additionalProperties": {},
                          "description": "Warning letters, including older ones from FDA compliance actions"
                        },
                        "latest_oii_record": {
                          "description": "Newest Form 483 or other OII reading-room record",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "record_type": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "record_date": {
                                  "description": "FDA listing date",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "record_url": {
                                  "description": "Official FDA document; cite it",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "import_alerts": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "red_list_count": {
                              "type": "number"
                            },
                            "last_alert_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "count",
                            "red_list_count"
                          ],
                          "additionalProperties": {}
                        },
                        "import_refusals": {
                          "type": "object",
                          "properties": {
                            "count": {
                              "type": "number"
                            },
                            "footprint_linked_count": {
                              "type": "number"
                            },
                            "last_refusal_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "count",
                            "footprint_linked_count"
                          ],
                          "additionalProperties": {}
                        },
                        "debarment_count": {
                          "type": "number"
                        },
                        "recalls": {
                          "type": "object",
                          "properties": {
                            "unique_count": {
                              "type": "number"
                            },
                            "most_recent_date": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "unique_count"
                          ],
                          "additionalProperties": {}
                        },
                        "highest_severity_signals": {
                          "description": "Severity-ranked signals with dates",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {}
                          }
                        },
                        "notable_gaps": {
                          "description": "This company's caveats from the risk summary; state them with its counts",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "near_name_candidates": {
                          "description": "Present with no_matching_records: name-similarity suggestions, not verified identities",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {},
                            "additionalProperties": {}
                          }
                        },
                        "details_call": {
                          "description": "fda_manufacturing_risk_summary call for this company's records",
                          "type": "string"
                        },
                        "rank": {
                          "type": "number",
                          "description": "Position in the sorted table, from 1"
                        },
                        "latest_record_date": {
                          "description": "Newest inspection, warning letter, OII record, import alert or recall date on the row (import refusals not included)",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "input_company",
                        "status",
                        "company_id",
                        "rank"
                      ],
                      "additionalProperties": {}
                    },
                    "description": "One row per supplier, sorted as sort_by says"
                  },
                  "newest_as_of": {
                    "description": "Newest source date (default compact freshness)",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "freshness_summary": {
                    "type": "object",
                    "properties": {
                      "newest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "oldest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "freshest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "stalest_as_of_date": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "covered_dataset_count": {
                        "type": "number"
                      },
                      "expected_dataset_count": {
                        "type": "number"
                      },
                      "older_datasets": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "dataset_id": {
                              "type": "string"
                            },
                            "as_of_date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "dataset_id",
                            "as_of_date"
                          ],
                          "additionalProperties": {}
                        }
                      },
                      "missing_dataset_ids": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "covered_dataset_count",
                      "expected_dataset_count",
                      "older_datasets",
                      "missing_dataset_ids"
                    ],
                    "additionalProperties": {},
                    "description": "Dataset freshness; state it in answers"
                  },
                  "notable_gaps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Caveats shared by every supplier, plus matching limits and unresolved names; state them"
                  },
                  "no_records_note": {
                    "type": "string"
                  },
                  "notices": {
                    "description": "Account notices about this key, such as a low balance; show them to the user",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "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",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "title",
                        "url"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "sort_by",
                  "sort_note",
                  "table_note",
                  "totals",
                  "table",
                  "notable_gaps",
                  "no_records_note"
                ],
                "additionalProperties": {},
                "description": "One table of FDA record counts and dates for a list of 2 to 25 supplier company families, sorted by record counts (not a rating), with freshness and matching limits"
              },
              {
                "type": "object",
                "properties": {
                  "auth_required": {
                    "type": "boolean",
                    "const": true
                  },
                  "attempted_tool": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "signup_url": {
                    "type": "string"
                  }
                },
                "required": [
                  "auth_required",
                  "attempted_tool",
                  "message",
                  "signup_url"
                ],
                "additionalProperties": {},
                "description": "Returned instead of records when the session has no API key: how to sign up and connect"
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "fda_supplier_risk_table structuredContent"
      },
      "SoftwareCompareArguments": {
        "type": "object",
        "properties": {
          "slugs": {
            "minItems": 2,
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "emerson-deltav-mes",
                "korber-pas-x",
                "siemens-opcenter-pharma",
                "rockwell-pharmasuite",
                "sap-digital-manufacturing",
                "pomsnet-aquila",
                "apprentice-tempo",
                "honeywell-performix",
                "mastercontrol-manufacturing-excellence",
                "aizon-execute",
                "veeva-vault-quality",
                "octave-reliance",
                "qualio",
                "honeywell-trackwise",
                "mastercontrol-quality-excellence",
                "greenlight-guru",
                "dot-compliance",
                "compliancequest",
                "iqvia-smartsolve",
                "ennov-qms",
                "labware-lims",
                "starlims",
                "labvantage-lims",
                "thermo-samplemanager",
                "autoscribe-matrix-gemini",
                "agilent-slims",
                "sapio-gmp-lims",
                "biovia-one-lab",
                "benchling-notebook",
                "tulip",
                "tracelink-serialization",
                "waters-nugenesis-sdms",
                "idbs-polar",
                "korber-pas-x-track-and-trace"
              ]
            },
            "description": "2 to 5 product slugs"
          }
        },
        "required": [
          "slugs"
        ],
        "title": "software_compare arguments"
      },
      "SoftwareCompareCall": {
        "type": "object",
        "description": "Compare software products. Compare selected software product records from the curated catalog. Returns available evidence and gaps. Product selection depends on the source documents and the buyer’s requirements; this comparison does not establish that a product meets those requirements. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "software_compare"
              },
              "arguments": {
                "$ref": "#/components/schemas/SoftwareCompareArguments"
              }
            }
          }
        }
      },
      "SoftwareCompareResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "software_compare structuredContent"
      },
      "SoftwareGetProductArguments": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "enum": [
              "emerson-deltav-mes",
              "korber-pas-x",
              "siemens-opcenter-pharma",
              "rockwell-pharmasuite",
              "sap-digital-manufacturing",
              "pomsnet-aquila",
              "apprentice-tempo",
              "honeywell-performix",
              "mastercontrol-manufacturing-excellence",
              "aizon-execute",
              "veeva-vault-quality",
              "octave-reliance",
              "qualio",
              "honeywell-trackwise",
              "mastercontrol-quality-excellence",
              "greenlight-guru",
              "dot-compliance",
              "compliancequest",
              "iqvia-smartsolve",
              "ennov-qms",
              "labware-lims",
              "starlims",
              "labvantage-lims",
              "thermo-samplemanager",
              "autoscribe-matrix-gemini",
              "agilent-slims",
              "sapio-gmp-lims",
              "biovia-one-lab",
              "benchling-notebook",
              "tulip",
              "tracelink-serialization",
              "waters-nugenesis-sdms",
              "idbs-polar",
              "korber-pas-x-track-and-trace"
            ],
            "description": "Product slug from software_search_products"
          }
        },
        "required": [
          "slug"
        ],
        "title": "software_get_product arguments"
      },
      "SoftwareGetProductCall": {
        "type": "object",
        "description": "Get software profile. Read a software product profile with available evidence and source links. Returns documented facts and coverage gaps from the curated catalog. Missing evidence does not establish that a capability is absent. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "software_get_product"
              },
              "arguments": {
                "$ref": "#/components/schemas/SoftwareGetProductArguments"
              }
            }
          }
        }
      },
      "SoftwareGetProductResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "software_get_product structuredContent"
      },
      "SoftwareGetSourcesArguments": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "enum": [
              "emerson-deltav-mes",
              "korber-pas-x",
              "siemens-opcenter-pharma",
              "rockwell-pharmasuite",
              "sap-digital-manufacturing",
              "pomsnet-aquila",
              "apprentice-tempo",
              "honeywell-performix",
              "mastercontrol-manufacturing-excellence",
              "aizon-execute",
              "veeva-vault-quality",
              "octave-reliance",
              "qualio",
              "honeywell-trackwise",
              "mastercontrol-quality-excellence",
              "greenlight-guru",
              "dot-compliance",
              "compliancequest",
              "iqvia-smartsolve",
              "ennov-qms",
              "labware-lims",
              "starlims",
              "labvantage-lims",
              "thermo-samplemanager",
              "autoscribe-matrix-gemini",
              "agilent-slims",
              "sapio-gmp-lims",
              "biovia-one-lab",
              "benchling-notebook",
              "tulip",
              "tracelink-serialization",
              "waters-nugenesis-sdms",
              "idbs-polar",
              "korber-pas-x-track-and-trace"
            ],
            "description": "Product slug from software_search_products"
          }
        },
        "required": [
          "slug"
        ],
        "title": "software_get_sources arguments"
      },
      "SoftwareGetSourcesCall": {
        "type": "object",
        "description": "Get software sources note. Read the source and coverage notes for the curated software research catalog. Returns documented research limits. This is separate from FDA data coverage. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "software_get_sources"
              },
              "arguments": {
                "$ref": "#/components/schemas/SoftwareGetSourcesArguments"
              }
            }
          }
        }
      },
      "SoftwareGetSourcesResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "software_get_sources structuredContent"
      },
      "SoftwareListEvidenceArguments": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "enum": [
              "emerson-deltav-mes",
              "korber-pas-x",
              "siemens-opcenter-pharma",
              "rockwell-pharmasuite",
              "sap-digital-manufacturing",
              "pomsnet-aquila",
              "apprentice-tempo",
              "honeywell-performix",
              "mastercontrol-manufacturing-excellence",
              "aizon-execute",
              "veeva-vault-quality",
              "octave-reliance",
              "qualio",
              "honeywell-trackwise",
              "mastercontrol-quality-excellence",
              "greenlight-guru",
              "dot-compliance",
              "compliancequest",
              "iqvia-smartsolve",
              "ennov-qms",
              "labware-lims",
              "starlims",
              "labvantage-lims",
              "thermo-samplemanager",
              "autoscribe-matrix-gemini",
              "agilent-slims",
              "sapio-gmp-lims",
              "biovia-one-lab",
              "benchling-notebook",
              "tulip",
              "tracelink-serialization",
              "waters-nugenesis-sdms",
              "idbs-polar",
              "korber-pas-x-track-and-trace"
            ],
            "description": "Product slug from software_search_products"
          },
          "topic": {
            "description": "Topic filter, e.g. analyst, architecture, assurance, boundary, capabilities, changes, classification, commercial",
            "type": "string",
            "maxLength": 50
          },
          "source_type": {
            "description": "Source type filter",
            "type": "string",
            "enum": [
              "vendor_statement",
              "customer_account",
              "regulator_record",
              "procurement",
              "press",
              "our_analysis"
            ]
          },
          "offset": {
            "default": 0,
            "description": "Result offset for pagination",
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          },
          "limit": {
            "default": 50,
            "description": "Max claims to return (1-200)",
            "type": "integer",
            "minimum": 1,
            "maximum": 200
          }
        },
        "required": [
          "slug"
        ],
        "title": "software_list_evidence arguments"
      },
      "SoftwareListEvidenceCall": {
        "type": "object",
        "description": "List software evidence. Sourced claims for one researched product, optionally filtered by topic and source type. Each claim carries its source URL, source type, passage, confidence and caveats. Source types: vendor_statement, customer_account, regulator_record, procurement, press, our_analysis. A page that could not be retrieved is recorded as \"not retrieved\", never as a zero. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "software_list_evidence"
              },
              "arguments": {
                "$ref": "#/components/schemas/SoftwareListEvidenceArguments"
              }
            }
          }
        }
      },
      "SoftwareListEvidenceResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "software_list_evidence structuredContent"
      },
      "SoftwareSearchProductsArguments": {
        "type": "object",
        "properties": {
          "query": {
            "description": "Words to match in vendor, product or category (all words must match). Omit to list all.",
            "type": "string",
            "maxLength": 200
          },
          "category": {
            "description": "MES, QMS, LIMS, or adjacent",
            "type": "string",
            "enum": [
              "MES",
              "QMS",
              "LIMS",
              "adjacent"
            ]
          }
        },
        "title": "software_search_products arguments"
      },
      "SoftwareSearchProductsCall": {
        "type": "object",
        "description": "Search software research. Search RegDataLab's public-source software research: 34 MES, QMS, LIMS and adjacent products used in pharmaceutical and biotech manufacturing. Text search over vendor, product and category, optionally filtered by category. Returns slugs for software_get_product, software_compare, software_list_evidence and software_get_sources. Not a ranking or a recommendation. Costs 1 credit.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "software_search_products"
              },
              "arguments": {
                "$ref": "#/components/schemas/SoftwareSearchProductsArguments"
              }
            }
          }
        }
      },
      "SoftwareSearchProductsResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "software_search_products structuredContent"
      },
      "SubmitFeedbackArguments": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000,
            "description": "What the user wants the team to know, in their words. 2000 characters at most."
          },
          "category": {
            "type": "string",
            "enum": [
              "bug",
              "data_issue",
              "feature_request",
              "praise",
              "other"
            ],
            "description": "bug, data_issue, feature_request, praise, or other"
          },
          "tool_name": {
            "description": "The RegDataLab tool this note is about, when the user named one",
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "pattern": "^[a-z][a-z0-9_]*$"
          },
          "contact_email": {
            "description": "Email the user asked us to reply to. Omit it unless they offered one.",
            "type": "string",
            "maxLength": 254,
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          }
        },
        "required": [
          "message",
          "category"
        ],
        "title": "submit_feedback arguments"
      },
      "SubmitFeedbackCall": {
        "type": "object",
        "description": "Send product feedback. Send product feedback to the RegDataLab team when the user reports a problem, missing data, or a request, including a bug, a wrong record, or a feature idea. Ask the user before sending, and send only the note they agreed to. Returns a short thank-you confirmation once the note is saved. The message is limited to 2000 characters. This does not change FDA records, and a report of missing data does not prove a record is absent. Costs 0 credits.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/call"
          },
          "params": {
            "type": "object",
            "required": [
              "name",
              "arguments"
            ],
            "properties": {
              "name": {
                "const": "submit_feedback"
              },
              "arguments": {
                "$ref": "#/components/schemas/SubmitFeedbackArguments"
              }
            }
          }
        }
      },
      "SubmitFeedbackResult": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Tool result including records, provenance, freshness and matching limits when available"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false,
        "title": "submit_feedback structuredContent"
      },
      "Initialize": {
        "type": "object",
        "description": "Open a session. The Mcp-Session-Id response header names it; send it on every later request.",
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "initialize"
          },
          "params": {
            "type": "object",
            "required": [
              "protocolVersion",
              "capabilities",
              "clientInfo"
            ],
            "properties": {
              "protocolVersion": {
                "type": "string",
                "examples": [
                  "2025-06-18"
                ]
              },
              "capabilities": {
                "type": "object"
              },
              "clientInfo": {
                "type": "object",
                "required": [
                  "name",
                  "version"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "InitializedNotification": {
        "type": "object",
        "description": "Sent once after initialize. Notifications carry no id and get HTTP 202 with no body.",
        "required": [
          "jsonrpc",
          "method"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "notifications/initialized"
          }
        }
      },
      "ToolsList": {
        "type": "object",
        "description": "List every tool with its argument and result schemas.",
        "required": [
          "jsonrpc",
          "id",
          "method"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "const": "tools/list"
          }
        }
      },
      "ToolCall": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/FdaAdverseEventsCall"
          },
          {
            "$ref": "#/components/schemas/FdaBpdrSummaryCall"
          },
          {
            "$ref": "#/components/schemas/FdaCitationsCall"
          },
          {
            "$ref": "#/components/schemas/FdaClinicalResultLettersCall"
          },
          {
            "$ref": "#/components/schemas/FdaCompanyComplianceTimelineCall"
          },
          {
            "$ref": "#/components/schemas/FdaCompanyFullCall"
          },
          {
            "$ref": "#/components/schemas/FdaCompareCompaniesCall"
          },
          {
            "$ref": "#/components/schemas/FdaComplianceActionsCall"
          },
          {
            "$ref": "#/components/schemas/FdaDeviceClassCall"
          },
          {
            "$ref": "#/components/schemas/FdaDeviceRecallsCall"
          },
          {
            "$ref": "#/components/schemas/FdaDeviceSupplyStatusCall"
          },
          {
            "$ref": "#/components/schemas/FdaDeviceUdiCall"
          },
          {
            "$ref": "#/components/schemas/FdaDeviceUdiLookupCall"
          },
          {
            "$ref": "#/components/schemas/FdaDrugLabelsCall"
          },
          {
            "$ref": "#/components/schemas/FdaDrugShortagesCall"
          },
          {
            "$ref": "#/components/schemas/FdaFacilityDossierCall"
          },
          {
            "$ref": "#/components/schemas/FdaFacilityProductsCall"
          },
          {
            "$ref": "#/components/schemas/FdaGetFacilityCall"
          },
          {
            "$ref": "#/components/schemas/FdaImportRefusalsCall"
          },
          {
            "$ref": "#/components/schemas/FdaInspectionObservationSummaryCall"
          },
          {
            "$ref": "#/components/schemas/FdaInspectionStatsCall"
          },
          {
            "$ref": "#/components/schemas/FdaInspectionsCall"
          },
          {
            "$ref": "#/components/schemas/FdaIresEnforcementCall"
          },
          {
            "$ref": "#/components/schemas/FdaLookupCompanyCall"
          },
          {
            "$ref": "#/components/schemas/FdaManufacturingRiskSummaryCall"
          },
          {
            "$ref": "#/components/schemas/FdaProductCodeLookupCall"
          },
          {
            "$ref": "#/components/schemas/FdaRecallFacilityTraceCall"
          },
          {
            "$ref": "#/components/schemas/FdaRecentFirmActionsCall"
          },
          {
            "$ref": "#/components/schemas/FdaResolveCompanyCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearch510kCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchAphisCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchByProductCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchDebarmentsCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchDrugsCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchEnforcementCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchFacilitiesCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchFamilyFacilitiesCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchImportAlertsCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchNdcCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchNsdeCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchOiiRecordsCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchOpdpUntitledLettersCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchPmaCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchRecallTextCall"
          },
          {
            "$ref": "#/components/schemas/FdaSearchWarningLettersCall"
          },
          {
            "$ref": "#/components/schemas/FdaSubstanceLookupCall"
          },
          {
            "$ref": "#/components/schemas/FdaSuggestSubsidiariesCall"
          },
          {
            "$ref": "#/components/schemas/FdaSupplierRiskTableCall"
          },
          {
            "$ref": "#/components/schemas/SoftwareCompareCall"
          },
          {
            "$ref": "#/components/schemas/SoftwareGetProductCall"
          },
          {
            "$ref": "#/components/schemas/SoftwareGetSourcesCall"
          },
          {
            "$ref": "#/components/schemas/SoftwareListEvidenceCall"
          },
          {
            "$ref": "#/components/schemas/SoftwareSearchProductsCall"
          },
          {
            "$ref": "#/components/schemas/SubmitFeedbackCall"
          }
        ]
      },
      "McpRequest": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/Initialize"
          },
          {
            "$ref": "#/components/schemas/InitializedNotification"
          },
          {
            "$ref": "#/components/schemas/ToolsList"
          },
          {
            "$ref": "#/components/schemas/ToolCall"
          }
        ]
      },
      "ToolCallResult": {
        "type": "object",
        "description": "The result of tools/call. content holds a text version of the answer; structuredContent holds the JSON that matches the tool's result schema.",
        "required": [
          "content"
        ],
        "properties": {
          "content": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              }
            }
          },
          "structuredContent": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FdaAdverseEventsResult"
              },
              {
                "$ref": "#/components/schemas/FdaBpdrSummaryResult"
              },
              {
                "$ref": "#/components/schemas/FdaCitationsResult"
              },
              {
                "$ref": "#/components/schemas/FdaClinicalResultLettersResult"
              },
              {
                "$ref": "#/components/schemas/FdaCompanyComplianceTimelineResult"
              },
              {
                "$ref": "#/components/schemas/FdaCompanyFullResult"
              },
              {
                "$ref": "#/components/schemas/FdaCompareCompaniesResult"
              },
              {
                "$ref": "#/components/schemas/FdaComplianceActionsResult"
              },
              {
                "$ref": "#/components/schemas/FdaDeviceClassResult"
              },
              {
                "$ref": "#/components/schemas/FdaDeviceRecallsResult"
              },
              {
                "$ref": "#/components/schemas/FdaDeviceSupplyStatusResult"
              },
              {
                "$ref": "#/components/schemas/FdaDeviceUdiResult"
              },
              {
                "$ref": "#/components/schemas/FdaDeviceUdiLookupResult"
              },
              {
                "$ref": "#/components/schemas/FdaDrugLabelsResult"
              },
              {
                "$ref": "#/components/schemas/FdaDrugShortagesResult"
              },
              {
                "$ref": "#/components/schemas/FdaFacilityDossierResult"
              },
              {
                "$ref": "#/components/schemas/FdaFacilityProductsResult"
              },
              {
                "$ref": "#/components/schemas/FdaGetFacilityResult"
              },
              {
                "$ref": "#/components/schemas/FdaImportRefusalsResult"
              },
              {
                "$ref": "#/components/schemas/FdaInspectionObservationSummaryResult"
              },
              {
                "$ref": "#/components/schemas/FdaInspectionStatsResult"
              },
              {
                "$ref": "#/components/schemas/FdaInspectionsResult"
              },
              {
                "$ref": "#/components/schemas/FdaIresEnforcementResult"
              },
              {
                "$ref": "#/components/schemas/FdaLookupCompanyResult"
              },
              {
                "$ref": "#/components/schemas/FdaManufacturingRiskSummaryResult"
              },
              {
                "$ref": "#/components/schemas/FdaProductCodeLookupResult"
              },
              {
                "$ref": "#/components/schemas/FdaRecallFacilityTraceResult"
              },
              {
                "$ref": "#/components/schemas/FdaRecentFirmActionsResult"
              },
              {
                "$ref": "#/components/schemas/FdaResolveCompanyResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearch510kResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchAphisResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchByProductResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchDebarmentsResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchDrugsResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchEnforcementResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchFacilitiesResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchFamilyFacilitiesResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchImportAlertsResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchNdcResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchNsdeResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchOiiRecordsResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchOpdpUntitledLettersResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchPmaResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchRecallTextResult"
              },
              {
                "$ref": "#/components/schemas/FdaSearchWarningLettersResult"
              },
              {
                "$ref": "#/components/schemas/FdaSubstanceLookupResult"
              },
              {
                "$ref": "#/components/schemas/FdaSuggestSubsidiariesResult"
              },
              {
                "$ref": "#/components/schemas/FdaSupplierRiskTableResult"
              },
              {
                "$ref": "#/components/schemas/SoftwareCompareResult"
              },
              {
                "$ref": "#/components/schemas/SoftwareGetProductResult"
              },
              {
                "$ref": "#/components/schemas/SoftwareGetSourcesResult"
              },
              {
                "$ref": "#/components/schemas/SoftwareListEvidenceResult"
              },
              {
                "$ref": "#/components/schemas/SoftwareSearchProductsResult"
              },
              {
                "$ref": "#/components/schemas/SubmitFeedbackResult"
              }
            ]
          },
          "isError": {
            "type": "boolean",
            "description": "true when the tool refused the call, for example for missing credits or a bad argument."
          }
        }
      },
      "McpResponse": {
        "type": "object",
        "description": "A JSON-RPC 2.0 response. With Accept: text/event-stream it arrives as a server-sent event whose data: line holds this object.",
        "required": [
          "jsonrpc"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "result": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ToolCallResult"
              },
              {
                "type": "object"
              }
            ]
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              },
              "data": {}
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}
