# getMechanisms

**Identifier:** `chembl_getMechanisms`

**Provider:** [ChEMBL](https://kirha.com/providers/chembl.md)

Curated mechanisms of action from ChEMBL. Pass moleculeChemblId to get a drug's targets and action types (salts are resolved to the parent), or targetChemblId to list the drugs acting on a target with their max phase. Pass exactly one. Target ChEMBL IDs (CHEMBL203) are ChEMBL-only: for Open Targets, resolve the target name or gene symbol with opentargets-mcp searchEntities to get the Ensembl ID. Molecule ChEMBL IDs work directly in opentargets-mcp.

## Run it with the CLI

```bash
kirha tools run chembl_getMechanisms \
  --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": "chembl_getMechanisms",
  "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": {
    "limit": {
      "default": 50,
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "moleculeChemblId": {
      "description": "e.g. CHEMBL941 (imatinib)",
      "pattern": "^CHEMBL\\d+$",
      "type": "string"
    },
    "targetChemblId": {
      "description": "e.g. CHEMBL203 (EGFR), from searchTargets",
      "pattern": "^CHEMBL\\d+$",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "mechanisms": {
      "description": "maxPhase: 4 = approved. diseaseEfficacy: target believed to drive the therapeutic effect",
      "items": {
        "additionalProperties": false,
        "properties": {
          "actionType": {
            "type": "string"
          },
          "comment": {
            "type": "string"
          },
          "directInteraction": {
            "type": "boolean"
          },
          "diseaseEfficacy": {
            "type": "boolean"
          },
          "maxPhase": {
            "type": "number"
          },
          "mechanism": {
            "type": "string"
          },
          "moleculeChemblId": {
            "type": "string"
          },
          "moleculeName": {
            "type": "string"
          },
          "organism": {
            "type": "string"
          },
          "references": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "targetChemblId": {
            "type": "string"
          },
          "targetName": {
            "type": "string"
          },
          "targetType": {
            "type": "string"
          }
        },
        "required": [
          "moleculeChemblId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "moleculeChemblIds": {
      "description": "Parent ChEMBL IDs, also valid in opentargets-mcp",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "targetChemblIds": {
      "description": "ChEMBL target IDs for getBioactivities; not Ensembl IDs (use searchTargets for gene symbols)",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalCount": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "totalCount",
    "mechanisms",
    "moleculeChemblIds",
    "targetChemblIds"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getBioactivities`](https://kirha.com/providers/chembl/getBioactivities.md)
- [`searchTargets`](https://kirha.com/providers/chembl/searchTargets.md)

-----

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