Skip to main content
Glama

Resolve HPO Term

resolve_term
Read-onlyIdempotent

Resolve any HPO query (label, synonym, ID, xref) to its canonical HP term with match type. Handles ambiguous or obsolete terms.

Instructions

Resolve a phenotype label, synonym, HP id (HP:0000118), or external cross-reference CURIE (UMLS:C0000737, SNOMEDCT_US:263681008, ...) to the canonical HPO term {hpo_id, name, match_type}. An ambiguous label returns ambiguous_query with candidates; an obsolete HP id returns not_found with its successor in replaced_by. This is the recommended first step — resolve any query to a canonical HP id before calling get_term. Signature: resolve_term(query, response_mode=).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesA phenotype label, synonym, HP id (HP:0000118), or external xref CURIE (UMLS:C0036572, SNOMEDCT_US:263681008, ...).
response_modeNoVerbosity: minimal|compact|standard|full (default compact).compact

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintNo
nameNo
_metaNo
fieldNo
queryNo
hpo_idNo
messageNo
successNo
obsoleteNo
retryableNo
candidatesNo
error_codeNo
match_typeNo
hpo_versionNo
allowed_valuesNo
recovery_actionNo
match_confidenceNo
recommended_citationNo
Behavior4/5

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

Annotations already indicate read-only, idempotent, and non-destructive behavior. The description adds important context: ambiguous labels return ambiguous_query with candidates, obsolete HP ids return not_found with replaced_by, and response_mode affects verbosity. No contradiction.

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?

Two sentences, front-loaded with purpose and output, followed by edge cases and usage recommendation. Every sentence adds critical information with no wasted words. Highly efficient and scanned easily.

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?

Given the tool's complexity (multiple input types, ambiguous/obsolete behavior, response modes) and the presence of an output schema, the description covers all key aspects. Could elaborate on candidate structure or replaced_by format, but likely documented in output schema. Adequate for selection and invocation.

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 descriptions cover 100% of parameters, clearly defining query types with examples and response_mode options. The tool description reinforces this by mentioning edge cases and the output structure, adding value beyond the schema without redundancy.

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 description clearly states the tool resolves phenotype labels, synonyms, HP ids, or external xrefs to canonical HPO terms. It specifies the output structure (hpo_id, name, match_type) and distinguishes from siblings like resolve_xref and get_term by detailing input types and edge cases.

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?

Explicitly recommends this as the first step before calling get_term. It implies usage for resolving any query to a canonical HP id, providing clear context. Does not list specific when-not-to-use scenarios, but the recommendation is strong.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/berntpopp/hpo-link'

If you have feedback or need assistance with the MCP directory API, please join our Discord server