Check an ID conversion route (TogoID)
togoid_getRelationVerify 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
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source database key (e.g., 'uniprot', 'ncbigene', 'chembl_target') | |
| target | Yes | Target database key (e.g., 'pdb', 'ensembl_gene', 'hgnc') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |