# getKnownDrugs

**Identifier:** `opentargets_getKnownDrugs`

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

List approved drugs and clinical candidates for a disease or for a target (pass exactly one of diseaseId/targetId), with the highest clinical stage reached for that disease/target, mechanism of action, trial status counts and NCT IDs (for clinicaltrials-mcp getStudyDetails). Drug IDs are ChEMBL IDs, usable in chembl-mcp; drug names feed rxnorm-mcp findDrugByName. Ranked by stage; stageCounts summarises the full pipeline before the limit.

## Run it with the CLI

```bash
kirha tools run opentargets_getKnownDrugs \
  --input '{}'
```

`--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_getKnownDrugs",
  "input": {}
}'
```

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": {
    "diseaseId": {
      "description": "EFO/MONDO ID from searchEntities, e.g. MONDO_0005233",
      "type": "string"
    },
    "limit": {
      "default": 25,
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "minStage": {
      "default": "any",
      "enum": [
        "approved",
        "phase3",
        "phase2",
        "phase1",
        "any"
      ],
      "type": "string"
    },
    "targetId": {
      "description": "Ensembl gene ID from searchEntities, e.g. ENSG00000146648",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "drugIds": {
      "description": "ChEMBL IDs for getDrugProfile and chembl-mcp getMechanisms/getBioactivities/getDrugIndications",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "drugs": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "activeTrialCount": {
            "type": "number"
          },
          "diseases": {
            "description": "Disease name:ID (target queries only)",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "drugId": {
            "description": "ChEMBL ID",
            "type": "string"
          },
          "drugType": {
            "type": "string"
          },
          "mechanisms": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "nctIds": {
            "description": "Active trials first; for clinicaltrials-mcp getStudyDetails",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "nonTrialSources": {
            "description": "e.g. FDA, EMA Human Drugs, PMDA, DailyMed, TTD",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "overallMaxStage": {
            "description": "Highest stage across all indications",
            "type": "string"
          },
          "stage": {
            "description": "Highest stage for this disease/target",
            "type": "string"
          },
          "stoppedTrialCount": {
            "description": "Terminated, withdrawn or suspended trials",
            "type": "number"
          },
          "targets": {
            "description": "Target symbol:Ensembl ID",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "trialCount": {
            "type": "number"
          }
        },
        "required": [
          "drugId",
          "name",
          "trialCount",
          "activeTrialCount",
          "stoppedTrialCount",
          "nctIds"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "entityId": {
      "type": "string"
    },
    "entityName": {
      "type": "string"
    },
    "stageCounts": {
      "description": "Drugs per highest stage across the full list",
      "items": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "type": "number"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "value",
          "count"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalDrugs": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "entityId",
    "totalDrugs",
    "stageCounts",
    "drugs",
    "drugIds"
  ],
  "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)
- [`getDiseaseAssociatedTargets`](https://kirha.com/providers/opentargets/getDiseaseAssociatedTargets.md)
- [`getDrugProfile`](https://kirha.com/providers/opentargets/getDrugProfile.md)
- [`searchEntities`](https://kirha.com/providers/opentargets/searchEntities.md)

-----

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