# searchMolecules

**Identifier:** `chembl_searchMolecules`

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

Find ChEMBL molecules by name, brand name, synonym or research code (e.g. Gleevec, STI-571, semaglutide). Returns ChEMBL IDs with max clinical phase; salts point to their parent compound via parentChemblId, which is the ID to use for mechanisms, indications and bioactivities. ChEMBL molecule IDs are the drug IDs of opentargets-mcp (getDrugProfile); pass the name to rxnorm-mcp findDrugByName for RxCUIs.

## Run it with the CLI

```bash
kirha tools run chembl_searchMolecules \
  --input '{
    "query": "<query>"
  }'
```

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

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": 5,
      "maximum": 25,
      "minimum": 1,
      "type": "integer"
    },
    "query": {
      "minLength": 2,
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "chemblIds": {
      "description": "Parent ChEMBL IDs, deduplicated, for other ChEMBL and Open Targets tools",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "molecules": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "chemblId": {
            "type": "string"
          },
          "firstApproval": {
            "description": "Year",
            "type": "number"
          },
          "formula": {
            "type": "string"
          },
          "maxPhase": {
            "description": "4 = approved, 1-3 = clinical phase, 0.5 = early phase 1",
            "type": "number"
          },
          "moleculeType": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parentChemblId": {
            "description": "Set when this record is a salt/form of another compound",
            "type": "string"
          }
        },
        "required": [
          "chemblId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "totalCount": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "totalCount",
    "molecules",
    "chemblIds"
  ],
  "type": "object"
}
```

## Related tools

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

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

-----

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