get_term_ancestors
Retrieve parent terms of a specific term in a given ontology using the OLS MCP Server. Input the term's IRI and ontology identifier to receive JSON-formatted ancestor terms, with options to include obsolete entities and set result size.
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 |