# getDiseaseAssociatedTargets

**Identifier:** `opentargets_getDiseaseAssociatedTargets`

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

Rank the targets (genes) associated with a disease by Open Targets association score (0-1), with the score broken down per evidence type. Pass targetIds to score specific target-disease pairs. Target IDs are Ensembl; use the symbol with chembl-mcp searchTargets for ChEMBL bioactivity data.

## Run it with the CLI

```bash
kirha tools run opentargets_getDiseaseAssociatedTargets \
  --input '{
    "diseaseId": "MONDO_0005233"
  }'
```

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

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"
    },
    "includeIndirect": {
      "default": true,
      "description": "Include evidence propagated from descendant diseases",
      "type": "boolean"
    },
    "limit": {
      "default": 15,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "nameFilter": {
      "description": "Keep targets whose symbol/name contains this text",
      "type": "string"
    },
    "page": {
      "default": 0,
      "maximum": 200,
      "minimum": 0,
      "type": "integer"
    },
    "sortBy": {
      "default": "overall",
      "description": "Rank by overall score or by one evidence type, e.g. genetic_association for genetic evidence",
      "enum": [
        "overall",
        "genetic_association",
        "somatic_mutation",
        "clinical",
        "affected_pathway",
        "literature",
        "animal_model",
        "rna_expression"
      ],
      "type": "string"
    },
    "targetIds": {
      "description": "Ensembl gene IDs to restrict to specific pairs",
      "items": {
        "type": "string"
      },
      "maxItems": 50,
      "type": "array"
    }
  },
  "required": [
    "diseaseId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "diseaseId": {
      "type": "string"
    },
    "diseaseName": {
      "type": "string"
    },
    "targetIds": {
      "description": "Ensembl gene IDs for getTargetProfile, getKnownDrugs",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "targets": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "datatypeScores": {
            "description": "Score per evidence type (genetic_association, somatic_mutation, clinical, affected_pathway, literature, animal_model, rna_expression)",
            "items": {
              "additionalProperties": false,
              "properties": {
                "datatype": {
                  "type": "string"
                },
                "score": {
                  "type": "number"
                }
              },
              "required": [
                "datatype",
                "score"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "symbol": {
            "type": "string"
          },
          "targetId": {
            "type": "string"
          }
        },
        "required": [
          "targetId",
          "symbol",
          "score",
          "datatypeScores"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalTargets": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "diseaseId",
    "totalTargets",
    "targets",
    "targetIds"
  ],
  "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)
- [`getTargetDiseaseEvidence`](https://kirha.com/providers/opentargets/getTargetDiseaseEvidence.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)