Skip to main content
Glama

chembl-get-documents

chembl_get_documents
Read-onlyIdempotent

The publication, patent, or deposited dataset behind ChEMBL document IDs, for one document or a shortlist in one call: type, title, authors, journal, year, volume, issue, pages, PubMed ID, DOI, and patent number. Supply document_chembl_ids from the document_chembl_id of chembl_get_bioactivities rows or chembl_get_assay records: the first 100 distinct IDs are looked up and returned in the order given, the rest come back in deferred_ids to pass again, and an ID with no document record (a compound, target, or assay ID included) is listed in not_found_ids rather than failing the call. Call this to cite a measurement; a pubmed_id or doi chains to a PubMed or Crossref server for the abstract.

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": {
      "document_chembl_ids": "<document_chembl_ids>"
    },
    "name": "chembl_get_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_chembl_idsYesChEMBL document IDs from the document_chembl_id of bioactivity rows or assay records, e.g. ["CHEMBL3351701", "CHEMBL1240298"]: 1–1000, any case. The first 100 distinct IDs are looked up; the rest come back in deferred_ids.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. Absent on success.
noticeNoPresent when not_found_ids or deferred_ids is non-empty: counts each and says where document IDs come from and how to look up the deferred ones.
documentsNoThe documents found, in the order their IDs were given.
deferred_idsNoDistinct IDs past the first 100, not looked up, in the order given — pass them as document_chembl_ids in another call. Empty when none.
not_found_idsNoIDs looked up that ChEMBL holds no document for — an unknown ID, or a compound, target, or assay ID — in the order given. Empty when every ID looked up was found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so safety needs no restating; the description instead adds real behavioral detail above that bar: 100-ID batching, order preservation, deferred_ids overflow, and not_found_ids handling instead of a hard failure. Missing only rate/limit or cost characteristics, which keeps it short of a 5.

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 resource and its fields, then the call mechanics, then the chaining advice; every clause carries information. It is dense and long for a single-parameter tool, but nothing is redundant with the title or schema in a wasteful way.

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 one-parameter read tool with an output schema, the description still covers ID provenance, ordering, partial-result behavior, and downstream chaining. Nothing an agent needs to invoke it correctly or interpret the response 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% and the schema already states the pattern, the 1-1000 range, and the first-100-distinct lookup rule. The description still adds value by specifying provenance of the IDs (document_chembl_id from bioactivity rows or assay records) and by explaining the consequence of a bad ID (not_found_ids), which the schema does not.

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 ('the publication, patent, or deposited dataset behind ChEMBL document IDs') plus the exact payload fields returned and the batch scope. It also distinguishes itself from chembl_get_bioactivities and chembl_get_assay by naming them as the source of the IDs rather than as substitutes.

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 ('Call this to cite a measurement') and an explicit next step for anything beyond metadata ('a pubmed_id or doi chains to a PubMed or Crossref server for the abstract'). It also prescribes where document_chembl_ids should come from, so the agent knows the prerequisite call.

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.