Skip to main content
Glama

Get ID dataset details (TogoID)

togoid_getDataset
Read-only

Retrieve detailed metadata for a TogoID dataset, including ID format, URI prefix, examples, and regex patterns. Provides a Python-compatible regex to prevent silent compilation failures.

Instructions

Get configuration for a specific database in TogoID.

Retrieves detailed metadata about a single dataset, including its ID format, URI prefix, example IDs, and available annotations.

RETURNS a dict with label (human-readable name), regex (the ID-validation pattern exactly as TogoID serves it), regex_flavor ("ecmascript"), regex_python (the same pattern rewritten for Python's re — ADDED HERE), prefix (URI prefixes for linking), examples (sample IDs — test with countId before bulk conversion), and annotations (available annotation types).

⚠️ regex uses .NET/JavaScript named groups (?<id>...), which Python's re.compile rejects. Use regex_python. A bare try/except around the compile silently degrades to "matches nothing" — a wrong answer, not an error.

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": {
      "dataset": "<dataset>"
    },
    "name": "togoid_getDataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
datasetYesDataset key (e.g., 'uniprot', 'ncbigene', 'pdb', 'chembl_target', 'ensembl_gene', 'hgnc', 'pubchem_compound')

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • addedInput schema / properties / dataset / description
      Added value: +"Dataset key (e.g., 'uniprot', 'ncbigene', 'pdb', 'chembl_target',\n     'ensembl_gene', 'hgnc', 'pubchem_compound')"
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the description's added value is the pitfall disclosure: `regex` uses .NET/JavaScript named groups that Python's re rejects, and a try/except fallback silently degrades to 'matches nothing' rather than raising. That silent-wrong-answer warning is exactly the kind of behavioral context annotations cannot convey. It also flags that `regex_python` is an addition made by this server, not TogoID.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the regex warning are front-loaded and earn their space, but the RETURNS paragraph enumerates seven dict fields that an existing output schema already documents, which is redundant bulk. Trimming that list to the two or three fields an agent must not misuse would tighten it considerably.

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?

For a single-parameter read tool with annotations and an output schema, this is close to complete: it explains the lookup's purpose, the silent-failure caveat, and the pre-conversion check. The only shortfall is not pointing agents at togoid_getAllDataset for discovering valid dataset keys.

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 coverage is 100% and the single `dataset` parameter already carries a description with seven concrete example keys, so the schema fully handles semantics. The description adds no further guidance on the parameter (e.g., case sensitivity, discoverability via togoid_getAllDataset), leaving this at the baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: 'Get configuration for a specific database in TogoID', and the body clarifies it returns per-dataset metadata (ID format, URI prefix, examples, annotations). It contrasts implicitly with the plural sibling togoid_getAllDataset but never names it, so the distinction is inferable rather than stated.

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?

Offers one concrete workflow hint — 'test with countId before bulk conversion' — which usefully ties this lookup to the countId sibling. It does not say when to prefer this over togoid_getAllDataset or togoid_getDescription, nor does it state prerequisites for a valid dataset key beyond the schema examples.

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