onto_search
Retrieve ontology classes semantically similar to a natural language query, using text meaning, structural position, or both. Requires precomputed embeddings for accurate results.
Instructions
Semantic search over the loaded ontology using natural language. Returns the most similar classes by text meaning, structural position, or both. Requires onto_embed to have been run first.
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": "onto_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Search mode: "text", "structure", or "product". Default: "product" | |
| alpha | No | Weight for text vs structure in product mode (0.0-1.0). Default: 0.5 | |
| query | Yes | Natural language query | |
| top_k | No | Number of results. Default: 10 |