Skip to main content
Glama

Get full compound annotation by InChIKey or ID

get_compound_annotation
Read-onlyIdempotent

Fetch chemical identifiers and drug annotations, including DrugBank, ChEMBL, PubChem CID, UNII, RxCUI, ATC codes, formula, molecular weight, and SMILES from an InChIKey, DrugBank ID, or ChEMBL ID.

Instructions

Fetch chemical identifiers, DrugBank, ChEMBL, PubChem CID, UNII, RxCUI, ATC codes, formula, molecular weight, and SMILES by InChIKey, DrugBank ID, or ChEMBL ID.

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": {
      "compound_id": "<compound_id>"
    },
    "name": "get_compound_annotation"
  }
}

Input Schema

NameRequiredDescriptionDefault
compound_idYesInChIKey (e.g. "KTUFNOKKBVMGRW-UHFFFAOYSA-N"), DrugBank ID ("DB00619"), or ChEMBL ID ("CHEMBL941").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world behavior, so the safety profile is covered by structured data. The description adds the useful detail that many cross-reference fields are returned, but says nothing about failed lookups, partial matches, or whether all cross-references are guaranteed.

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?

A single front-loaded sentence with no filler; the resource list is dense but every item is a return field the agent cares about. It is slightly list-heavy rather than structured, but nothing is wasted.

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

Completeness3/5

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

For a one-parameter lookup with no output schema, enumerating the returned fields is genuinely helpful. However, missing error/empty-result behavior and any relationship to the sibling lookup tools leaves a moderate gap for a tool whose whole job is returning a record.

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

Parameters3/5

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

Schema coverage is 100% and the parameter already documents the three accepted ID formats with concrete examples. The description merely restates the same identifier types, adding no format or validation meaning beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

The description uses a specific verb (Fetch) and enumerates the exact resources returned (identifiers, DrugBank/ChEMBL/PubChem CID, UNII, RxCUI, ATC, formula, MW, SMILES). It is clearly a single-compound lookup, distinguishing it from search siblings, though it never names or contrasts them explicitly.

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

Usage Guidelines2/5

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

The accepted ID types imply how to call it, but there is no explicit when-to-use guidance, no mention of when to prefer get_compound_properties, and no stated exclusions or prerequisites. The agent must infer that this is the full-record companion to the properties tool.

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