# rag_search

Search for similar documents without generating context. Returns raw chunk data with scores.

Agent View of the PolicyLayer registry record for `rag_search`. HTML page: https://policylayer.com/tools/0xrdan-mcp-rag-server/rag-search

## Facts

- Tool: `rag_search`
- Server: MCP RAG Server (`0xrdan/mcp-rag-server`) — https://policylayer.com/tools/0xrdan-mcp-rag-server.md
- Homepage: https://github.com/0xrdan/mcp-rag-server
- Risk category: Read (Low risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "rag_search",
    "arguments": {}
  }
}
```

## Why rag_search is rated Low

The tool performs document retrieval and search operations ('search for similar documents', 'returns raw chunk data') which is a read-only operation. It queries the knowledge base but does not create, modify, delete, or execute any external operations.

From the tool's own definition: "Tool name: 'rag_search'. Description: 'Search for similar documents without generating context. Returns raw chunk data with scores.' This is a search/query operation that retrieves and returns data with no side effects."

## Use case

AI agents call rag_search to retrieve information from MCP RAG Server without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches MCP RAG Server:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "rag_search": {}
  }
}
```

## Other tools on MCP RAG Server (6)

- `clear_collection` — Destructive — https://policylayer.com/tools/0xrdan-mcp-rag-server/clear-collection.md
- `delete_by_source` — Destructive — https://policylayer.com/tools/0xrdan-mcp-rag-server/delete-by-source.md
- `get_stats` — Read — https://policylayer.com/tools/0xrdan-mcp-rag-server/get-stats.md
- `rag_query` — Read — https://policylayer.com/tools/0xrdan-mcp-rag-server/rag-query.md
- `index_document` — Write — https://policylayer.com/tools/0xrdan-mcp-rag-server/index-document.md
- `index_documents_batch` — Write — https://policylayer.com/tools/0xrdan-mcp-rag-server/index-documents-batch.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=0xrdan-mcp-rag-server · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/0xrdan-mcp-rag-server
