
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 (1-1000 chars) |
limit | integer | — | Results to return (1-20, default: 5) |
threshold | float | — | Min similarity score (0-1, default: 0.7) |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "rag_search",
"arguments": {
"query": "What is the return policy?",
"limit": 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 | — | Local path to the document file |
project_idrequired | string | — | Target project ID |
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "upload_document",
"arguments": {
"file_path": "./policies.pdf",
"project_id": "proj_abc123"
}
}
}{
"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 | — | Local path to the document file |
project_idrequired | string | — | Target project ID |
chunk_size | integer | — | Override chunk size (default: project setting) |
chunk_overlap | integer | — | Override chunk overlap (default: project setting) |
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "upload_and_process",
"arguments": {
"file_path": "./policies.pdf",
"project_id": "proj_abc123",
"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.