Skip to main content
Glama

Count convertible IDs (TogoID)

togoid_countId
Read-only

Pre-check how many source IDs have mappings before bulk conversion. Verify ID formats, estimate result size, and confirm a conversion route works without returning mapped IDs.

Instructions

Check how many of your IDs can be converted before doing bulk conversion.

A lightweight pre-check: tells you how many source IDs have mappings in the target database WITHOUT actually returning the mapped IDs. Use this to: - Verify your IDs are in the correct format - Estimate result size before a large convertId call - Check if a conversion route works for your specific IDs

This is a single-hop, pairwise check: pass source and target as two separate args (unlike convertId, which takes one comma-joined route).

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

Input Schema

NameRequiredDescriptionDefault
idsYesSource IDs to check. Accepts either a list of strings or a comma-separated string (e.g., ["672", "675"] or "672,675").
sourceYesSource database key (e.g., 'ncbigene', 'uniprot')
targetYesTarget database key (e.g., 'uniprot', 'pdb')

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.0
    • addedInput schema / properties / ids / description
      Added value: +"Source IDs to check. Accepts either a list of strings or a\ncomma-separated string (e.g., [\"672\", \"675\"] or \"672,675\")."
    • addedInput schema / properties / source / description
      Added value: +"Source database key (e.g., 'ncbigene', 'uniprot')"
    • addedInput schema / properties / target / description
      Added value: +"Target database key (e.g., 'uniprot', 'pdb')"
  2. First observedv0.1.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered; the description adds real behavioral context by stating that it returns only a count and NOT the mapped IDs, and that the route is single-hop and pairwise. It stops short of noting behavior for IDs with no mapping (are they counted in a total?) or any rate/limits, so it is not fully rich.

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

Conciseness5/5

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

Front-loaded with the core statement, then a short bullet list of use cases, then one sentence on the argument-shape difference. Every sentence carries information; no filler or repetition.

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?

An output schema exists, so return values need no explanation, and the description already says the result is a count rather than mapped IDs. For a three-parameter, read-only pre-check tool, nothing an agent needs in order to call it correctly is missing.

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 more by explaining that source and target are two separate arguments here, unlike convertId's single comma-joined route argument, which clarifies how to shape the call correctly.

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?

States a specific verb and resource: counting source IDs that have mappings in a target database, framed as a pre-check before bulk conversion. It explicitly contrasts itself with convertId, so an agent can distinguish the two without opening either 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?

Gives an explicit three-item when-to-use list (validate ID format, estimate result size before a large convertId call, test whether a route works) and names the alternative tool plus the condition that selects it. Nothing about selection is left to inference.

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