Look up ChEMBL IDs
search_chembl_id_lookupResolve names to ChEMBL IDs for compounds, targets, cell lines, tissues, or assays in a single call. Uses exact name matching, with keyword search for assays.
Instructions
Resolve a name to ChEMBL IDs across several entity kinds in one call.
Queries the ChEMBL RDF graph. Two matching regimes, because the entity kinds carry different searchable text:
• EXACT (case-insensitive) NAME match — COMPOUND (skos:altLabel: brands,
generics, synonyms), TARGET (its own rdfs:label OR its component's
skos:altLabel — gene symbols and protein names), CELL_LINE and TISSUE
(rdfs:label, e.g. "Liver", "CCRF S-180"). Not fuzzy/substring; for a
known kind, search_chembl_molecule / search_chembl_target return extra
fields (organism/type), and the target tool falls back to a substring pass.
• KEYWORD-IN-DESCRIPTION — ASSAY. Assays have no name; their searchable text is a free-text dcterms:description, so ASSAY does a keyword (token) match on that description, NOT an exact match, e.g. entity_type="ASSAY", query="acetylcholinesterase" → every assay whose description mentions it. ASSAY results are relevance-ranked (best description match first).
Default (no entity_type) searches the four EXACT-name kinds and UNIONs them.
ASSAY is opt-in via entity_type="ASSAY" — its keyword semantics and high hit
counts would otherwise swamp a name lookup. (DOCUMENT is not supported; query
SPARQL directly for it.)
The search string can be passed as any of: query (canonical), search,
term, keyword, keywords, search_term, or name.
RETURNS a dict {'total_count', 'has_more', 'results'}. total_count is the
number of rows RETURNED (capped by limit), NOT the full match count; check
has_more (true = more results exist beyond this page — relevant mainly for
ASSAY, whose keyword search can have many hits). On a default (cross-kind)
search, has_more=true can also mean an entire entity_type is missing from
the page: the limit applies to the UNION, so "Liver" at limit=5 returns 5
TARGET rows and no TISSUE row, though both exist. A truncated page therefore
does not show that a kind is absent; a larger limit or entity_type does.
Each result carries
'chembl_id', 'entity_type', and 'organism' (null for COMPOUND / where absent —
use it to tell e.g. human from mouse targets). Name kinds also carry 'name'
(rdfs:label); ASSAY rows instead carry 'description' (the free-text assay
description, name=null) and a relevance 'score' (higher = better match).
An empty 'results' carries a 'hint' explaining the empty match; it is not an endpoint failure. On a real endpoint failure this tool does not raise — it returns a dict with a single 'error' key, so check for 'error' before reading 'results'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_chembl_id_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| term | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| limit | No | The maximum number of results to return. | |
| query | No | The query string to search for. | |
| search | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| keyword | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| keywords | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. | |
| entity_type | No | Optional: COMPOUND, TARGET, CELL_LINE, TISSUE, or ASSAY. Omit to search the four name kinds together. ASSAY (keyword match on the assay description) is opt-in only. | |
| search_term | No | Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||