Skip to main content
Glama

Fda Drug Approvals

fda_drug_approvals
Read-onlyIdempotent

Find FDA-approved drugs by brand name, active ingredient, or application number. To find generic versions of a drug, search by active ingredient using products.active_ingredients.name (NOT openfda.generic_name, that field only works in the label endpoint). IMPORTANT: drug names in the FDA database are stored in UPPERCASE, always pass ingredient and brand names in uppercase (e.g. "APIXABAN" not "apixaban") or you will get 0 results. Returns approval status, sponsor, application number (ANDA = generic, NDA = brand), and application details. There is NO queryable "application_type" field, never add application_type:"ANDA" (it returns 0 results). To limit to generics, search by active ingredient and read the ANDA/NDA prefix on application_number in the results. This endpoint has NO indication/disease field, for "drugs approved to treat " use fda_drug_labels (which searches indications_and_usage); an indication phrase passed here is silently ignored and matches by drug name only. The response total can exceed the 100-row cap on a single page, use skip to page past it, and sort to get genuinely-newest-first ordering ("most recently approved" is not the default order).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "openfda.brand_name:\"KEYTRUDA\""
    },
    "name": "fda_drug_approvals"
  }
}

Input Schema

NameRequiredDescriptionDefault
skipNoOffset for pagination (default 0). The reported `total` is often larger than one page, pass skip=100 to reach the 101st+ result of a large query instead of assuming the first page is everything.
sortNoOrder results by each drug's original FDA approval date instead of openFDA's default (unordered/relevance) order. approval_date_desc puts the genuinely most-recently-approved drug first, needed for "most recent approval" questions, which are wrong without it. Computed client-side from each record's own ORIG+approved submission (openFDA's native sort on this field is unreliable, it reads any submission in a drug's history, so an old drug with a recent label supplement can outrank a real new approval). Sorting is exact over up to 1000 matching records per call; a `sort_note` in the response says if the query matched more than that.
limitNoNumber of results (1-100, default 10)
queryYesOpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:"APIXABAN"' (returns all ANDA + NDA approvals). By brand: 'products.brand_name:"KEYTRUDA"' (a field of the application record itself;openfda.brand_name is enrichment that some applications lack, and is retried as products.brand_name automatically). By original submission: 'submissions.submission_type:"ORIG"'. Do NOT use application_type (no such field, returns 0); ANDA vs NDA is read from the application_number prefix in the results, not filtered in the query. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here).

Output Schema

NameRequiredDescriptionDefault
totalYesTotal count of matching FDA-approved drugs
resultsYesArray of drug approval objects

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / query / description
      Previous value: -"OpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:\"APIXABAN\"' (returns all ANDA + NDA approvals). By brand: 'products.brand_name:\"KEYTRUDA\"' (a field of the application record itself;openfda.brand_name is enrichment that some applications lack, and is retried as products.brand_name automatically). By original submission: 'submissions.submission_type:\"ORIG\"'. Do NOT use application_type (no such field — returns 0); ANDA vs NDA is read from the application_number prefix in the results, not filtered in the query. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here)."New value: +"OpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:\"APIXABAN\"' (returns all ANDA + NDA approvals). By brand: 'products.brand_name:\"KEYTRUDA\"' (a field of the application record itself;openfda.brand_name is enrichment that some applications lack, and is retried as products.brand_name automatically). By original submission: 'submissions.submission_type:\"ORIG\"'. Do NOT use application_type (no such field, returns 0); ANDA vs NDA is read from the application_number prefix in the results, not filtered in the query. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here)."
    • changedInput schema / properties / skip / description
      Previous value: -"Offset for pagination (default 0). The reported `total` is often larger than one page — pass skip=100 to reach the 101st+ result of a large query instead of assuming the first page is everything."New value: +"Offset for pagination (default 0). The reported `total` is often larger than one page, pass skip=100 to reach the 101st+ result of a large query instead of assuming the first page is everything."
    • changedInput schema / properties / sort / description
      Previous value: -"Order results by each drug's original FDA approval date instead of openFDA's default (unordered/relevance) order. approval_date_desc puts the genuinely most-recently-approved drug first — needed for \"most recent approval\" questions, which are wrong without it. Computed client-side from each record's own ORIG+approved submission (openFDA's native sort on this field is unreliable — it reads any submission in a drug's history, so an old drug with a recent label supplement can outrank a real new approval). Sorting is exact over up to 1000 matching records per call; a `sort_note` in the response says if the query matched more than that."New value: +"Order results by each drug's original FDA approval date instead of openFDA's default (unordered/relevance) order. approval_date_desc puts the genuinely most-recently-approved drug first, needed for \"most recent approval\" questions, which are wrong without it. Computed client-side from each record's own ORIG+approved submission (openFDA's native sort on this field is unreliable, it reads any submission in a drug's history, so an old drug with a recent label supplement can outrank a real new approval). Sorting is exact over up to 1000 matching records per call; a `sort_note` in the response says if the query matched more than that."
  2. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"OpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:\"APIXABAN\"' (returns all ANDA + NDA approvals). By brand: 'openfda.brand_name:\"KEYTRUDA\"'. By original submission: 'submissions.submission_type:\"ORIG\"'. Do NOT use application_type (no such field — returns 0); ANDA vs NDA is read from the application_number prefix in the results, not filtered in the query. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here)."New value: +"OpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:\"APIXABAN\"' (returns all ANDA + NDA approvals). By brand: 'products.brand_name:\"KEYTRUDA\"' (a field of the application record itself;openfda.brand_name is enrichment that some applications lack, and is retried as products.brand_name automatically). By original submission: 'submissions.submission_type:\"ORIG\"'. Do NOT use application_type (no such field — returns 0); ANDA vs NDA is read from the application_number prefix in the results, not filtered in the query. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here)."
  3. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "openfda.brand_name:\"KEYTRUDA\""
      -  },
      -  {
      -    "limit": 20,
      -    "query": "products.active_ingredients.name:\"pembrolizumab\""
      -  },
      -  {
      -    "limit": 5,
      -    "query": "products.active_ingredients.name:\"AMOXICILLIN\"",
      -    "skip": 100
      -  },
      -  {
      -    "limit": 10,
      -    "query": "products.active_ingredients.name:\"AMOXICILLIN\"",
      -    "sort": "approval_date_desc"
      -  }
      -]New value: +[
      +  {
      +    "query": "openfda.brand_name:\"KEYTRUDA\""
      +  },
      +  {
      +    "limit": 10,
      +    "query": "products.active_ingredients.name:\"SEMAGLUTIDE\"",
      +    "sort": "approval_date_desc"
      +  },
      +  {
      +    "limit": 20,
      +    "query": "products.active_ingredients.name:\"pembrolizumab\""
      +  },
      +  {
      +    "limit": 5,
      +    "query": "products.active_ingredients.name:\"AMOXICILLIN\"",
      +    "skip": 100
      +  },
      +  {
      +    "limit": 10,
      +    "query": "products.active_ingredients.name:\"AMOXICILLIN\"",
      +    "sort": "approval_date_desc"
      +  }
      +]
  4. Changed3 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "openfda.brand_name:\"KEYTRUDA\""
      -  },
      -  {
      -    "limit": 20,
      -    "query": "products.active_ingredients.name:\"pembrolizumab\""
      -  }
      -]New value: +[
      +  {
      +    "query": "openfda.brand_name:\"KEYTRUDA\""
      +  },
      +  {
      +    "limit": 20,
      +    "query": "products.active_ingredients.name:\"pembrolizumab\""
      +  },
      +  {
      +    "limit": 5,
      +    "query": "products.active_ingredients.name:\"AMOXICILLIN\"",
      +    "skip": 100
      +  },
      +  {
      +    "limit": 10,
      +    "query": "products.active_ingredients.name:\"AMOXICILLIN\"",
      +    "sort": "approval_date_desc"
      +  }
      +]
    • addedInput schema / properties / skip
      Added value: +{
      +  "description": "Offset for pagination (default 0). The reported `total` is often larger than one page — pass skip=100 to reach the 101st+ result of a large query instead of assuming the first page is everything.",
      +  "type": "number"
      +}
    • addedInput schema / properties / sort
      Added value: +{
      +  "description": "Order results by each drug's original FDA approval date instead of openFDA's default (unordered/relevance) order. approval_date_desc puts the genuinely most-recently-approved drug first — needed for \"most recent approval\" questions, which are wrong without it. Computed client-side from each record's own ORIG+approved submission (openFDA's native sort on this field is unreliable — it reads any submission in a drug's history, so an old drug with a recent label supplement can outrank a real new approval). Sorting is exact over up to 1000 matching records per call; a `sort_note` in the response says if the query matched more than that.",
      +  "enum": [
      +    "approval_date_asc",
      +    "approval_date_desc"
      +  ],
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"OpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:\"APIXABAN\"' (returns all ANDA + NDA approvals). By brand: 'openfda.brand_name:\"KEYTRUDA\"'. By application type: 'submissions.submission_type:\"ORIG\"'. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here)."New value: +"OpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:\"APIXABAN\"' (returns all ANDA + NDA approvals). By brand: 'openfda.brand_name:\"KEYTRUDA\"'. By original submission: 'submissions.submission_type:\"ORIG\"'. Do NOT use application_type (no such field — returns 0); ANDA vs NDA is read from the application_number prefix in the results, not filtered in the query. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here)."
  6. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"OpenFDA search query. Examples: 'openfda.brand_name:\"KEYTRUDA\"', 'products.active_ingredients.name:\"pembrolizumab\"', 'submissions.submission_type:\"ORIG\"'"New value: +"OpenFDA drugsfda search query. Drug names MUST be UPPERCASE in quotes. To find all generics for a drug: 'products.active_ingredients.name:\"APIXABAN\"' (returns all ANDA + NDA approvals). By brand: 'openfda.brand_name:\"KEYTRUDA\"'. By application type: 'submissions.submission_type:\"ORIG\"'. NOTE: use products.active_ingredients.name (not openfda.generic_name which is a label-API field and returns 0 here)."
  7. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "results": {
      +      "description": "Array of drug approval objects",
      +      "items": {
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "description": "Total count of matching FDA-approved drugs",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "results"
      +  ],
      +  "type": "object"
      +}
  8. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "openfda.brand_name:\"KEYTRUDA\""
      +  },
      +  {
      +    "limit": 20,
      +    "query": "products.active_ingredients.name:\"pembrolizumab\""
      +  }
      +]
  9. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them: it warns that lowercase names and application_type filters silently return 0 results, that indication phrases are silently ignored, and that openFDA's native date sort is unreliable so sorting is computed client-side over up to 1000 records with a sort_note caveat. These are exactly the silent-failure behaviors an agent cannot infer.

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

Conciseness4/5

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

Front-loaded with purpose, then the highest-cost pitfalls (casing, application_type, indication routing) before pagination details. Dense and mostly justified, though there is noticeable overlap between the description and the already verbose query/sort schema fields.

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?

With an output schema covering return shape and annotations covering safety, the description only needs to carry the semantics of querying this endpoint — and it does, including casing, field selection, silent-ignore traps, result caps, and ordering behavior.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description still adds value by tying the query parameter to concrete field paths and by flagging which field choices produce empty result sets. It does restate schema text (UPPERCASE, no application_type) fairly closely, which keeps it short of a 5.

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?

Opens with a specific verb and resource plus the three supported lookup keys: 'Find FDA-approved drugs by brand name, active ingredient, or application number.' It also explicitly delineates scope against siblings by sending indication-based questions to fda_drug_labels, so an agent can route without opening other schemas.

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 explicit when-to-use-elsewhere rules (indications -> fda_drug_labels), the correct recipe for generics (search by active ingredient, read ANDA/NDA prefix), an explicit anti-pattern (never add application_type), and pagination/ordering guidance ('use skip to page past the 100-row cap', 'sort for genuinely-newest-first'). This is close to the ideal for a query tool with many footguns.

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.