
Detailed parameter documentation for every MCP tool.
Complete reference for each MCP tool with parameters, examples, and response formats.
Search your document index for relevant chunks.
| Parameter | Type | Default | Description |
|---|---|---|---|
queryrequired | string | — | Search query text |
k | integer | — | Number of results to return (default: 10) |
threshold | float | — | Min similarity score (0-1, default: 0.5) |
document_ids | list[string] | — | Optional list of document IDs to filter search (default: null) |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "rag_search",
"arguments": {
"query": "What is the return policy?",
"k": 5,
"threshold": 0.7
}
}
}{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"text": "Our return policy allows returns within 30 days...",
"score": 0.92,
"document_id": "doc_abc123",
"document_name": "policies.pdf"
}
],
"metadata": {
"chunks_retrieved": 5,
"processing_time_ms": 234
}
}
}Upload a document to your project (processing happens separately).
| Parameter | Type | Default | Description |
|---|---|---|---|
file_pathrequired | string | — | Path to the document file |
file_namerequired | string | — | Name of the file |
content_type | string | — | MIME type of the file (default: application/octet-stream) |
config | object | — | Optional processing config: preprocessing, chunking, embedding (default: null) |
metadata | object | — | Optional metadata for the document (default: null) |
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "upload_document",
"arguments": {
"file_path": "./policies.pdf",
"file_name": "policies.pdf",
"content_type": "application/pdf"
}
}
}{
"jsonrpc": "2.0",
"id": 2,
"result": {
"document_id": "doc_xyz789",
"filename": "policies.pdf",
"status": "uploaded",
"message": "Document uploaded successfully."
}
}Upload a document and immediately start processing.
| Parameter | Type | Default | Description |
|---|---|---|---|
file_pathrequired | string | — | Path to the document file |
file_namerequired | string | — | Name of the file |
content_type | string | — | MIME type of the file (default: application/octet-stream) |
config | object | — | Optional processing config: preprocessing, chunking, embedding (default: null) |
metadata | object | — | Optional metadata for the document (default: null) |
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "upload_and_process",
"arguments": {
"file_path": "./policies.pdf",
"file_name": "policies.pdf",
"content_type": "application/pdf",
"config": {
"chunking": { "chunk_size": 512, "chunk_overlap": 50 }
}
}
}
}{
"jsonrpc": "2.0",
"id": 3,
"result": {
"document_id": "doc_xyz789",
"filename": "policies.pdf",
"status": "processing",
"chunks_created": 42,
"message": "Document uploaded and processing started."
}
}Use upload_and_process for single documents. Use upload_document when batching multiple files before triggering processing.