get_hierarchy
Retrieve hierarchical relationships (parents, children, ancestors, descendants) for an ontology term using its CURIE, with configurable traversal depth.
Instructions
Get hierarchical relationships for a term (parents, children, ancestors, descendants).
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": {
"curie": "<curie>"
},
"name": "get_hierarchy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curie | Yes | Ontology term CURIE | |
| relation | No | Type of relationship to retrieve | parents |
| depth | No | How many levels to traverse (1-5) |