Logo IconGuided Mind
v2.4Sign In
Integration

MCP Per Tool

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.

Parameters

ParameterTypeDefaultDescription
queryrequiredstringSearch query (1-1000 chars)
limitintegerResults to return (1-20, default: 5)
thresholdfloatMin similarity score (0-1, default: 0.7)

Example Call

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "rag_search",
    "arguments": {
      "query": "What is the return policy?",
      "limit": 5,
      "threshold": 0.7
    }
  }
}

Example Response

{
  "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_document

Upload a document to your project (processing happens separately).

Parameters

ParameterTypeDefaultDescription
file_pathrequiredstringLocal path to the document file
project_idrequiredstringTarget project ID

Example Call

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "upload_document",
    "arguments": {
      "file_path": "./policies.pdf",
      "project_id": "proj_abc123"
    }
  }
}

Example Response

{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {
    "document_id": "doc_xyz789",
    "filename": "policies.pdf",
    "status": "uploaded",
    "message": "Document uploaded successfully."
  }
}

upload_and_process

Upload a document and immediately start processing.

Parameters

ParameterTypeDefaultDescription
file_pathrequiredstringLocal path to the document file
project_idrequiredstringTarget project ID
chunk_sizeintegerOverride chunk size (default: project setting)
chunk_overlapintegerOverride chunk overlap (default: project setting)

Example Call

{
  "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
    }
  }
}

Example Response

{
  "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.