Forge Tools sider_side_effects

sider_side_effects read

scidex.forge.sider_side_effects

Look up drug adverse events and side effects from SIDER (Side Effect Resource, EMBL). For each drug name, returns MedDRA-coded adverse drug reactions with frequency data (frequent/infrequent) and placebo-effect flags. Fills the pharmacovigilance gap not covered by ChEMBL or DrugCentral: structured adverse event data for marketed drugs. REST API: http://sideeffects.embl.de/api — public, no auth required.

HTTP: POST /api/scidex/forge/sider_side_effects

Invoke

Calls scidex.tool.invoke on the substrate with this tool name. Edit the JSON below — it must match the input schema. The substrate runs the tool, records the call in substrate_tool_calls, and returns a structured envelope.

Sign in to invoke this tool. Schema and curl snippet are visible to anyone.

Schemas

Input schema
{
  "additionalProperties": false,
  "description": "Input schema for ``scidex.forge.sider_side_effects``.",
  "properties": {
    "drug_names": {
      "description": "Drug names to look up in SIDER (generic or brand, e.g. ``['aspirin', 'metformin']``). Each name is queried directly against the SIDER drug endpoint.",
      "items": {
        "type": "string"
      },
      "title": "Drug Names",
      "type": "array"
    },
    "frequency_filter": {
      "default": "",
      "description": "Optional frequency filter. When set, only side effects with a matching ``frequency`` value are returned. Accepted values: ``'frequent'``, ``'infrequent'``. Empty string (default) returns all records.",
      "title": "Frequency Filter",
      "type": "string"
    },
    "meddra_type": {
      "default": "LLT",
      "description": "MedDRA hierarchy level to return. ``'LLT'`` (lowest-level term, default), ``'PT'`` (preferred term), or empty string to return all levels.",
      "title": "Meddra Type",
      "type": "string"
    },
    "limit": {
      "default": 30,
      "description": "Maximum number of side-effect records to return across all queried drugs.",
      "maximum": 200,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "drug_names"
  ],
  "title": "ForgeSIDERIn",
  "type": "object"
}
Output schema
{
  "$defs": {
    "SIDERSideEffect": {
      "description": "One SIDER adverse drug reaction record.",
      "properties": {
        "drug_name": {
          "description": "The drug name as queried.",
          "title": "Drug Name",
          "type": "string"
        },
        "meddra_term": {
          "description": "MedDRA term describing the adverse effect.",
          "title": "Meddra Term",
          "type": "string"
        },
        "meddra_code": {
          "default": "",
          "description": "MedDRA concept code.",
          "title": "Meddra Code",
          "type": "string"
        },
        "meddra_type": {
          "default": "",
          "description": "MedDRA hierarchy level (LLT or PT).",
          "title": "Meddra Type",
          "type": "string"
        },
        "frequency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Reported frequency category: 'frequent', 'infrequent', or None.",
          "title": "Frequency"
        },
        "frequency_lower": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Lower bound of the reported frequency range (0.0–1.0).",
          "title": "Frequency Lower"
        },
        "frequency_upper": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Upper bound of the reported frequency range (0.0–1.0).",
          "title": "Frequency Upper"
        },
        "placebo_effect": {
          "default": false,
          "description": "True when the effect was also observed in the placebo arm.",
          "title": "Placebo Effect",
          "type": "boolean"
        }
      },
      "required": [
        "drug_name",
        "meddra_term"
      ],
      "title": "SIDERSideEffect",
      "type": "object"
    }
  },
  "description": "Response shape for ``scidex.forge.sider_side_effects``.",
  "properties": {
    "side_effects": {
      "description": "SIDER adverse drug reaction records.",
      "items": {
        "$ref": "#/$defs/SIDERSideEffect"
      },
      "title": "Side Effects",
      "type": "array"
    },
    "total_found": {
      "description": "Total number of side-effect records found before limit was applied.",
      "title": "Total Found",
      "type": "integer"
    },
    "took_ms": {
      "description": "Wall-clock time for all upstream calls.",
      "title": "Took Ms",
      "type": "integer"
    }
  },
  "required": [
    "total_found",
    "took_ms"
  ],
  "title": "ForgeSIDEROut",
  "type": "object"
}

curl snippet

Replace $SCIDEX_JWT with a valid bearer token. Read verbs are usually accessible without auth in dev; production requires a JWT.

curl -sS -X POST '/api/scidex/forge/sider_side_effects' \
  -H 'authorization: Bearer $SCIDEX_JWT' \
  -H 'content-type: application/json' \
  -d '{
  "drug_names": []
}'

Discussion

Posting anonymously. Sign in for attribution.

No comments yet — be the first.