Skip to main content
Glama

Look up ChEMBL IDs

search_chembl_id_lookup
Read-only

Resolve 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

NameRequiredDescriptionDefault
nameNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
termNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
limitNoThe maximum number of results to return.
queryNoThe query string to search for.
searchNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
keywordNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
keywordsNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.
entity_typeNoOptional: 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_termNoAlias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.34.1
    • addedInput schema / properties / keyword / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / keywords / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / name / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / search / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / search_term / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
    • addedInput schema / properties / term / description
      Added value: +"Alias for `query` — pass ONE of query/search/term/keyword/keywords/search_term/name. Supplying two with different values raises ValueError."
  2. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / entity_type
      Added value: +{
      +  "default": "",
      +  "description": "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.",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial behavior beyond that — total_count is capped by limit rather than being the full match count, has_more can mean a whole entity_type is absent from a UNION-limited page, empty results carry a 'hint', and endpoint failures return an 'error' key instead of raising. This is exactly the kind of non-obvious semantics an agent needs. Slight deduction only because much of the return-value detail overlaps the existing output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose, then clearly partitioned into matching regimes, defaults, parameters, and returns. Dense but nearly every sentence carries decision-relevant information. Minor redundancy: the seven-alias list is restated from the schema, and the returns section is longer than needed given an output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, multi-regime search tool this covers what an agent must know: default vs opt-in entity kinds, exact vs keyword matching, alias collision errors, pagination truncation across a UNION, and the error-shape contract. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes further by explaining that the string may arrive via any of seven aliases, that supplying two differing aliases raises ValueError, and that entity_type governs a semantics switch (exact name vs keyword-in-description) rather than just a filter. It also clarifies that raising limit is the way to surface other kinds in a cross-kind search.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Resolve a name to ChEMBL IDs across several entity kinds') and immediately scopes it to the ChEMBL RDF graph. It also names the sibling tools search_chembl_molecule and search_chembl_target and explains what they return that this one does not, so an agent can choose without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rules: use the per-kind tools when the entity kind is known and extra fields are needed; ASSAY is opt-in only because keyword semantics would swamp a name lookup; DOCUMENT is unsupported and should go through SPARQL. It also states the default behavior when entity_type is omitted.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.