Skip to main content
Glama

Resolve HPO Terms (batch)

resolve_terms_batch
Read-onlyIdempotent

Resolve up to 100 phenotype labels, synonyms, HP IDs, or xref CURIEs in one batch call, returning ordered per-input results so one invalid item does not fail the request.

Instructions

Resolve many phenotype labels, synonyms, HP ids or xref CURIEs in one call (label -> HP id and HP id -> label); returns one results[] row per input in input order: {index, query, ok: true, hpo_id, name, match_type} or {index, ok: false, error_code, message} (an ambiguous label adds candidates). One bad item never fails the call; unresolved_count says how many missed. Max 100 items. Signature: resolve_terms_batch(queries, response_mode=).

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": {
      "queries": "<queries>"
    },
    "name": "resolve_terms_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
queriesYes1..100 phenotype labels/synonyms, HP ids, or xref CURIEs.
response_modeNoVerbosity: minimal|compact|standard|full (default compact).compact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.12.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), and the description goes well beyond them: partial-failure tolerance ('one bad item never fails the call'), unresolved_count, per-row shape including index and match_type, the ambiguous-label candidate behavior, and input-order preservation. That is precisely the operational context an agent needs before calling a batch resolver and cannot get from annotations.

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?

Front-loaded with purpose, then result shape, then failure semantics and the limit — a sensible ordering with almost no wasted words. The trailing 'Signature: resolve_terms_batch(queries, response_mode=)' is largely redundant with the schema and is the one dispensable element.

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?

With no output schema, the description carries the return contract itself: success and failure row shapes, error_code, match_type, ambiguous candidates, unresolved_count, and ordering. Combined with the hard 100-item cap and partial-failure rule, an agent has everything needed to call and interpret it.

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%, so both parameters are already documented, including the accepted query forms and the response_mode enum. The description restates the query forms but adds nothing about response_mode beyond echoing the signature line, so it sits at the baseline for a fully documented schema.

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 (resolve) and enumerates exactly which input forms are accepted — phenotype labels, synonyms, HP ids, xref CURIEs — plus both mapping directions (label -> HP id and HP id -> label). The batch scope ('many ... in one call') distinguishes it from the singular resolve_term sibling without needing to name it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Resolve many ... in one call' plus 'Max 100 items' makes the batch use case and its ceiling explicit, which is enough to route an agent between this and a single-term resolver. It stops short of an explicit exclusion such as 'use resolve_term for a single id', so no true when-not guidance is offered.

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