# RAG Context Sanitizer & MCP Tool Discovery Router

> RAG Context Sanitizer & MCP Tool Discovery Router is a paid API for AI agents from company-enrich.agentdiet.dev, paid per call via MPP, $0.01/call, status unknown (last checked 2026-10-21).

Searches an index of 500+ MCP servers and A2A tools by capability query and returns compressed, sanitized results via a prompt-guard firewall

## Facts

- Endpoint: GET https://company-enrich.agentdiet.dev/v1/workflows/rag-context-sanitizer?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Provider: company-enrich.agentdiet.dev
- Website: https://company-enrich.agentdiet.dev
- Canonical page: https://www.zero.xyz/c/company-enrich-agentdiet-dev-rag-context-sanitizer-mcp-tool-discovery-fe2b0919
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4ZeVPvrNgXlue22JX6ep7

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability company-enrich-agentdiet-dev-rag-context-sanitizer-mcp-tool-discovery-fe2b0919
```

Example prompt: Search the MCP tool index for servers that handle SEC filings or company enrichment — I need a sanitized, compressed list of what's available so I can route my next task.

## When to prefer this

Use this endpoint when an AI agent needs to dynamically discover which MCP servers or A2A tools are available for a given capability, rather than hardcoding tool lists. Especially useful when routing tasks at runtime, verifying endpoint compliance, or needing token-compressed tool summaries to stay within context limits.

## Known failure modes

- Empty query string returns a validation error
- No matching tools found for obscure or highly specific queries
- Prompt-Guard firewall may block or sanitize inputs it flags as unsafe
- Endpoint URL verification may return compliance failures for non-conformant targets
- HTTP 402 payment required if x402 payment header is missing or malformed

## How this service works

Single-connection meta-router indexing 500+ MCP servers & A2A tools with 85% token compression and Prompt-Guard firewall. (Live x402 v2, IETF MPP & MCP endpoint at https://company-enrich.agentdiet.dev/v1/workflows/rag-context-sanitizer)

## Output

Returns a compressed, prompt-guard-sanitized list of matching MCP servers or A2A tools relevant to the capability query, including tool metadata and routing information. Response is a generic JSON object with discovered endpoint results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "minLength": 1,
   "description": "Capability search query (e.g. 'context compression', 'github security', 'sec filings', 'company enrichment') or endpoint URL to verify"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/company-enrich-agentdiet-dev-rag-context-sanitizer-mcp-tool-discovery-fe2b0919/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from company-enrich.agentdiet.dev](https://www.zero.xyz/host/company-enrich.agentdiet.dev/llms.txt)
