Skip to main content
Glama

openfda_approval_getter

Retrieve FDA drug approval details, including product lists, submission history, marketing status, therapeutic equivalence codes, and pharmacologic class info, using an application number.

Instructions

Get detailed FDA drug approval information for a specific application.

Returns comprehensive approval details including:
- Full product list with dosage forms and strengths
- Complete submission history
- Marketing status timeline
- Therapeutic equivalence codes
- Pharmacologic class information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNoOptional OpenFDA API key (overrides OPENFDA_API_KEY env var)
application_numberYesNDA or BLA application number

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • MCP tool handler decorated with @mcp_app.tool() that registers and executes the openfda_approval_getter by delegating to the OpenFDA helper function. Includes input schema via Annotated Fields.
    @track_performance("biomcp.openfda_approval_getter")
    async def openfda_approval_getter(
        application_number: Annotated[
            str,
            Field(description="NDA or BLA application number"),
        ],
        api_key: Annotated[
            str | None,
            Field(
                description="Optional OpenFDA API key (overrides OPENFDA_API_KEY env var)"
            ),
        ] = None,
    ) -> str:
        """Get detailed FDA drug approval information for a specific application.
    
        Returns comprehensive approval details including:
        - Full product list with dosage forms and strengths
        - Complete submission history
        - Marketing status timeline
        - Therapeutic equivalence codes
        - Pharmacologic class information
        """
        from biomcp.openfda import get_drug_approval
    
        return await get_drug_approval(application_number, api_key=api_key)
  • Core helper function that queries the OpenFDA Drugs@FDA API, retrieves approval data for the given application number, and formats it comprehensively using helper formatters.
    async def get_drug_approval(
        application_number: str,
        api_key: str | None = None,
    ) -> str:
        """
        Get detailed drug approval information for a specific application.
    
        Args:
            application_number: NDA or BLA application number
    
            api_key: Optional OpenFDA API key (overrides OPENFDA_API_KEY env var)
    
        Returns:
            Formatted string with detailed approval information
        """
        # Search for the specific application
        search_params = {
            "search": f'application_number:"{application_number}"',
            "limit": 1,
        }
    
        response, error = await make_openfda_request(
            OPENFDA_DRUGSFDA_URL, search_params, "openfda_approvals", api_key
        )
    
        if error:
            return f"⚠️ Error retrieving drug approval: {error}"
    
        if not response or not response.get("results"):
            return f"No approval record found for application {application_number}"
    
        record = response["results"][0]
    
        # Format detailed approval information
        output = [f"## Drug Approval Details: {application_number}\n"]
    
        # Basic information
        output.extend(_format_approval_header(record))
    
        # Products
        if products := record.get("products"):
            output.extend(_format_products(products))
    
        # Submissions history
        if submissions := record.get("submissions"):
            output.extend(_format_submissions(submissions))
    
        # OpenFDA metadata
        if openfda := record.get("openfda"):
            output.extend(_format_openfda_metadata(openfda))
    
        output.append(f"\n{OPENFDA_DISCLAIMER}")
    
        return "\n".join(output)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the tool's behavior by listing what information is returned (e.g., product list, submission history), which helps understand the output. However, it lacks details on error handling, rate limits, or authentication requirements beyond the optional api_key parameter.

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

Conciseness5/5

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

The description is front-loaded with the core purpose in the first sentence, followed by a bulleted list of return details that efficiently elaborates without redundancy. Every sentence earns its place by adding specific value.

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

Completeness4/5

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

Given that an output schema exists (so return values need not be explained), the description is complete enough for a read-only tool. It covers the purpose, key parameters, and output scope. However, with no annotations, it could benefit from more behavioral context like error cases or rate limits.

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 description coverage is 100%, so the schema already documents both parameters well. The description adds value by clarifying that 'application_number' refers to 'NDA or BLA application number', providing context beyond the schema's title. No additional parameter details are needed, but this semantic clarification is helpful.

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

Purpose5/5

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

The description clearly states the specific action ('Get detailed FDA drug approval information') and resource ('for a specific application'), distinguishing it from sibling tools like 'openfda_approval_searcher' which likely searches across applications rather than retrieving details for one.

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

Usage Guidelines3/5

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

The description implies usage by specifying 'for a specific application', suggesting it should be used when you have a known application number. However, it does not explicitly state when not to use it or name alternatives (e.g., vs. 'openfda_approval_searcher' for broader searches).

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/genomoncology/biomcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server