Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HPO_LINK_DATA__AUTO_BOOTSTRAPNoSet to 'true' to enable automatic building from source if prebuilt DB URL is absent. Default is 'true'.true
HPO_LINK_DATA__PREBUILT_DB_URLNoURL of a prebuilt SQLite database artifact (optional). If not set, the server builds automatically.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

HPO-Link grounds phenotype work in the Human Phenotype Ontology (HPO, https://hpo.jax.org/). It is backed by a local index built from the HPO OBO release and HPOA annotation files, so lookups are fast and offline.

  • Resolve first: resolve_term(query=) maps a phenotype label, synonym, HP id (HP:0000118), or external xref CURIE (UMLS:C0036572, SNOMEDCT_US:263681008, ...) to the canonical {hpo_id, name, match_type}. An ambiguous label returns ambiguous_query with candidates.

  • Record: get_term(term=) returns the term with definition, synonyms, alt_ids, xrefs, and obsolescence status. search_terms(query=) is FTS over name/synonyms/definition.

  • Hierarchy: get_term_parents / get_term_children for immediate neighbours; get_term_ancestors / get_term_descendants for transitive closure.

  • Cross-ontology: resolve_xref(xref_id=) maps an external CURIE back to HPO; map_cross_ontology(term=, prefixes=) lists a term's mappings to UMLS / SNOMED / NCIT / MEDDRA / ICD-10 / ICD-9 / MONDO / DOID / ORPHA.

  • Workflow: resolve_term -> get_term -> get_term_ancestors / get_term_descendants / get_term_parents / get_term_children -> resolve_xref / map_cross_ontology. Follow _meta.next_commands rather than guessing the next tool.

  • Verbosity: most tools take response_mode (minimal | compact | standard | full, default compact). Discovery: get_server_capabilities, or read hpo://capabilities / hpo://tools.

  • Citation: always cite the HP id AND the HPO release version (capabilities report it). HPO has a custom license (https://hpo.jax.org/app/license). Research use only; not for clinical decision support, diagnosis, treatment, or patient management.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_server_capabilitiesA

Return the hpo-link discovery surface: identity/build/HPO release, the tool list WITH call signatures, response modes, recommended workflows, the xref prefixes, the error taxonomy, and limits. detail='full' adds the full policy notes. Call this first in a cold session, or read hpo://tools / hpo://capabilities. Signature: get_server_capabilities(detail=).

get_diagnosticsA

Report the local HPO index status: whether the data is built, the loaded HPO and HPOA release versions, term/obsolete/closure/xref/annotation counts, when it was built, and a runtime block (request/error counts and latency percentiles p50/p95/p99). Use this to confirm freshness or diagnose an upstream_unavailable error (an unbuilt/unavailable local index). Signature: get_diagnostics().

resolve_termA

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}. For 2 or more terms, call resolve_terms_batch once instead of calling this tool per item. An ambiguous label returns ambiguous_query with candidates (each {hpo_id, name}); an obsolete HP id resolves with success:true, obsolete:true, and its successor in replaced_by. This is the recommended first step — resolve any query to a canonical HP id before calling get_term. Returns the single best match; text queries add other_matches_count, and to list every term matching a text use search_terms. Signature: resolve_term(query, response_mode=).

resolve_terms_batchA

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=).

search_termsA

Full-text search over HPO phenotype term names, synonyms, and definitions (FTS, relevance-ranked); returns {hpo_id, name, score} -- compact adds a short definition_snippet; standard/full add the complete definition -- plus a pagination block {total, returned, limit, offset, truncated, next_offset}. When truncated, next_commands carries a forward-page step (offset advanced) and a widen step. Obsolete terms are excluded unless include_obsolete=true. Signature: search_terms(query, limit=, offset=, include_obsolete=, response_mode=).

get_termA

Return an HPO phenotype term record: definition, synonyms (exact/related/broad/narrow), alt_ids, subsets, comments, cross-references, direct parents and children, and obsolescence (replaced_by). The term accepts an HP id, a label/synonym, or an external xref CURIE (resolved first). For only the labels of several HP ids, call resolve_terms_batch once. Pass fields=['synonyms', 'definition'] for a sparse projection. Note on synonyms shape: compact (default) returns synonyms as plain strings; standard/full return {text, scope} objects. Signature: get_term(hpo_id, response_mode=, fields=).

get_term_ancestorsA

Return all transitive is_a ancestors (broader phenotype terms) of an HPO term via the precomputed closure, with a pagination block {total, returned, limit, offset, truncated, next_offset}. When truncated, next_commands carries a forward-page step (offset) so you can walk a >limit closure without re-sending rows. Use get_term_parents for only the immediate parents. Signature: get_term_ancestors(hpo_id, limit=, offset=, response_mode=).

get_term_descendantsA

Return all transitive is_a descendants (more specific phenotype terms) of an HPO term via the precomputed closure, with a pagination block {total, returned, limit, offset, truncated, next_offset}. When truncated, next_commands carries a forward-page step (offset) so you can walk a >limit closure without re-sending rows. Use get_term_children for only the immediate children. Signature: get_term_descendants(hpo_id, limit=, offset=, response_mode=).

get_term_parentsA

Return the direct is_a parents (immediate broader phenotype terms) of an HPO term. Use get_term_ancestors for the full transitive set. Signature: get_term_parents(hpo_id, response_mode=).

get_term_childrenA

Return the direct is_a children (immediate more-specific phenotype terms) of an HPO term. Use get_term_descendants for the full transitive set. Signature: get_term_children(hpo_id, response_mode=).

resolve_xrefA

Resolve an external cross-reference CURIE (UMLS/SNOMEDCT_US/NCIT/MEDDRA/ICD-10/ICD-9/MONDO/DOID/ORPHA) back to the HPO term(s) that cross-reference it. Returns matches[] plus a pagination block {total, returned, limit, offset, truncated, next_offset}; when truncated, next_commands carries a forward-page step (offset). Signature: resolve_xref(xref_id, limit=, offset=, response_mode=).

map_cross_ontologyA

List an HPO term's cross-references to other ontologies/vocabularies, grouped by target prefix (UMLS/SNOMEDCT_US/NCIT/MEDDRA/ICD-10/ICD-9/MONDO/DOID/ORPHA/EFO/MSH/MESH). Optionally restrict to a subset of prefixes. Signature: map_cross_ontology(hpo_id, prefixes=, response_mode=, fields=).

get_phenotypes_for_geneA

Return the HPO phenotype terms annotated to a gene (symbol or NCBI id). Signature: get_phenotypes_for_gene(gene, limit=, offset=, response_mode=). For several phenotypes and/or a candidate gene list at once, use score_genes_for_phenotypes instead of looping over single-gene calls.

get_genes_for_phenotypeA

Return the genes annotated to an HPO phenotype term, optionally expanded to include descendants. Signature: get_genes_for_phenotype(hpo_id, include_descendants=, limit=, offset=, response_mode=). For several phenotypes and/or a candidate gene list at once, use score_genes_for_phenotypes instead of looping over single-term calls.

get_phenotypes_for_diseaseB

Return the HPO phenotype terms annotated to a disease CURIE (e.g. OMIM:106210, ORPHA:550). Signature: get_phenotypes_for_disease(disease_id, limit=, offset=, response_mode=).

get_diseases_for_phenotypeA

Return diseases annotated to an HPO phenotype term, optionally expanded to include descendants. Signature: get_diseases_for_phenotype(hpo_id, include_descendants=, limit=, offset=, response_mode=).

get_genes_for_diseaseC

Return genes associated with a disease CURIE (e.g. OMIM:106210, ORPHA:550). Signature: get_genes_for_disease(disease_id, limit=, offset=, response_mode=).

get_diseases_for_geneC

Return diseases associated with a gene (symbol or NCBI id). Signature: get_diseases_for_gene(gene, limit=, offset=, response_mode=).

score_genes_for_phenotypesA

Rank genes for a set of HPO phenotype terms (Resnik similarity to annotated diseases); returns ranked candidate genes for a patient's phenotypes, each with score, best disease and matched term pairs (shared ancestor + IC); excluded terms are reported as conflicts, never scored. Every input HP id is scored as given, listed in replaced_hpo_ids (obsolete id or alt_id, scored as replaced_by) or listed in ignored_hpo_ids with a reason. close_call=true (with rank1_margin) means the top ranks are too close to pick rank 1 by score alone; close_call=false does not confirm rank 1. In minimal mode top_matches reads ' = ' for the same term, '~' for a related one, f=? when no frequency is recorded. Signature: score_genes_for_phenotypes(hpo_ids, excluded_hpo_ids=, candidate_genes=, limit=, offset=, response_mode=).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
capabilities
tools_overview
usage
reference
research_use
citation

TDQS

A3.7/5.0

Scored across 19 tools

Disambiguation4/5

Most tools have clearly distinct purposes: term navigation (children/parents/ancestors/descendants), annotation lookups in each direction, and resolution are well separated, and descriptions explicitly cross-reference the alternative tool to use. The main risk is the six inverse annotation pairs (get_phenotypes_for_gene vs get_genes_for_phenotype, etc.) and the resolve_term/resolve_terms_batch/search_terms/resolve_xref cluster, which are distinguishable but require reading descriptions carefully.

Naming Consistency5/5

All 19 tools use snake_case with a leading verb (resolve_, get_, search_, score_, map_) and a predictable noun phrase. The get_X_for_Y / get_Y_for_X inverse pairs are named symmetrically, which makes directionality explicit rather than confusing.

Tool Count4/5

19 tools is on the heavy side but each maps to a distinct operation: hierarchy traversal, annotation queries, resolution, scoring, and diagnostics. Nothing looks redundant enough to cut, though the four separate closure/child/parent tools could arguably be collapsed into one parameterized traversal tool.

Completeness4/5

The surface covers the full lifecycle: resolution, full-text search, hierarchy traversal, cross-ontology mapping, gene/disease/phenotype annotation in both directions, phenotype-driven gene ranking, and diagnostics/capabilities discovery. Minor gaps remain, such as no disease or gene name-based lookup (only CURIE/symbol input) and no batch get_term for multiple HP ids.

Maintenance

ActivityNo data
ResponsivenessOutdated data