search_ontology_terms
Search across BioPortal ontologies to find ontology terms by query. Retrieve term IDs, labels, ontologies, and URLs.
Instructions
Search for ontology terms in BioPortal.
This function searches across BioPortal ontologies for terms matching the given query. It returns a list of tuples containing the term ID, preferred label, ontology, and ontology URL.
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": {
"query": "<query>"
},
"name": "search_ontology_terms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The search term (e.g., "melanoma", "breast cancer", "neuron"). | |
| api_key | No | BioPortal API key. If not provided, uses BIOPORTAL_API_KEY environment variable. | |
| ontologies | No | Comma-separated list of ontology acronyms to search in (e.g., "NCIT,GO,HP"). If None, searches across all ontologies. | |
| max_results | No | Maximum number of results to return (default: 10). | |
| require_exact_match | No | If True, only return exact matches (default: False). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |