Get EBI OLS4 term hierarchy
get_term_hierarchyRetrieve parents, children, ancestors, or descendants for an ontology term in EBI OLS4.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ontology_id": "<ontology_id>",
"short_form": "<short_form>"
},
"name": "get_term_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max related terms to return (default 10). | |
| relation | No | Hierarchy relation to traverse (default "parents"). | |
| short_form | Yes | Term short form or OBO ID (e.g. "MONDO_0005015", "GO_0008150"). | |
| ontology_id | Yes | Ontology ID (e.g. "mondo", "go", "hp"). |