Skip to main content
Glama

BioContextAI Knowledgebase MCP

Official

bc_get_term_hierarchical_children

Retrieve hierarchical children of a specific ontology term, including subclasses and 'part of' relationships, from the Ontology Lookup Service (OLS). Useful for exploring term dependencies and structure in biomedical ontologies.

Instructions

Query the Ontology Lookup Service (OLS) for hierarchical children of a term.

This function retrieves the hierarchical children of a specific ontology term, including subclasses and terms related via hierarchical properties like 'part of'.

Args: term_id (str): The term ID in CURIE format (e.g., "EFO:0000001"). ontology_id (str): The ontology ID (e.g., "efo"). size (int): Maximum number of children to return (default: 20).

Returns: dict: Dictionary containing hierarchical children or error message

Input Schema

NameRequiredDescriptionDefault
ontology_idYesThe ontology ID where the term is defined (e.g., 'efo', 'go', 'chebi')
sizeNoThe maximum number of children to return
term_idYesThe term ID (CURIE) to get children for (e.g., 'EFO:0000001', 'GO:0008150')

Input Schema (JSON Schema)

{ "properties": { "ontology_id": { "description": "The ontology ID where the term is defined (e.g., 'efo', 'go', 'chebi')", "title": "Ontology Id", "type": "string" }, "size": { "default": 20, "description": "The maximum number of children to return", "title": "Size", "type": "integer" }, "term_id": { "description": "The term ID (CURIE) to get children for (e.g., 'EFO:0000001', 'GO:0008150')", "title": "Term Id", "type": "string" } }, "required": [ "term_id", "ontology_id" ], "type": "object" }

Other Tools from BioContextAI Knowledgebase MCP

Related Tools

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/biocontext-ai/knowledgebase-mcp'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server