# getDrugProfile

**Identifier:** `opentargets_getDrugProfile`

**Provider:** [OpenTargets](https://kirha.com/providers/opentargets.md)

Drug profile from Open Targets by ChEMBL ID: modality, highest clinical stage, mechanisms of action with Ensembl target IDs, withdrawal/black-box warnings, and indications ranked by stage with disease IDs. Bridges a ChEMBL drug (from chembl-mcp or searchEntities) to Ensembl targets and EFO/MONDO diseases; trade names feed rxnorm-mcp findDrugByName.

## Run it with the CLI

```bash
kirha tools run opentargets_getDrugProfile \
  --input '{
    "drugId": "CHEMBL941"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "opentargets_getDrugProfile",
  "input": {
    "drugId": "CHEMBL941"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "drugId": {
      "description": "ChEMBL ID, e.g. CHEMBL941",
      "type": "string"
    }
  },
  "required": [
    "drugId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "childIds": {
      "description": "Salt/formulation ChEMBL IDs",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "crossReferences": {
      "description": "source:id, e.g. drugbank:DB00619",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "diseaseIds": {
      "description": "EFO/MONDO IDs of listed indications, for getKnownDrugs",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "drugId": {
      "type": "string"
    },
    "drugType": {
      "type": "string"
    },
    "indicationCount": {
      "type": "number"
    },
    "indications": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "diseaseId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "stage": {
            "type": "string"
          }
        },
        "required": [
          "diseaseId",
          "name"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "maxClinicalStage": {
      "type": "string"
    },
    "mechanisms": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "actionType": {
            "type": "string"
          },
          "mechanism": {
            "type": "string"
          },
          "targets": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "symbol": {
                  "type": "string"
                },
                "targetId": {
                  "type": "string"
                }
              },
              "required": [
                "targetId",
                "symbol"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "mechanism"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "name": {
      "type": "string"
    },
    "parentId": {
      "description": "Parent ChEMBL ID when this is a salt form",
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "synonyms": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "targetIds": {
      "description": "Ensembl gene IDs of mechanism targets, for getTargetProfile/getTargetAssociatedDiseases",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "tradeNames": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "warnings": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "country": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "toxicityClass": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "year": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "drugId",
    "indicationCount",
    "indications",
    "targetIds",
    "diseaseIds"
  ],
  "type": "object"
}
```

## Related tools

Other OpenTargets tools that this tool refers to, or that refer to it.

- [`getTargetAssociatedDiseases`](https://kirha.com/providers/opentargets/getTargetAssociatedDiseases.md)
- [`getTargetProfile`](https://kirha.com/providers/opentargets/getTargetProfile.md)
- [`searchEntities`](https://kirha.com/providers/opentargets/searchEntities.md)
- [`getKnownDrugs`](https://kirha.com/providers/opentargets/getKnownDrugs.md)

-----

[All OpenTargets tools](https://kirha.com/providers/opentargets.md) · [< Back to tools list](https://kirha.com/tools.md)