chembl-get-drug-info
chembl_get_drug_infoPharmacology for a drug (molecule): mechanism(s) of action, the molecular target(s) it acts on, action type (inhibitor / agonist / …), max clinical phase, first-approval year, whether it has been withdrawn from a market or carries a boxed warning with ChEMBL's withdrawal and boxed-warning records, and clinical indications with the max phase reached for each. A withdrawn drug keeps max_phase 4 — read withdrawn and warnings before taking phase 4 as on the market. Supply molecule_chembl_id (from chembl_search_molecules) — a parent or any of its salts and other alternate forms reads the same family: ChEMBL often records a drug's mechanisms, approved indications, and warnings on a salt, so both flags and every list cover the whole family under parent_molecule_chembl_id, isotope-labelled and deuterated analogs included. max_phase and first_approval come from the queried form's own record, never from the family, since an analog filed under an approved parent can itself be investigational; re-call with parent_molecule_chembl_id to read them for the parent. Each mechanism and warning names the form it is recorded on, and each indication is listed once per MeSH/EFO pair at the highest phase any form reached, with the forms it is recorded on, each at its own phase. Distinct from the openfda server's label/adverse-event view — this is the curated mechanism-and-indication record. A mechanism's target_chembl_id chains into chembl_get_bioactivities for compounds hitting the same target. Each list carries its own retrieval state: an empty mechanisms, indications, or warnings array means the molecule has none recorded only when the matching mechanisms_status / indications_status / warnings_status is "complete" — "failed" means the list was not retrieved (the request ran out of time or ChEMBL answered with an error, as the matching *_failure says) and the array says nothing about the molecule, and "truncated" means the page cap fetched fewer rows than ChEMBL holds, which the matching *_total_count reports.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"molecule_chembl_id": "<molecule_chembl_id>"
},
"name": "chembl_get_drug_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| molecule_chembl_id | Yes | ChEMBL molecule ID (from chembl_search_molecules), e.g. "CHEMBL939" for gefitinib, or the molecule's standard InChIKey, e.g. "XGALLCVXEZPNRQ-UHFFFAOYSA-N". A salt or other alternate form answers with its parent's family, the same as the parent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Disclosure of anything the lists and the family-level fields do not say for themselves: a list whose upstream fetch timed out or failed (so its emptiness means nothing), a list the page cap bounded, a read of the family's forms that failed or was cut short (so withdrawn and black_box_warning may not cover every form), or — only when the mechanism and indication lists both came back complete and empty — that the molecule may be a research compound rather than a drug. | |
| warnings | No | Withdrawal and boxed-warning records filed on the drug and its alternate forms, one per ChEMBL record. Empty is authoritative only when warnings_status is "complete". | |
| max_phase | No | The queried form's own max clinical phase, as its ChEMBL record writes it: 4 = approved, 3–1 = trial phase, 0.5 = early phase 1, −1 = clinical with the phase unknown. Never the family's highest: ChEMBL files deuterated and isotope-labelled analogs under their parent, so the parent's phase would read an investigational analog as approved. A salt can record a lower phase than its parent — re-call with parent_molecule_chembl_id for the parent's own phase. A drug withdrawn from a market keeps 4: read withdrawn and warnings for that. Null when ChEMBL records no clinical development for this form. | |
| pref_name | No | Preferred drug name, e.g. "GEFITINIB". Null when unnamed. | |
| withdrawn | No | Whether any form of the drug's family has been withdrawn from the market in at least one country — the parent and every form ChEMBL files under it, salts and isotope-labelled and deuterated analogs included; warnings says where, when, and why, and each warning's molecule_chembl_id names the form it is filed on. The drug can still be marketed elsewhere, and a withdrawal never lowers max_phase. Null when no form read carries the flag and not every form could be read, as the notice then says — unknown, never a guessed false. | |
| mechanisms | No | Mechanisms of action. Empty is authoritative only when mechanisms_status is "complete". | |
| indications | No | Clinical indications. Empty is authoritative only when indications_status is "complete". When "truncated", each indication's max_phase_for_ind and forms are lower bounds: rows past the page cap can raise a phase or add a form. | |
| first_approval | No | The queried form's own year of first approval, e.g. 2003 — never the family's earliest, which would hand a deuterated analog approved years later its parent's year. A withdrawal does not clear it: read withdrawn and warnings for that. Null when this form records none — unapproved, or the year is unknown (ChEMBL records a few drugs' year on a salt alone). | |
| warnings_status | No | Retrieval state of the warning list. "complete" = every row ChEMBL records for the molecule and its alternate forms is present, so an empty array is a fact about the molecule. "truncated" = the single-request page cap bounded the list, so the array is a prefix of warnings_total_count rows. "failed" = the list was not retrieved (the request ran out of time or ChEMBL answered with an error, as warnings_failure says), so the empty array is unknown data, NOT evidence that none exist — re-call chembl_get_drug_info to retry. | |
| warnings_failure | No | Why the warning list failed, when warnings_status is "failed": "timeout" = the request ran out of time before ChEMBL returned the list; "upstream_error" = ChEMBL answered with an error (a rate limit, a server error, a rejected request) or could not be reached. Null when the list did not fail. | |
| black_box_warning | No | Whether any form of the drug's family carries a boxed ("black box") warning on its label — the parent and every form ChEMBL files under it, salts and isotope-labelled and deuterated analogs included; warnings names the country and the label cited, and each warning's molecule_chembl_id names the form it is filed on. Null when no form read carries the flag and not every form could be read, as the notice then says — unknown, never a guessed false. | |
| mechanisms_status | No | Retrieval state of the mechanism list. "complete" = every row ChEMBL records for the molecule and its alternate forms is present, so an empty array is a fact about the molecule. "truncated" = the single-request page cap bounded the list, so the array is a prefix of mechanisms_total_count rows. "failed" = the list was not retrieved (the request ran out of time or ChEMBL answered with an error, as mechanisms_failure says), so the empty array is unknown data, NOT evidence that none exist — re-call chembl_get_drug_info to retry. | |
| indications_status | No | Retrieval state of the indication list. "complete" = every row ChEMBL records for the molecule and its alternate forms is present, so an empty array is a fact about the molecule. "truncated" = the single-request page cap bounded the list, so the array holds the indications of the rows fetched (indications_rows_fetched, fewer than indications_total_count). "failed" = the list was not retrieved (the request ran out of time or ChEMBL answered with an error, as indications_failure says), so the empty array is unknown data, NOT evidence that none exist — re-call chembl_get_drug_info to retry. | |
| mechanisms_failure | No | Why the mechanism list failed, when mechanisms_status is "failed": "timeout" = the request ran out of time before ChEMBL returned the list; "upstream_error" = ChEMBL answered with an error (a rate limit, a server error, a rejected request) or could not be reached. Null when the list did not fail. | |
| molecule_chembl_id | No | The ChEMBL molecule ID queried, as the molecule's own record writes it. | |
| indications_failure | No | Why the indication list failed, when indications_status is "failed": "timeout" = the request ran out of time before ChEMBL returned the list; "upstream_error" = ChEMBL answered with an error (a rate limit, a server error, a rejected request) or could not be reached. Null when the list did not fail. | |
| warnings_total_count | No | Total warning rows ChEMBL holds for the molecule and its alternate forms. Exceeds the returned array length exactly when the status is "truncated". Null when the fetch failed — the count is unknown, never 0. | |
| mechanisms_total_count | No | Total mechanism rows ChEMBL holds for the molecule and its alternate forms. Exceeds the returned array length exactly when the status is "truncated". Null when the fetch failed — the count is unknown, never 0. | |
| indications_total_count | No | When the status is "complete", the number of distinct indications — the returned array length, rows recorded on several forms counted once. When "truncated", the indication rows ChEMBL holds for the molecule and its alternate forms, an upper bound on the distinct indications. Null when the fetch failed — the count is unknown, never 0. | |
| indications_rows_fetched | No | Indication rows fetched from ChEMBL for the molecule and its alternate forms, before rows recorded on several forms merge. When the status is "truncated", each row not fetched (indications_total_count minus this) can add at most one indication, so that difference bounds the indications missing. Null when the fetch failed. | |
| parent_molecule_chembl_id | No | The parent of the queried molecule's family — the molecule itself when it is the parent or ChEMBL records no hierarchy for it. Both flags and every list cover this parent and every alternate form ChEMBL files under it (salts, isotope-labelled and deuterated analogs); max_phase and first_approval are the queried molecule's own — pass this ID as molecule_chembl_id for the parent's. |