get_term_ancestors
Retrieve the ancestor terms (parents) of a specified term from ontologies in the OLS MCP Server. Input the term IRI and ontology identifier to receive a JSON-formatted list of hierarchical ancestors, optionally including obsolete terms.
Instructions
Get ancestor terms (parents) of a specific term.
Args: term_iri: The IRI of the term ontology: The ontology identifier include_obsolete: Include obsolete entities size: Maximum number of results
Returns: JSON formatted list of ancestor terms
Input Schema
Name | Required | Description | Default |
---|---|---|---|
include_obsolete | No | ||
ontology | Yes | ||
size | No | ||
term_iri | Yes |