query_knowledge_graph
Search a knowledge graph using various strategies—semantic, keyword, hybrid—to answer questions from indexed data.
Instructions
Search the knowledge graph for information using various strategies. Ideal for answering questions based on indexed data.
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": {
"prompt": "<prompt>"
},
"name": "query_knowledge_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The question or search query to execute against the knowledge base | |
| search_mode | No | Search strategy to use: 'mix' (recommended for comprehensive results), 'semantic' (vector search), 'keyword' (exact match), 'global' (broad context), 'hybrid' (semantic + keyword), 'local' (specific context), 'naive' (simple) | mix |
| limit | No | Maximum number of result items/paragraphs to retrieve | |
| context_only | No | If True, returns only the raw context data without LLM generation | |
| prompt_only | No | If True, returns only the constructed LLM prompt without executing it to the LLM |