Skip to main content
Glama

Identify ID type (TogoID)

togoid_identifyId
Read-only

Resolve a bare accession or CURIE to the TogoID dataset key(s) it may belong to, returning ranked candidates for convertId; optionally verify them against TogoID conversion tables.

Instructions

Resolve a bare accession to the TogoID dataset key(s) it could belong to.

The inverse of getDataset: given an identifier like AEK21611 or P38398, it returns the route key convertId expects. Plausible-sounding keys such as ncbi_protein, entrez_gene and uniprotkb are not TogoID datasets, and any call using one fails.

RETURNS a JSON string of a bare array, one object per input ID, each with id and candidates (possibly empty). Each candidate carries dataset (the key to put in a route), label, category, shape_matches_examples, and pattern_collisions.

Candidates are ordered best-first on two pieces of evidence:

  • shape_matches_examples — whether the ID's character-class shape (AEK21611 → L3D5) is one the dataset's own example IDs take. This is the main per-ID signal: insdc_cds's examples are all L3D5, insdc's L1D5/L2D6, so a protein accession sorts above the gene-level dataset.

  • pattern_collisions — how many other datasets' example IDs this dataset's pattern also matches, used to break ties. Low means a distinctive format (uniprot: ~10), high a catch-all (hgnc_symbol: over a thousand).

The order is evidence, not an answer: it puts the right dataset first for about 82% of TogoID's published example IDs, and the rest cannot be told apart by shape — a bare 672 is a well-formed ncbigene, pubmed, chebi and homologene ID. category=, verify=True, or knowing where the ID came from settles it. An empty candidates list means no registered dataset's pattern matches, so TogoID cannot convert that ID.

VERIFY (verify=True) asks TogoID which of its conversion tables actually contain the ID. Each candidate then also carries:

  • attested — "yes": TogoID holds the ID as this dataset in at least one table. "no": it holds it under no table for this dataset, so TogoID cannot convert it from this dataset. "unknown": TogoID did not answer in time (see verify_note).

  • pairs_with — datasets this ID shares a direct table with on this dataset's side (null when unknown); for a "yes" candidate these are single-hop convertId targets.

Candidates then sort yes, unknown, no. Verification rules out datasets better than it picks one (a short number like 672 is present in a dozen), and costs one lookup per ID, so it is off by default and limited to 10 IDs per call. Pass the ID as written (GO:0005515, not 0005515): TogoID resolves the prefix, and a bare ontology number is found nowhere.

A CURIE disambiguates far better than a bare accession: insdc.cds:AEK21611 rather than AEK21611. A full IRI matches no dataset's pattern; pass its accession or CURIE instead.

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>"
    },
    "name": "togoid_identifyId"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesIdentifiers to resolve. A list of strings, or a comma/whitespace separated string (e.g. "AEK21611,P38398").
verifyNoCheck each candidate against TogoID's conversion tables and add `attested`/`pairs_with` (default False; at most 10 IDs).
categoryNoOptional filter on the dataset's category, matched case-insensitively — e.g. 'Gene', 'Protein', 'Compound', 'Transcript', 'Variant', 'Pathway', 'Phenotype'. Use it to break ties when you know what kind of thing the ID names.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.34.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries real weight and delivers: the ranking evidence (shape_matches_examples, pattern_collisions) with an honest ~82% accuracy figure, the cost model for verification (one lookup per ID, capped at 10), the attested/pairs_with semantics, and the sort order under verify. It also discloses the prefix-resolving behavior and that a bare ontology number is found nowhere.

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 and the getDataset/convertId relationship are front-loaded, and the VERIFY and candidate-ordering blocks are clearly delimited. It is long, and the 'RETURNS a JSON string...' paragraph substantially restates the output schema, but nearly every remaining sentence adds a decision-relevant fact rather than filler.

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?

Given an open-world, ambiguity-prone resolver with a real cost tradeoff, the description covers ranking logic, verification semantics, failure modes, input formatting, and ambiguity handling. Return shape is fully specified by the output schema, so no meaningful gap remains for an agent to call it correctly.

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 above that by explaining what `verify` actually buys (rules out datasets better than it picks one, costs a lookup, 10-ID cap, reorders yes/unknown/no) and that `category` breaks ties. Some of this overlaps the schema's own parameter descriptions, so it is additive rather than purely new information.

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?

Opening sentence states a specific verb and resource: 'Resolve a bare accession to the TogoID dataset key(s) it could belong to.' It further positions the tool against two named siblings — the 'inverse of getDataset' and the producer of the 'route' key that convertId expects — and calls out plausible-but-wrong keys like `ncbi_protein` and `uniprotkb`, so an agent can distinguish it 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?

The description gives explicit when-to-use context (you have a bare accession and need a route key for convertId) and concrete alternatives for ambiguous cases: `category=`, `verify=True`, or provenance knowledge. It also states when-not/exclusion behavior — empty `candidates` means TogoID cannot convert — and advises CURIE over bare accession and against full IRIs, covering the main failure modes.

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