{"uid":"cap_W323Tn62FvnnrhmPq5DOc","slug":"agentdiet-rag-poison-shield-bc4153e9","name":"AgentDiet RAG Poison Shield","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/rag-poison-shield?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"text":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SRDGnkMuYKZjvGlZiTDlt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects and filters prompt injection and RAG poisoning attacks from text before it enters an agent's context window","exampleAgentPrompt":"Before you add these retrieved web snippets to your context, run them through AgentDiet's RAG Poison Shield to check for any prompt injection or adversarial instructions hidden inside the text.","exampleUseCases":[{"title":"RAG pipeline injection screening","prompt":"I'm building a RAG app that pulls from external websites — can you scan this retrieved chunk for any hidden prompt injection or adversarial instructions before I put it in the context window?"},{"title":"Agent tool output sanitization","prompt":"My agent just got back a response from a third-party API and I'm worried it might contain embedded jailbreak instructions — can you run it through the poison shield to verify it's safe before proceeding?"},{"title":"Document corpus security audit","prompt":"I'm loading user-uploaded PDFs into my vector database and want to make sure none of them contain adversarial payloads that could hijack my AI — can you screen this document text for RAG poisoning attacks?"}],"resultDescription":"Returns a JSON object with a status field ('ok' or otherwise), a data payload containing the analysis result, and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) demonstrating how much bloat was removed alongside the safety verdict.","failureModes":["Missing required 'input' object returns validation error","Invalid HTTP method enum value causes rejection","Text parameter absent results in empty or default scan","Payment not settled in USDC on Base causes 402 response","Malformed JSON input schema causes 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, per-call security check on text entering an agent's context window or RAG pipeline — especially when sourcing content from untrusted external websites, user uploads, or third-party APIs. Prefer it over generic content moderation APIs when the threat model is specifically prompt injection, context hijacking, or adversarial RAG poisoning rather than general harmful content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:58.494Z","isFirstParty":false,"canonicalSlug":"agentdiet-rag-poison-shield-bc4153e9"}