Skip to main content
Glama

chem_similar_compounds

Find PubChem compound CIDs structurally similar to a query SMILES string by setting a similarity threshold and maximum result count for chemical similarity searches.

Instructions

Find PubChem CIDs structurally similar to a SMILES string.

Similarity is computed by PubChem (Tanimoto, threshold 0-100); this tool returns the CID list only and never invents structures. The query is submitted as a form body, so SMILES special characters are safe.

Args: smiles: Query SMILES. threshold: Minimum similarity 0-100 (default 90). max_records: Maximum CIDs to return, 1-1000 (default 20).

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": {
      "smiles": "<smiles>"
    },
    "name": "chem_similar_compounds"
  }
}

Input Schema

NameRequiredDescriptionDefault
smilesYes
thresholdNo
max_recordsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations the description carryies the burden and does well: it discloses the similarity metric (PubChem Tanimoto), the threshold scale, that the result is CIDs only, that structures are never invented, and that the query goes as a form body so SMILES special characters are safe. It stops short of permission, rate-limit, or error-behavior details.

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

Conciseness5/5

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

Roughly four sentences plus an arg list, all front-loaded with the core purpose before the metric and safety notes. Nothing is redundant and the parameter notes are compact.

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

Completeness4/5

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

For a 3-parameter tool with no output schema and no annotations, the definition covers purpose, metric, return shape ('CID list only'), and all parameter ranges. Only auth/rate/error behavior and SMILES format expectations are left unspecified, which is a minor gap at this complexity.

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 description coverage is 0%, so the description must compensate, and it does: it explains the SMILES query, the 0-100 threshold with a default of 90, and the 1-1000 max_records cap with a default of 20 — meaning the schema alone would not convey. Missing only SMILES syntax guidance (e.g., accepted formats, length limits).

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 ('Find PubChem CIDs structurally similar to a SMILES string') with the notion of structural similarity making it plainly distinct from lookup-oriented siblings like compound_lookup or chem_compound. An agent knows exactly what it gets back, a CID list.

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

Usage Guidelines3/5

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

Usage is implied clearly (you have a SMILES and want structurally related CIDs), but there is no explicit when-to-use versus when-not, and no named alternative for exact lookups or name-based searches. No exclusions or prerequisites are stated.

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