Skip to main content
Glama

find_counterparts

Find nearest chemical counterparts or bioisosteric analogs for a molecule or functional group using 1024-dimensional vector cosine distance, with filters by molecule or chemical class.

Instructions

Find nearest chemical counterparts or bioisosteric analogs to a specified molecule or functional group using 1024-dimensional pgvector cosine distance.

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": {
      "entity_type": "<entity_type>",
      "id": "<id>"
    },
    "name": "find_counterparts"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesID of the molecule or functional group
limitNoNumber of nearest neighbors to return (default: 10)
entity_typeYesEntity type to find counterparts for: molecule or functional_group
molecule_idNoOptional molecule ID to filter counterpart candidates (for functional group counterparts)
chemical_class_idNoOptional chemical class ID to filter counterpart candidates
include_embeddingNoWhether to include raw 1024-float vector embeddings in results

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does contribute real behavioral context: results are ranked by 1024-dimensional pgvector cosine distance, so the agent knows it is a read-only similarity ranking. However, it omits important traits such as what happens when the target lacks an embedding, whether results are ordered/distance-scored, and any cost or performance characteristics.

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 core action and target come first and the distance-metric detail trails. The technical clause about pgvector is slightly jargon-heavy but still earns its place by signaling the ranking method.

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?

This is a moderately complex tool (6 parameters, enum, filters, optional embedding output) with no annotations and no output schema, so the description must shoulder more weight. It covers what the tool does but not what comes back (neighbor records, distances, embedding presence) or failure conditions, leaving a meaningful gap.

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 description coverage is 100%, so each of the six parameters (including the optional molecule_id and chemical_class_id filters and include_embedding) is already documented in the schema. The description adds no parameter-level meaning beyond restating that a molecule or functional group is the target, so the baseline of 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?

States a specific verb ('Find') and a precise resource ('nearest chemical counterparts or bioisosteric analogs to a specified molecule or functional group'), which is enough to tell it apart from get_/list_ siblings as a similarity search rather than a lookup. It stops short of explicitly naming or contrasting a sibling tool, keeping it at 4 rather than 5.

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 description never says when to reach for this tool versus alternatives such as compute_clusters, list_molecules, or get_molecule, nor does it state prerequisites (e.g., that the target must already have an embedding). Usage is only inferable from the verb 'Find nearest'.

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