togoid_getRelation
Check whether a direct ID conversion route exists between two databases and retrieve the relationship details, including forward/reverse labels and a description of the link.
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.
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 |