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 |
Input Schema (JSON Schema)
{
"properties": {
"include_obsolete": {
"default": false,
"title": "Include Obsolete",
"type": "boolean"
},
"ontology": {
"title": "Ontology",
"type": "string"
},
"size": {
"default": 20,
"title": "Size",
"type": "integer"
},
"term_iri": {
"title": "Term Iri",
"type": "string"
}
},
"required": [
"term_iri",
"ontology"
],
"type": "object"
}