Skip to main content
Glama

Check an ID conversion route (TogoID)

togoid_getRelation
Read-only

Verify whether a direct ID conversion route exists between two biological databases and retrieve its relationship labels before converting IDs.

Instructions

Check if a specific ID conversion route exists and get its details.

Use this to verify that a particular source→target conversion is available before calling convertId. Also reveals the nature of the relationship (e.g., "encoded by", "has structure", "is target of").

This is a single-hop, pairwise check: pass source and target as two separate args (unlike convertId, which takes one comma-joined route).

RETURNS a JSON string of a bare array of relationship objects, each with forward (label from source to target), reverse (label from target to source), and description (explanation of the link). An empty array means no direct route exists.

DIRECTION IS NOT A CONSTRAINT ON TRAVERSAL. TogoID registers each pair in one direction only (274 of 308 pairs have no reverse entry), but convertId and countId traverse a pair BOTH ways. So this tool falls back to the swapped pair when the requested orientation is unregistered: the labels are swapped into YOUR orientation and the object carries "registered_direction": "target-source" to say so. A non-empty result means the conversion works in the direction you asked for.

NO DIRECT PAIR is an error, not an empty array. The error names an unknown dataset key if there is one; otherwise it lists up to 5 multi-hop routes (at most 2 hops) that convertId can walk, e.g. chebi,hmdb,pdb_ccd. A route through a grouping dataset (taxonomy, go, a pathway) is flagged: it links every member of the group, not equivalent IDs.

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": {
      "source": "<source>",
      "target": "<target>"
    },
    "name": "togoid_getRelation"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesSource database key (e.g., 'uniprot', 'ncbigene', 'chembl_target')
targetYesTarget database key (e.g., 'pdb', 'ensembl_gene', 'hgnc')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.0
    • addedInput schema / properties / source / description
      Added value: +"Source database key (e.g., 'uniprot', 'ncbigene', 'chembl_target')"
    • addedInput schema / properties / target / description
      Added value: +"Target database key (e.g., 'pdb', 'ensembl_gene', 'hgnc')"
  2. Changed2 schema fields changedv0.1.1
    • removedOutput schema / properties / result / items
      Removed value: -{}
    • changedOutput schema / properties / result / type
      Previous value: -"array"New value: +"string"
  3. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say readOnly and openWorld; the description adds non-obvious behavior: direction is not a traversal constraint, 274 of 308 pairs are registered one way, the tool falls back to the swapped pair and flags it via registered_direction, and error responses list up to 5 multi-hop routes with grouping-dataset warnings. That is exactly the kind of context annotations cannot carry.

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?

Front-loaded purpose sentence, then scoping, then RETURNS, then the direction caveat, then error behavior — each block earns its place and the capitalized headers make it scannable. The RETURNS paragraph slightly overlaps the output schema but justifies itself by defining the empty-array semantics.

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?

Despite an existing output schema, the description covers everything an agent needs before calling: argument shape difference, what an empty result means, what a swapped registration looks like, and how errors differ from empty results. No material gap remains for a 2-parameter read-only lookup.

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 earns more by explaining that source and target are two separate args rather than a joined route, and that the requested orientation is honored even when only the reverse pair is registered. It does not document argument format or dataset-key enumeration beyond the schema's examples.

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 ('check if a specific ID conversion route exists and get its details') and explicitly contrasts itself with convertId and the pairwise-vs-route argument shape. An agent can distinguish it from togoid_getAllRelation and togoid_convertId without opening any 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 rule ('use this to verify that a particular source→target conversion is available before calling convertId') plus the alternative's differing signature (one comma-joined route vs two separate args). It also states the failure mode's meaning: no direct pair is an error, not an empty array, and multi-hop suggestions may be walked by convertId.

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