# getTargetAssociatedDiseases

**Identifier:** `opentargets_getTargetAssociatedDiseases`

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

Rank the diseases associated with a target (gene) by Open Targets association score (0-1), with the score broken down per evidence type. Pass diseaseIds 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_getTargetAssociatedDiseases \
  --input '{
    "targetId": "ENSG00000146648"
  }'
```

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

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": {
    "diseaseIds": {
      "description": "EFO/MONDO IDs to restrict to specific pairs",
      "items": {
        "type": "string"
      },
      "maxItems": 50,
      "type": "array"
    },
    "includeIndirect": {
      "default": false,
      "description": "Also score ancestor diseases with evidence propagated from their descendants",
      "type": "boolean"
    },
    "limit": {
      "default": 15,
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "nameFilter": {
      "description": "Keep diseases whose name contains this text, e.g. lung",
      "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"
    },
    "targetId": {
      "description": "Ensembl gene ID from searchEntities, e.g. ENSG00000146648",
      "type": "string"
    }
  },
  "required": [
    "targetId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "diseaseIds": {
      "description": "EFO/MONDO IDs for getDiseaseAssociatedTargets, getKnownDrugs",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "diseases": {
      "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"
          },
          "diseaseId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "therapeuticAreas": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "diseaseId",
          "name",
          "score",
          "datatypeScores"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "symbol": {
      "type": "string"
    },
    "targetId": {
      "type": "string"
    },
    "totalDiseases": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "targetId",
    "totalDiseases",
    "diseases",
    "diseaseIds"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getDiseaseAssociatedTargets`](https://kirha.com/providers/opentargets/getDiseaseAssociatedTargets.md)
- [`getDrugProfile`](https://kirha.com/providers/opentargets/getDrugProfile.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)