query_tool
Get answers from indexed documents using natural language queries. Search PDFs, YouTube videos, GitHub repos, and Discord exports with RAG-powered responses that include source citations.
Instructions
Query indexed documents and return an answer with citations.
Searches through all indexed documents (PDF, Discord, etc.) and uses RAG
to provide an answer based on retrieved context, with source citations.
Args:
query: Natural language question to ask.
document_id: Optional document ID to filter retrieval (from list_documents).
page_min: Optional start of page range (inclusive). PDF only.
page_max: Optional end of page range (inclusive). PDF only.
tag: Optional tag to filter retrieval (from list_documents).
document_type: Optional type to filter: "pdf", "youtube", "discord", "github", or "plaintext".
file_path: Optional file path within a document (GitHub: e.g. src/ria/api/atr.c). Use list_documents to see files.
response_style: Answer style: "thorough" (detailed) or "concise" (default: "thorough").
ctx: MCP request context (injected by the server; unused).
Returns:
Dictionary containing answer and sources (document_id, page).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Natural language question to ask. | |
| document_id | No | Optional document ID to filter retrieval (from list_documents). | |
| page_min | No | Optional start of page range (inclusive). PDF only. | |
| page_max | No | Optional end of page range (inclusive). PDF only. | |
| tag | No | Optional tag to filter retrieval (from list_documents). | |
| document_type | No | Optional type to filter: 'pdf', 'youtube', 'discord', 'github', or 'plaintext'. | |
| file_path | No | Optional file path within a document (GitHub: e.g. src/ria/api/atr.c). Use list_documents to see files. | |
| response_style | No | Answer style: 'thorough' (detailed) or 'concise'. | thorough |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |