pharma_safety_report

Pack: pharma-intel · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/pharma_safety_report for the schema, then POST the same URL with its arguments for the data.

Check adverse event frequency, severity patterns, and contraindications for a drug. Returns safety profiles, risk data, and recall history. E.g., search “aspirin”.

Parameters

NameTypeRequiredDescription
drug_namestringyesDrug name (brand or generic)

Example call

Arguments

{
  "drug_name": "aspirin"
}

curl

curl -X POST https://gateway.pipeworx.io/pharma-intel/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"pharma_safety_report","arguments":{"drug_name":"aspirin"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('pharma_safety_report', {
  "drug_name": "aspirin"
});

More examples

{
  "drug_name": "warfarin"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "analysis": {
          "type": "string",
          "enum": [
            "safety_report"
          ],
          "description": "Analysis type identifier"
        },
        "drug_name": {
          "type": "string",
          "description": "Drug name queried"
        },
        "adverse_events": {
          "type": [
            "object",
            "null"
          ],
          "description": "FDA adverse events data"
        },
        "top_reactions": {
          "type": [
            "object",
            "null"
          ],
          "description": "Top adverse reactions by frequency"
        },
        "recalls": {
          "type": [
            "object",
            "null"
          ],
          "description": "Drug recalls data"
        },
        "drug_interactions": {
          "type": [
            "object",
            "null"
          ],
          "description": "Known drug interactions"
        },
        "fda_label_interactions": {
          "type": "object",
          "properties": {
            "query": {
              "type": "string"
            },
            "total": {
              "type": "number"
            },
            "skip": {
              "type": "number"
            },
            "results": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "set_id": {
                    "type": "string"
                  },
                  "effective_time": {
                    "type": "string"
                  },
                  "brand_name": {
                    "type": "string"
                  },
                  "generic_name": {
                    "type": "string"
                  },
                  "manufacturer": {
                    "type": "string"
                  },
                  "route": {
                    "type": "string"
                  },
                  "substance_name": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "indications_and_usage": {
                    "type": "string"
                  },
                  "warnings": {
                    "type": "string"
                  },
                  "dosage_and_administration": {
                    "type": "string"
                  }
                }
              }
            },
            "resolved_via": {
              "type": "string"
            }
          }
        },
        "drug_drug_interaction_check": {
          "type": "object",
          "properties": {
            "available": {
              "type": "boolean"
            },
            "reason": {
              "type": "string"
            },
            "explanation": {
              "type": "string"
            }
          }
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "analysis",
        "drug_name",
        "adverse_events",
        "top_reactions",
        "recalls"
      ]
    },
    {
      "type": "object",
      "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "required": [
        "found"
      ]
    }
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the pharma-intel pack
{
  "mcpServers": {
    "pharma-intel": {
      "url": "https://gateway.pipeworx.io/pharma-intel/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026