get_ontology_class_tree
Retrieve the hierarchical tree structure for an ontology class, showing its ancestor path and sibling nodes to understand its position in the ontology hierarchy.
Instructions
Fetch the hierarchical tree structure for a given class in an ontology.
Use this tool to retrieve the ancestor path and sibling nodes for a specific class IRI in a BioPortal ontology. This is useful for understanding where a term sits in the ontology hierarchy.
Args: class_iri: IRI of the class to get the tree for (e.g., "http://purl.obolibrary.org/obo/MONDO_0005180") ontology_acronym: Ontology acronym to search within (e.g., "MONDO", "CHEBI")
Returns: BioPortal response containing the class tree hierarchy
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": {
"class_iri": "<class_iri>",
"ontology_acronym": "<ontology_acronym>"
},
"name": "get_ontology_class_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class_iri | Yes | ||
| ontology_acronym | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||