Skip to main content
Glama

Convert IDs (TogoID)

togoid_convertId
Read-only

Convert biological identifiers between databases—for example, NCBI Gene IDs to UniProt accessions or UniProt accessions to PDB structure IDs—by specifying a source-to-target route.

Instructions

Convert identifiers from one database to another.

Maps IDs between biological databases — e.g., NCBI Gene IDs to UniProt accessions, or UniProt accessions to PDB structure IDs.

RETURNS a JSON string of a bare array of [source_id, target_id] pairs, e.g. '[["672", "P38398"], ["675", "O15129"]]'. An empty array means none of the input IDs converted along the route. Ontology-style datasets (go, mondo, doid, hp_*, orphanet_*, mgi_*, uberon, …) come back as CURIEs on both sides (GO:0005515), even for bare input; SPARQL needs the IRI form (obo:GO_0005515).

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": {
      "ids": "<ids>",
      "route": "<route>"
    },
    "name": "togoid_convertId"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesSource IDs. Accepts either a list of strings (e.g., ["672", "675", "7157"]) or a comma-separated string ("672,675,7157"). Examples: "672,675,7157" (NCBI Gene IDs), "P38398,P04637" (UniProt)
limitNoMaximum number of results (default 10000)
routeYesComma-separated pair of dataset keys: 'source,target'. NOTE: this is a single joined string, NOT separate `source`/`target` args (as in countId/getRelation) — because a route may be multi-hop (3+ datasets). Examples: - 'ncbigene,uniprot' (Gene → Protein) - 'uniprot,pdb' (Protein → 3D Structure) - 'ncbigene,ensembl_gene' (NCBI Gene → Ensembl Gene) - 'chembl_target,uniprot' (Drug Target → Protein) - 'uniprot,chembl_target' (Protein → Drug Target) - 'ncbigene,hgnc' (Gene → HGNC symbol) Multi-hop routes are also supported: - 'ncbigene,uniprot,pdb' (Gene → Protein → Structure)
offsetNoPagination offset for large result sets

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.0.0
    • addedInput schema / properties / ids / description
      Added value: +"Source IDs. Accepts either a list of strings\n(e.g., [\"672\", \"675\", \"7157\"]) or a comma-separated string\n(\"672,675,7157\").\nExamples: \"672,675,7157\" (NCBI Gene IDs), \"P38398,P04637\" (UniProt)"
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of results (default 10000)"
    • addedInput schema / properties / offset / description
      Added value: +"Pagination offset for large result sets"
    • addedInput schema / properties / route / description
      Added value: +"Comma-separated pair of dataset keys: 'source,target'. NOTE: this\nis a single joined string, NOT separate `source`/`target` args (as in\ncountId/getRelation) — because a route may be multi-hop (3+ datasets).\nExamples:\n    - 'ncbigene,uniprot' (Gene → Protein)\n    - 'uniprot,pdb' (Protein → 3D Structure)\n    - 'ncbigene,ensembl_gene' (NCBI Gene → Ensembl Gene)\n    - 'chembl_target,uniprot' (Drug Target → Protein)\n    - 'uniprot,chembl_target' (Protein → Drug Target)\n    - 'ncbigene,hgnc' (Gene → HGNC symbol)\nMulti-hop routes are also supported:\n    - 'ncbigene,uniprot,pdb' (Gene → Protein → Structure)"
  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.1/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes further by specifying the exact return shape (bare JSON array of [source_id, target_id] pairs with a literal example), what an empty array means (no IDs converted along the route), and a non-obvious formatting caveat about ontology datasets returning CURIEs while SPARQL needs IRI form. These are genuine behavioral facts an agent cannot get from the annotations or schema.

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?

Purpose is front-loaded, followed by examples and then return semantics — a sensible order. It runs slightly long and the SPARQL/IRI aside is a little tangential, but nearly every sentence carries information an agent needs.

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?

With an output schema present, the description needn't explain return values, yet it does so usefully (empty-array meaning, CURIE form). Only gap is that pagination behavior (limit/offset defaults) and any failure modes for invalid routes are unaddressed, which is minor for a read-only conversion tool.

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% and the route parameter is already richly documented there (multi-hop examples, joined-string note). The description adds no parameter-level guidance beyond the schema, so the baseline 3 applies; the CURIE remark concerns output, not inputs.

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?

The first sentence gives a specific verb and resource ('Convert identifiers from one database to another'), and the second makes it concrete with two mappings (NCBI Gene→UniProt, UniProt→PDB). An agent can tell this is a value-transformation tool, distinct from lookup/count siblings, without opening the schema.

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 only implied: you use it when you need IDs translated along a known route. The description never states when to prefer this over togoid_countId, togoid_identifyId, or togoid_getRelation — the countId/getRelation mention inside the route schema is about argument formatting, not tool selection. Adequate but leaves routing inference to the agent.

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