Skip to main content
Glama

Openfda Drug Profile

openfda_drug_profile
Read-only

Resolve one drug name to its FDA identity, then fan out in parallel across the bounded per-drug openFDA endpoints and merge into one profile: identity, label highlights, adverse-event summary, recall history, Drugs@FDA approval, and shortage status. Identity and label come from an original packager's label when one matches (identity.is_original_packager says when they do not), approval is the drug's own application ranked over its Drugs@FDA matches, and each section names the product it describes. Replaces chaining openfda_get_drug_label, openfda_search_adverse_events, openfda_search_recalls, openfda_search_drug_approvals, and openfda_search_drug_shortages — and reconciles the identifier drift between endpoints that makes that chaining error-prone. Each section is best-effort: a miss returns null rather than failing the call, and a sub-query the 50 s profile deadline cuts is listed in degraded. For deep dives into any one area, use the dedicated tool.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "drug": "<drug>"
    },
    "name": "openfda_drug_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
drugYesDrug name to profile — brand or generic (e.g. "metformin", "Humira", "Glucophage"). Resolved once to an FDA identity, each run of whitespace and characters openFDA cannot search (such as ; or ®) read as one space. The Drugs@FDA approval is ranked over this name's matches; meta.fanOutKey reports the name the recall and shortage sub-queries searched.

Output Schema

NameRequiredDescriptionDefault
metaNoRequest metadata.
errorNoPresent when the call failed. Absent on success.
labelNoLabel highlights from the drug/label record identity was resolved from, or null when no label matched.
noticeNoGuidance when the drug could not be resolved, upstream errors degraded the profile, a failed label lookup left another label shown, or the approval ranking or shortage counts covered only the first 100 matches. Absent otherwise.
recallsNoThe newest 5 drug/enforcement recall actions whose openfda.generic_name or product_description matches meta.fanOutKey (may be empty); recalls_total counts every match. A recall's lots (code_info) and distribution_pattern: openfda_search_recalls with category: drug and search recall_number:"<recall_number>".
approvalNoThe drug's own Drugs@FDA application, ranked over up to 100 matches of the input name: NDA and BLA applications by openfda.generic_name or products.active_ingredients.name, and any application whose products.brand_name is the name. Ranked on each application's own products: a brand name equal to the input that is not an ingredient name, then one ingredient (several when the name is a combination), then an ingredient without a biologic suffix, then reference_drug Yes, then NDA or BLA, then marketed over discontinued over tentative, then the lowest application number. When the name matches none, the same rank runs over meta.fanOutKey's openfda.generic_name and products.active_ingredients.name matches. Null when nothing matched or the search failed (listed in degraded).
degradedNoSub-queries that failed upstream, empty when every section resolved. A section listed here is unknown, not absent — a null section with no entry here genuinely has no FDA record.
identityNoIdentity of one product: an original packager's drug/label record matching the name, else any label matching the name, else a drug/ndc record — replaced by the approval application's own original-packager label whenever the record found is not it.
shortageNoOne drug/shortages record for meta.fanOutKey — for brand input, the newest naming the brand, else the newest — with the product, company, and presentation it covers, the match total, and per-status counts. Null when none on record or the search failed (listed in degraded).
recalls_totalNoTotal drug/enforcement reports the recall search matched — recalls lists the newest 5 of them. Null when the recall sub-query failed (listed in degraded): unknown, not zero.
sectionsFoundNoHow many profile sections (label, adverse_events, recalls, approval, shortage) returned data.
adverse_eventsNoAdverse-event summary aggregated over drug/event, or null when unavailable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / drug / description
      Previous value: -"Drug name to profile — brand or generic (e.g. \"metformin\", \"Humira\", \"Glucophage\"). Resolved once to an FDA identity. The Drugs@FDA approval is ranked over this name's matches; meta.fanOutKey reports the name the recall and shortage sub-queries searched."New value: +"Drug name to profile — brand or generic (e.g. \"metformin\", \"Humira\", \"Glucophage\"). Resolved once to an FDA identity, each run of whitespace and characters openFDA cannot search (such as ; or ®) read as one space. The Drugs@FDA approval is ranked over this name's matches; meta.fanOutKey reports the name the recall and shortage sub-queries searched."
    • changedOutput schema / properties / approval / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "applicationNumber": {
      -        "description": "NDA, ANDA, or BLA application number.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "brandNames": {
      -        "description": "Brand names of the application's products (products.brand_name).",
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "candidates": {
      -        "description": "Drugs@FDA applications the ranked search matched. Above 100, only the first 100 were ranked, and a notice says so.",
      -        "type": "number"
      -      },
      -      "marketingStatus": {
      -        "description": "Derived marketing/approval status.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sponsor": {
      -        "description": "Sponsor/applicant name.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "applicationNumber",
      -      "sponsor",
      -      "marketingStatus",
      -      "brandNames",
      -      "candidates"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "applicationNumber": {
      +        "description": "NDA, ANDA, or BLA application number.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "approvalDate": {
      +        "description": "Original approval date (submission_status_date, YYYYMMDD) of the earliest submission typed ORIG with status AP, ties to the lowest submission_number. Null when there is none, as for a tentative approval only or a record starting at a supplement; never a supplement's date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "brandNames": {
      +        "description": "Brand names of the application's products (products.brand_name).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "candidates": {
      +        "description": "Drugs@FDA applications the ranked search matched. Above 100, only the first 100 were ranked, and a notice says so.",
      +        "type": "number"
      +      },
      +      "marketingStatus": {
      +        "description": "Derived marketing/approval status.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "reviewPriority": {
      +        "description": "review_priority of that submission, verbatim (STANDARD, PRIORITY, …).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "sponsor": {
      +        "description": "Sponsor/applicant name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "submissionClass": {
      +        "description": "Class of that submission: submission_class_code_description (e.g. \"Type 1 - New Molecular Entity\"), else submission_class_code (UNKNOWN on most ANDA originals).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "applicationNumber",
      +      "sponsor",
      +      "marketingStatus",
      +      "approvalDate",
      +      "reviewPriority",
      +      "submissionClass",
      +      "brandNames",
      +      "candidates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `blank_drug_name`: The drug name carries no searchable character — only quotes, backslashes, or whitespace. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `blank_drug_name`: The drug name carries no searchable character — no ASCII letter or digit. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / meta / properties / fanOutKey / description
      Previous value: -"Name the recall/enforcement and shortage sub-queries ran against, and the Drugs@FDA approval search when the input name matches no application — the input term when it is whole words of the resolved generic name (an ingredient such as \"metformin\" or \"adalimumab\", so one label's product-specific generic does not narrow them), otherwise the resolved generic name, falling back to a brand name, then the input term. Derived from the label the name itself matched, before any swap to the approval's own label. The adverse-event sub-queries instead key off the raw input term to match heterogeneous reporter-entered values."New value: +"Name the recall/enforcement and shortage sub-queries ran against, and the Drugs@FDA approval search when the input name matches no application — the input term when it is whole words of the resolved generic name (an ingredient such as \"metformin\" or \"adalimumab\", so one label's product-specific generic does not narrow them), otherwise the resolved generic name, falling back to a brand name, then the input term. Derived from the label the name itself matched, before any swap to the approval's own label. The adverse-event sub-queries instead key off the input term to match heterogeneous reporter-entered values."
    • changedOutput schema / properties / recalls / description
      Previous value: -"The newest 5 drug/enforcement recall actions whose openfda.generic_name or product_description matches meta.fanOutKey (may be empty); recalls_total counts every match."New value: +"The newest 5 drug/enforcement recall actions whose openfda.generic_name or product_description matches meta.fanOutKey (may be empty); recalls_total counts every match. A recall's lots (code_info) and distribution_pattern: openfda_search_recalls with category: drug and search recall_number:\"<recall_number>\"."
    • addedOutput schema / properties / recalls / items / properties / recall_number
      Added value: +{
      +  "description": "FDA recall number (e.g. D-0959-2017).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / recalls / items / properties / status
      Added value: +{
      +  "description": "Recall status (Ongoing, Completed, Terminated).",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / recalls / items / required
      Previous value: -[
      -  "classification",
      -  "reason",
      -  "recalling_firm",
      -  "date"
      -]New value: +[
      +  "recall_number",
      +  "status",
      +  "classification",
      +  "reason",
      +  "recalling_firm",
      +  "date"
      +]
  2. Changed16 schema fields changed
    • changedInput schema / properties / drug / description
      Previous value: -"Drug name to profile — brand or generic (e.g. \"metformin\", \"Humira\", \"Glucophage\"). Resolved once to an FDA identity; meta.fanOutKey reports the name the recall, approval, and shortage sub-queries searched."New value: +"Drug name to profile — brand or generic (e.g. \"metformin\", \"Humira\", \"Glucophage\"). Resolved once to an FDA identity. The Drugs@FDA approval is ranked over this name's matches; meta.fanOutKey reports the name the recall and shortage sub-queries searched."
    • changedOutput schema / properties / approval / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "applicationNumber": {
      -        "description": "NDA/ANDA application number.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "marketingStatus": {
      -        "description": "Derived marketing/approval status.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "sponsor": {
      -        "description": "Sponsor/applicant name.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "applicationNumber",
      -      "sponsor",
      -      "marketingStatus"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "applicationNumber": {
      +        "description": "NDA, ANDA, or BLA application number.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "brandNames": {
      +        "description": "Brand names of the application's products (products.brand_name).",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "candidates": {
      +        "description": "Drugs@FDA applications the ranked search matched. Above 100, only the first 100 were ranked, and a notice says so.",
      +        "type": "number"
      +      },
      +      "marketingStatus": {
      +        "description": "Derived marketing/approval status.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "sponsor": {
      +        "description": "Sponsor/applicant name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "applicationNumber",
      +      "sponsor",
      +      "marketingStatus",
      +      "brandNames",
      +      "candidates"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / approval / description
      Previous value: -"Best-matching Drugs@FDA application whose openfda.generic_name or products.active_ingredients.name matches meta.fanOutKey, or null when none matched or the sub-query failed (listed in degraded)."New value: +"The drug's own Drugs@FDA application, ranked over up to 100 matches of the input name: NDA and BLA applications by openfda.generic_name or products.active_ingredients.name, and any application whose products.brand_name is the name. Ranked on each application's own products: a brand name equal to the input that is not an ingredient name, then one ingredient (several when the name is a combination), then an ingredient without a biologic suffix, then reference_drug Yes, then NDA or BLA, then marketed over discontinued over tentative, then the lowest application number. When the name matches none, the same rank runs over meta.fanOutKey's openfda.generic_name and products.active_ingredients.name matches. Null when nothing matched or the search failed (listed in degraded)."
    • changedOutput schema / properties / degraded / items / properties / reason / description
      Previous value: -"Machine-readable failure reason (e.g. rate_limited, upstream_error, query_error)."New value: +"Machine-readable failure reason (e.g. rate_limited, upstream_error, query_error, or timeout when the profile deadline cut the request)."
    • changedOutput schema / properties / identity / description
      Previous value: -"Identity resolved once and reused across every sub-query to avoid identifier drift."New value: +"Identity of one product: an original packager's drug/label record matching the name, else any label matching the name, else a drug/ndc record — replaced by the approval application's own original-packager label whenever the record found is not it."
    • addedOutput schema / properties / identity / properties / application_number
      Added value: +{
      +  "description": "Application (NDA, ANDA, BLA) the resolved label or NDC record is filed under. When it differs from approval.applicationNumber, identity and label describe another product than approval does.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / identity / properties / brand_names / description
      Previous value: -"Brand names for the drug (openfda.brand_name)."New value: +"Brand names on the resolved record: a label's openfda.brand_name, or the drug/ndc record's brand_name."
    • changedOutput schema / properties / identity / properties / generic_name / description
      Previous value: -"Generic name (openfda.generic_name) of the resolved label or NDC record — it can name one product (e.g. \"ADALIMUMAB-AACF\"). meta.fanOutKey uses it unless the input term is whole words of it."New value: +"Generic name (openfda.generic_name) of the resolved label or NDC record — it can name one product (e.g. \"ADALIMUMAB-AACF\" on a biosimilar's label). meta.fanOutKey uses it unless the input term is whole words of it."
    • addedOutput schema / properties / identity / properties / is_original_packager
      Added value: +{
      +  "description": "True when openFDA flags the resolved record as the original packager's (openfda.is_original_packager). False for a harmonized record openFDA leaves unflagged, as a repackager's or relabeler's is. Null when openFDA harmonized nothing for the record.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / identity / properties / manufacturer
      Added value: +{
      +  "description": "Manufacturer on the resolved label (openfda.manufacturer_name), or the drug/ndc record's labeler.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / identity / required
      Previous value: -[
      -  "brand_names",
      -  "generic_name",
      -  "product_ndc",
      -  "rxcui",
      -  "spl_set_id"
      -]New value: +[
      +  "brand_names",
      +  "generic_name",
      +  "product_ndc",
      +  "manufacturer",
      +  "application_number",
      +  "is_original_packager",
      +  "rxcui",
      +  "spl_set_id"
      +]
    • changedOutput schema / properties / label / description
      Previous value: -"Label highlights from drug/label, or null when no label matched."New value: +"Label highlights from the drug/label record identity was resolved from, or null when no label matched."
    • changedOutput schema / properties / meta / properties / fanOutKey / description
      Previous value: -"Name the structured sub-queries (recall/enforcement, Drugs@FDA approval, shortage) ran against — the input term when it is whole words of the resolved generic name (an ingredient such as \"metformin\" or \"adalimumab\", so one label's product-specific generic does not narrow them), otherwise the resolved generic name, falling back to a brand name, then the input term. The adverse-event sub-queries instead key off the raw input term to match heterogeneous reporter-entered values."New value: +"Name the recall/enforcement and shortage sub-queries ran against, and the Drugs@FDA approval search when the input name matches no application — the input term when it is whole words of the resolved generic name (an ingredient such as \"metformin\" or \"adalimumab\", so one label's product-specific generic does not narrow them), otherwise the resolved generic name, falling back to a brand name, then the input term. Derived from the label the name itself matched, before any swap to the approval's own label. The adverse-event sub-queries instead key off the raw input term to match heterogeneous reporter-entered values."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when the drug could not be resolved or upstream errors degraded the profile. Absent on a fully populated profile."New value: +"Guidance when the drug could not be resolved, upstream errors degraded the profile, a failed label lookup left another label shown, or the approval ranking or shortage counts covered only the first 100 matches. Absent otherwise."
    • changedOutput schema / properties / shortage / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "availability": {
      -        "description": "Availability note (truncated).",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "status": {
      -        "description": "Shortage status (Current, To Be Discontinued, or Resolved).",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "availability"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "availability": {
      +        "description": "Availability note (truncated).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "company": {
      +        "description": "Company the shown record names (company_name).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "namesInput": {
      +        "description": "True when the shown record names the input drug, by product or presentation, or the input itself keyed the search. False for brand input no record names: the record shown is the newest for meta.fanOutKey, another product's.",
      +        "type": "boolean"
      +      },
      +      "presentation": {
      +        "description": "Presentation the shown record covers: product, dosage form, strength, NDC.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "product": {
      +        "description": "Product the shown record covers: its openfda.brand_name, else its presentation's lead.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "Status of the shown record (Current, To Be Discontinued, or Resolved) — one presentation, not the whole drug; statusCounts tallies every record.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "statusCounts": {
      +        "description": "Records per status over the newest 100 matches, most frequent first.",
      +        "items": {
      +          "additionalProperties": false,
      +          "description": "A status paired with its record count.",
      +          "properties": {
      +            "count": {
      +              "description": "Records with this status.",
      +              "type": "number"
      +            },
      +            "status": {
      +              "description": "Shortage status.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "status",
      +            "count"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "total": {
      +        "description": "Shortage records whose generic_name matches meta.fanOutKey.",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "availability",
      +      "product",
      +      "company",
      +      "presentation",
      +      "namesInput",
      +      "total",
      +      "statusCounts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / shortage / description
      Previous value: -"Current or most-recent drug shortage status, or null when none on record."New value: +"One drug/shortages record for meta.fanOutKey — for brand input, the newest naming the brand, else the newest — with the product, company, and presentation it covers, the match total, and per-status counts. Null when none on record or the search failed (listed in degraded)."
  3. Changed7 schema fields changed
    • changedInput schema / properties / drug / description
      Previous value: -"Drug name to profile — brand or generic (e.g. \"metformin\", \"Humira\", \"Glucophage\"). Resolved once to canonical FDA identifiers, which then key every sub-query."New value: +"Drug name to profile — brand or generic (e.g. \"metformin\", \"Humira\", \"Glucophage\"). Resolved once to an FDA identity; meta.fanOutKey reports the name the recall, approval, and shortage sub-queries searched."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "not": {
      -      "required": [
      -        "error"
      -      ]
      -    },
      -    "required": [
      -      "meta",
      -      "identity",
      -      "label",
      -      "adverse_events",
      -      "recalls",
      -      "approval",
      -      "shortage",
      -      "degraded",
      -      "sectionsFound"
      -    ]
      -  },
      -  {
      -    "required": [
      -      "error"
      -    ]
      -  }
      -]New value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "meta",
      +      "identity",
      +      "label",
      +      "adverse_events",
      +      "recalls",
      +      "recalls_total",
      +      "approval",
      +      "shortage",
      +      "degraded",
      +      "sectionsFound"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / approval / description
      Previous value: -"Drugs@FDA approval summary, or null when no application matched."New value: +"Best-matching Drugs@FDA application whose openfda.generic_name or products.active_ingredients.name matches meta.fanOutKey, or null when none matched or the sub-query failed (listed in degraded)."
    • changedOutput schema / properties / identity / properties / generic_name / description
      Previous value: -"Canonical generic name (openfda.generic_name) — the primary source for meta.fanOutKey."New value: +"Generic name (openfda.generic_name) of the resolved label or NDC record — it can name one product (e.g. \"ADALIMUMAB-AACF\"). meta.fanOutKey uses it unless the input term is whole words of it."
    • changedOutput schema / properties / meta / properties / fanOutKey / description
      Previous value: -"Canonical key the structured sub-queries (recall/enforcement, Drugs@FDA approval, shortage) ran against — the resolved generic name, falling back to a brand name, then the input term. The adverse-event sub-queries instead key off the raw input term to match heterogeneous reporter-entered values."New value: +"Name the structured sub-queries (recall/enforcement, Drugs@FDA approval, shortage) ran against — the input term when it is whole words of the resolved generic name (an ingredient such as \"metformin\" or \"adalimumab\", so one label's product-specific generic does not narrow them), otherwise the resolved generic name, falling back to a brand name, then the input term. The adverse-event sub-queries instead key off the raw input term to match heterogeneous reporter-entered values."
    • changedOutput schema / properties / recalls / description
      Previous value: -"Recent drug/enforcement recall actions (may be empty)."New value: +"The newest 5 drug/enforcement recall actions whose openfda.generic_name or product_description matches meta.fanOutKey (may be empty); recalls_total counts every match."
    • addedOutput schema / properties / recalls_total
      Added value: +{
      +  "description": "Total drug/enforcement reports the recall search matched — recalls lists the newest 5 of them. Null when the recall sub-query failed (listed in degraded): unknown, not zero.",
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
  4. Changed3 schema fields changed
    • changedOutput schema / properties / adverse_events / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "seriousCount": {
      -        "description": "Reports flagged serious (serious=1).",
      -        "type": "number"
      -      },
      -      "topReactions": {
      -        "description": "Most-frequent reported reactions, descending.",
      -        "items": {
      -          "additionalProperties": false,
      -          "description": "A reaction term paired with its report count.",
      -          "properties": {
      -            "count": {
      -              "description": "Reports citing this reaction.",
      -              "type": "number"
      -            },
      -            "term": {
      -              "description": "MedDRA reaction term.",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "term",
      -            "count"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "total": {
      -        "description": "Approximate total adverse-event reports naming this drug.",
      -        "type": "number"
      -      }
      -    },
      -    "required": [
      -      "total",
      -      "seriousCount",
      -      "topReactions"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "seriousCount": {
      +        "description": "Reports flagged serious (serious=1). total − seriousCount covers both non-serious reports and those with no seriousness recorded.",
      +        "type": "number"
      +      },
      +      "topReactions": {
      +        "description": "Most-frequent reported reactions, descending.",
      +        "items": {
      +          "additionalProperties": false,
      +          "description": "A reaction term paired with its report count.",
      +          "properties": {
      +            "count": {
      +              "description": "Reports citing this reaction.",
      +              "type": "number"
      +            },
      +            "term": {
      +              "description": "MedDRA reaction term.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "term",
      +            "count"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "total": {
      +        "description": "Adverse-event reports naming this drug — every matching report, including those with no seriousness recorded; equals openfda_search_adverse_events meta.total for the same medicinalproduct search.",
      +        "type": "number"
      +      }
      +    },
      +    "required": [
      +      "total",
      +      "seriousCount",
      +      "topReactions"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / meta / properties / fanOutKey / description
      Previous value: -"Canonical key the structured sub-queries (recall/enforcement, Drugs@FDA approval, shortage) ran against — the resolved generic name, falling back to a brand name, then the input term. The adverse-event sub-query instead keys off the raw input term to match heterogeneous reporter-entered values."New value: +"Canonical key the structured sub-queries (recall/enforcement, Drugs@FDA approval, shortage) ran against — the resolved generic name, falling back to a brand name, then the input term. The adverse-event sub-queries instead key off the raw input term to match heterogeneous reporter-entered values."
    • changedOutput schema / properties / shortage / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "availability": {
      -        "description": "Availability note (truncated).",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "status": {
      -        "description": "Shortage status (Current/Resolved).",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "availability"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "availability": {
      +        "description": "Availability note (truncated).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "Shortage status (Current, To Be Discontinued, or Resolved).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "availability"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  5. Changed19 schema fields changed
    • changedOutput schema / properties / approval / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "applicationNumber": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "NDA/ANDA application number."
      -      },
      -      "marketingStatus": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Derived marketing/approval status."
      -      },
      -      "sponsor": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Sponsor/applicant name."
      -      }
      -    },
      -    "required": [
      -      "applicationNumber",
      -      "sponsor",
      -      "marketingStatus"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "applicationNumber": {
      +        "description": "NDA/ANDA application number.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "marketingStatus": {
      +        "description": "Derived marketing/approval status.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "sponsor": {
      +        "description": "Sponsor/applicant name.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "applicationNumber",
      +      "sponsor",
      +      "marketingStatus"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / identity / properties / generic_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / identity / properties / generic_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / identity / properties / product_ndc / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / identity / properties / product_ndc / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / identity / properties / rxcui / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / identity / properties / rxcui / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / identity / properties / spl_set_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / identity / properties / spl_set_id / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / label / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dosage": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Dosage and administration (truncated)."
      -      },
      -      "indications": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Indications and usage (truncated)."
      -      },
      -      "warnings": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Warnings (truncated) — boxed warning or warnings_and_cautions for Rx labels, falling back to the OTC-monograph warnings section."
      -      }
      -    },
      -    "required": [
      -      "indications",
      -      "warnings",
      -      "dosage"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dosage": {
      +        "description": "Dosage and administration (truncated).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "indications": {
      +        "description": "Indications and usage (truncated).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "warnings": {
      +        "description": "Warnings (truncated) — boxed warning or warnings_and_cautions for Rx labels, falling back to the OTC-monograph warnings section.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "indications",
      +      "warnings",
      +      "dosage"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / recalls / items / properties / classification / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / recalls / items / properties / classification / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / recalls / items / properties / date / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / recalls / items / properties / date / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / recalls / items / properties / reason / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / recalls / items / properties / reason / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / recalls / items / properties / recalling_firm / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / recalls / items / properties / recalling_firm / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / shortage / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "availability": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Availability note (truncated)."
      -      },
      -      "status": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Shortage status (Current/Resolved)."
      -      }
      -    },
      -    "required": [
      -      "status",
      -      "availability"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "availability": {
      +        "description": "Availability note (truncated).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "Shortage status (Current/Resolved).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "status",
      +      "availability"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  6. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "meta",
      +      "identity",
      +      "label",
      +      "adverse_events",
      +      "recalls",
      +      "approval",
      +      "shortage",
      +      "degraded",
      +      "sectionsFound"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `blank_drug_name`: The drug name carries no searchable character — only quotes, backslashes, or whitespace. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "blank_drug_name"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "meta",
      -  "identity",
      -  "label",
      -  "adverse_events",
      -  "recalls",
      -  "approval",
      -  "shortage",
      -  "degraded",
      -  "sectionsFound"
      -]
  7. Changed3 schema fields changed
    • addedInput schema / properties / drug / pattern
      Added value: +"\\S"
    • addedOutput schema / properties / degraded
      Added value: +{
      +  "description": "Sub-queries that failed upstream, empty when every section resolved. A section listed here is unknown, not absent — a null section with no entry here genuinely has no FDA record.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "One failed sub-query and why it failed.",
      +    "properties": {
      +      "message": {
      +        "description": "Upstream failure message for this section, truncated.",
      +        "type": "string"
      +      },
      +      "reason": {
      +        "description": "Machine-readable failure reason (e.g. rate_limited, upstream_error, query_error).",
      +        "type": "string"
      +      },
      +      "section": {
      +        "description": "Profile section whose sub-query failed.",
      +        "enum": [
      +          "identity",
      +          "label",
      +          "adverse_events",
      +          "recalls",
      +          "approval",
      +          "shortage"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "section",
      +      "reason",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "meta",
      -  "identity",
      -  "label",
      -  "adverse_events",
      -  "recalls",
      -  "approval",
      -  "shortage",
      -  "sectionsFound"
      -]New value: +[
      +  "meta",
      +  "identity",
      +  "label",
      +  "adverse_events",
      +  "recalls",
      +  "approval",
      +  "shortage",
      +  "degraded",
      +  "sectionsFound"
      +]
  8. Changed1 schema field changed
    • changedOutput schema / properties / label / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dosage": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Dosage and administration (truncated)."
      -      },
      -      "indications": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Indications and usage (truncated)."
      -      },
      -      "warnings": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Warnings (truncated)."
      -      }
      -    },
      -    "required": [
      -      "indications",
      -      "warnings",
      -      "dosage"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "dosage": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Dosage and administration (truncated)."
      +      },
      +      "indications": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Indications and usage (truncated)."
      +      },
      +      "warnings": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Warnings (truncated) — boxed warning or warnings_and_cautions for Rx labels, falling back to the OTC-monograph warnings section."
      +      }
      +    },
      +    "required": [
      +      "indications",
      +      "warnings",
      +      "dosage"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  9. Changed3 schema fields changed
    • changedOutput schema / properties / identity / properties / generic_name / description
      Previous value: -"Canonical generic name (openfda.generic_name) — the key used for fan-out."New value: +"Canonical generic name (openfda.generic_name) — the primary source for meta.fanOutKey."
    • addedOutput schema / properties / meta / properties / fanOutKey
      Added value: +{
      +  "description": "Canonical key the structured sub-queries (recall/enforcement, Drugs@FDA approval, shortage) ran against — the resolved generic name, falling back to a brand name, then the input term. The adverse-event sub-query instead keys off the raw input term to match heterogeneous reporter-entered values.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / meta / required
      Previous value: -[
      -  "drug",
      -  "resolvedVia"
      -]New value: +[
      +  "drug",
      +  "resolvedVia",
      +  "fanOutKey"
      +]
  10. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the behavioral load and does well: best-effort sections returning null instead of failing, a 50 s profile deadline whose cut sub-queries surface in `degraded`, and the original-packager fallback signalled by identity.is_original_packager. It does not discuss rate limits or cost of the parallel fan-out, which is the main remaining gap for a multi-endpoint aggregator.

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

Conciseness4/5

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

Front-loaded with the verb and the section list, then the replacement rationale, then failure semantics — a sensible ordering with little filler. It is dense and long-ish, but nearly every clause carries operational meaning; only the repeated packaging of the identity/label fallback could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a fan-out aggregator with an output schema present, this covers what structured fields cannot: partial-failure behavior, the deadline, degradation reporting, and which product each section describes. An agent knows how to call it and how to interpret a partial result.

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

Parameters3/5

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

Schema coverage is 100% and the single `drug` parameter is already documented with examples, whitespace/special-character normalization, and the meta.fanOutKey disclosure. The description adds only the framing of a single resolved identity, so the schema is doing the heavy lifting — baseline 3 applies.

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

Purpose5/5

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

States a specific verb and resource ("Resolve one drug name to its FDA identity") and then enumerates exactly what the merged output contains: identity, label highlights, adverse-event summary, recall history, Drugs@FDA approval, shortage status. It names the sibling tools it supersedes and the identifier-drift problem the merge solves, so it is unmistakable against openfda_get_drug_label or openfda_search_recalls.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use: aggregated per-drug profile replacing a five-tool chain. Gives an explicit when-not-to-use: "For deep dives into any one area, use the dedicated tool." Both alternatives and the condition selecting them are stated, not inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.