Skip to main content
Glama

chembl-search-targets

chembl_search_targets
Read-onlyIdempotent

Resolve a protein/gene/UniProt accession to the ChEMBL target ID that chembl_get_bioactivities needs for the target→leads workflow. Supply at least one of accession (UniProt, e.g. P00533), gene_symbol (e.g. EGFR), or query (free-text name, or a ChEMBL target ID such as CHEMBL203 to read that one target); filter further by organism and target_type. Returns each target with its type, organism, and component UniProt accessions + gene symbols. A UniProt accession from the uniprot/protein server is the most precise input. A capped result carries nextCursor — pass it back as cursor with the same filters to read the next page.

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": "chembl_search_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum targets to return, up to 100 — a larger value is served at 100, with a notice saying so. Defaults to the server default (25) when omitted.
queryNoFree-text name match against the target preferred name, e.g. "kinase" or "growth factor receptor" — or a ChEMBL target ID in any case, e.g. "CHEMBL203", which returns that one target.
cursorNoOpaque continuation token from a previous call's nextCursor — resumes where that page ended. Omit for the first page. Re-send the same accession/gene_symbol/query/filters that minted it (only limit may change; it sets this page's size); redeeming it against different filters walks a different result set.
organismNoRestrict to a source organism by the scientific name ChEMBL records, e.g. "Homo sapiens" (case-insensitive exact match) — a common name such as "human" matches nothing.
accessionNoUniProt accession of a target component, e.g. "P00533". The most precise resolver — from the uniprot/protein server.
gene_symbolNoGene symbol of a target component, e.g. "EGFR" (case-insensitive exact match).
target_typeNoRestrict to one target class, named in full, e.g. "SINGLE PROTEIN" or "PROTEIN COMPLEX" (exact match on the whole class, case-insensitive here) — a partial class such as "PROTEIN" matches nothing.

Output Schema

NameRequiredDescriptionDefault
capNoThe limit that was applied.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of targets returned.
noticeNoGuidance when no target matched — echoes every filter sent, names the organism or target_type form ChEMBL matches, and suggests how to broaden — and the disclosure that a limit above the maximum was served at the maximum.
targetsNoMatching targets (up to the limit).
truncatedNoTrue when the result was capped at the limit.
nextCursorNoOpaque token for the next page — pass it back as cursor with the same filters. Absent when this page is the last one.
totalCountNoTotal targets matching the filters before the limit was applied.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / organism / description
      Previous value: -"Restrict to a source organism, e.g. \"Homo sapiens\" (case-insensitive exact match)."New value: +"Restrict to a source organism by the scientific name ChEMBL records, e.g. \"Homo sapiens\" (case-insensitive exact match) — a common name such as \"human\" matches nothing."
    • changedInput schema / properties / query / description
      Previous value: -"Free-text name match against the target preferred name, e.g. \"kinase\" or \"growth factor receptor\"."New value: +"Free-text name match against the target preferred name, e.g. \"kinase\" or \"growth factor receptor\" — or a ChEMBL target ID in any case, e.g. \"CHEMBL203\", which returns that one target."
    • changedInput schema / properties / target_type / description
      Previous value: -"Restrict to a target class, e.g. \"SINGLE PROTEIN\" or \"PROTEIN COMPLEX\"."New value: +"Restrict to one target class, named in full, e.g. \"SINGLE PROTEIN\" or \"PROTEIN COMPLEX\" (exact match on the whole class, case-insensitive here) — a partial class such as \"PROTEIN\" matches nothing."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when no target matched — echoes the filters and suggests how to broaden — and the disclosure that a limit above the maximum was served at the maximum."New value: +"Guidance when no target matched — echoes every filter sent, names the organism or target_type form ChEMBL matches, and suggests how to broaden — and the disclosure that a limit above the maximum was served at the maximum."
  2. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum targets to return. Defaults to the server default (25) when omitted."New value: +"Maximum targets to return, up to 100 — a larger value is served at 100, with a notice saying so. Defaults to the server default (25) when omitted."
    • changedInput schema / properties / limit / maximum
      Previous value: -100New value: +10000
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when no target matched — echoes the filters and suggests how to broaden."New value: +"Guidance when no target matched — echoes the filters and suggests how to broaden — and the disclosure that a limit above the maximum was served at the maximum."
  3. Changed2 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `missing_input`: None of query, accession, or gene_symbol was supplied. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `not_found`: ChEMBL has no record for the requested identifier or structure. `rate_limited`: ChEMBL rate-limits the upstream request. `missing_input`: None of query, accession, or gene_symbol was supplied. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "missing_input"
      -]New value: +[
      +  "not_found",
      +  "rate_limited",
      +  "missing_input"
      +]
  4. Changed8 schema fields changed
    • removedOutput schema / properties / targets / items / properties / components / items / properties / accession / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / targets / items / properties / components / items / properties / accession / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / targets / items / properties / organism / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / targets / items / properties / organism / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / targets / items / properties / pref_name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / targets / items / properties / pref_name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / targets / items / properties / target_type / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / targets / items / properties / target_type / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  5. Changed6 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "targets",
      +      "totalCount",
      +      "truncated",
      +      "shown",
      +      "cap"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `missing_input`: None of query, accession, or gene_symbol was supplied. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "missing_input"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "targets",
      -  "totalCount",
      -  "truncated",
      -  "shown",
      -  "cap"
      -]
  6. Changed2 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Opaque continuation token from a previous call's nextCursor — resumes where that page ended. Omit for the first page. Re-send the same accession/gene_symbol/query/filters that minted it (only limit may change; it sets this page's size); redeeming it against different filters walks a different result set.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / nextCursor
      Added value: +{
      +  "description": "Opaque token for the next page — pass it back as cursor with the same filters. Absent when this page is the last one.",
      +  "type": "string"
      +}
  7. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/idempotent annotations, it discloses result capping, the nextCursor flow, and the requirement to reuse the same filters, which are real behavioral traits. It also sketches the returned fields, though the output schema already covers returns, so this is slightly redundant rather than additive.

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 purpose and the sibling dependency, then inputs, then outputs, then pagination — a logical order with no filler. It is dense (one long opening sentence) but every clause carries information.

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 7-parameter search tool with an output schema, the definition covers the missing pieces: input minimums, precision ordering, filtering caveats, and pagination. Nothing an agent needs in order to call it correctly is absent.

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 adds genuine semantics the schema alone does not state as clearly — that zero params are required but at least one identity input is needed, and the precedence of accession over gene_symbol/query. The cursor/filter-invariance rule is also restated as a usage constraint rather than just a field note.

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 protein/gene/UniProt accession to the ChEMBL target ID') and explicitly names the sibling it feeds, chembl_get_bioactivities. The name/behavior mapping is unambiguous without opening the schema.

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?

Gives an explicit when-to-use ('the target→leads workflow'), a when-not-implied routing to the alternative ('the ID that chembl_get_bioactivities needs'), a precedence rule ('a UniProt accession from the uniprot/protein server is the most precise input'), and a minimum-input constraint ('supply at least one of...'). Little is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.