Skip to main content
Glama

Get HPO Term

get_term
Read-onlyIdempotent

Retrieve a comprehensive HPO phenotype term record including definition, synonyms, hierarchy, cross-references, and obsolescence info. Accepts an HP id, label, synonym, or external xref CURIE.

Instructions

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). Pass fields=['synonyms', 'definition'] for a sparse projection. Signature: get_term(term, response_mode=, fields=).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYesAn HP id (HP:0000118), a phenotype label/synonym, or an external xref CURIE that resolves to a single HPO term.
response_modeNoVerbosity: minimal|compact|standard|full (default compact).compact
fieldsNoSparse fieldset: return ONLY these top-level keys (dot into a grouped object, e.g. 'xrefs.UMLS'). Identity anchors (hpo_id, name, hpo_version) are always included. Omit for the full payload.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successNo
_metaNo
error_codeNo
messageNo
retryableNo
recovery_actionNo
fieldNo
allowed_valuesNo
hintNo
candidatesNo
hpo_idNo
nameNo
definitionNo
synonymsNo
alt_idsNo
subsetsNo
parentsNo
childrenNo
obsoleteNo
hpo_versionNo
recommended_citationNo
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint. The description adds context about xref resolution and sparse projection via fields parameter. No contradictions with annotations.

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?

The description is two concise sentences plus a signature line, all front-loaded with the most important information. Every sentence is meaningful and adds value.

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?

The description covers what the tool returns, accepted inputs, and the fields parameter. Since an output schema exists, return format details are handled. The response_mode parameter is only mentioned in the signature but its purpose is clear from schema enum. Slightly more guidance on when to use different response_modes would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds significant value by explaining that term accepts an HP id, label, or xref CURIE (resolved first) and providing an example for sparse projection. This goes beyond the schema's basic descriptions.

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 'Return an HPO phenotype term record' and lists specific fields (definition, synonyms, alt_ids, etc.). It distinguishes this tool from sibling tools like get_term_ancestors and get_term_children by focusing on the full record retrieval.

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?

The description implies usage for getting a full term record and gives input flexibility (HP id, label, xref). However, it does not explicitly state when to use this tool versus siblings like search_terms or resolve_xref, leaving some ambiguity.

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