# getTargetDiseaseEvidence

**Identifier:** `opentargets_getTargetDiseaseEvidence`

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

Explain why a target is associated with a disease: the direct association score, then the top evidence rows from each contributing datasource (GWAS credible sets, ClinVar/EVA, somatic mutation catalogs, clinical precedence with drug and NCT ID, literature mining with PMIDs...). Use after getTargetAssociatedDiseases or getDiseaseAssociatedTargets. PMIDs feed pubmed-mcp fetchPubmedArticles, NCT IDs feed clinicaltrials-mcp getStudyDetails, drug ChEMBL IDs feed chembl-mcp.

## Run it with the CLI

```bash
kirha tools run opentargets_getTargetDiseaseEvidence \
  --input '{
    "targetId": "ENSG00000169174",
    "diseaseId": "MONDO_0005010"
  }'
```

`--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_getTargetDiseaseEvidence",
  "input": {
    "targetId": "ENSG00000169174",
    "diseaseId": "MONDO_0005010"
  }
}'
```

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": {
    "datasourceIds": {
      "description": "Restrict to datasources, e.g. gwas_credible_sets, eva, clinical_precedence, europepmc",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "diseaseId": {
      "description": "EFO/MONDO ID, e.g. MONDO_0005010",
      "type": "string"
    },
    "perDatasource": {
      "default": 3,
      "maximum": 10,
      "minimum": 1,
      "type": "integer"
    },
    "targetId": {
      "description": "Ensembl gene ID, e.g. ENSG00000169174",
      "type": "string"
    }
  },
  "required": [
    "targetId",
    "diseaseId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "associationScore": {
      "description": "Direct association score (0-1)",
      "type": "number"
    },
    "context": {
      "type": "string"
    },
    "datasources": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "datasourceId": {
            "type": "string"
          },
          "datasourceScore": {
            "type": "number"
          },
          "datatype": {
            "type": "string"
          },
          "evidence": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "beta": {
                  "type": "number"
                },
                "clinicalReportId": {
                  "description": "NCT ID (for clinicaltrials-mcp getStudyDetails) or label reference",
                  "type": "string"
                },
                "clinicalStage": {
                  "type": "string"
                },
                "confidence": {
                  "type": "string"
                },
                "diseaseFromSource": {
                  "type": "string"
                },
                "drug": {
                  "description": "name:ChEMBL ID",
                  "type": "string"
                },
                "pValue": {
                  "type": "string"
                },
                "pmids": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "sampleSize": {
                  "type": "number"
                },
                "score": {
                  "type": "number"
                },
                "sentence": {
                  "description": "Literature-mined sentence",
                  "type": "string"
                },
                "studyId": {
                  "type": "string"
                },
                "trait": {
                  "type": "string"
                },
                "variant": {
                  "description": "rsID and/or amino-acid change",
                  "type": "string"
                },
                "year": {
                  "type": "number"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "evidenceCount": {
            "type": "number"
          }
        },
        "required": [
          "datasourceId",
          "datasourceScore",
          "evidenceCount",
          "evidence"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "diseaseId": {
      "type": "string"
    },
    "diseaseName": {
      "type": "string"
    },
    "pmids": {
      "description": "PubMed IDs across all evidence rows, for pubmed-mcp fetchPubmedArticles",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "symbol": {
      "type": "string"
    },
    "targetId": {
      "type": "string"
    }
  },
  "required": [
    "context",
    "targetId",
    "diseaseId",
    "datasources",
    "pmids"
  ],
  "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)
- [`getDiseaseAssociatedTargets`](https://kirha.com/providers/opentargets/getDiseaseAssociatedTargets.md)

-----

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