{"uid":"cap_XTxRWfrKtWrgQNmrKSHO9","slug":"onchain-risk-agentdiet-dev-a2a-indirect-prompt-injection-jailbreak-f47b57ed","name":"A2A Indirect Prompt-Injection & Jailbreak Firewall","description":"Scans untrusted web pages, emails, MCP responses, or A2A payloads for hidden prompt injections and returns sanitized text. (Live x402 v2, IETF MPP & MCP endpoint at https://onchain-risk.agentdiet.dev/v1/workflows/rag-context-sanitizer)","url":"https://onchain-risk.agentdiet.dev/v1/workflows/rag-context-sanitizer?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"Untrusted text, HTML, or tool output to scan for hidden prompt injection or jailbreak payloads"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.005","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bwWlB2jB6rZPVk5RsTt9a","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"onchain-risk.agentdiet.dev","brandSlug":"onchain-risk-agentdiet-dev-mpp","brandBaseUrl":"https://onchain-risk.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Scans untrusted text, HTML, emails, MCP responses, or A2A payloads for hidden prompt injections and jailbreak attempts, returning sanitized text.","exampleAgentPrompt":"Before you feed that scraped webpage content into our RAG pipeline, run it through the prompt injection firewall and give me the sanitized version — I want to make sure there are no hidden instructions trying to hijack your behavior.","exampleUseCases":[{"title":"Sanitize scraped web content for RAG","prompt":"I just scraped a bunch of web pages to use as context for our agent — can you scan each one for hidden prompt injections and give me the cleaned text before we index it?"},{"title":"Screen incoming email for jailbreak payloads","prompt":"Before my email-reading agent processes this message from an unknown sender, check it for any hidden prompt injection or jailbreak instructions and strip them out."},{"title":"Validate MCP tool response before execution","prompt":"My agent just got back a response from an external MCP tool and I'm not sure I trust it — can you run it through the prompt injection firewall to make sure it's not trying to override my agent's instructions?"}],"resultDescription":"Returns a sanitized version of the input text with hidden prompt injection and jailbreak payloads removed or neutralized, along with detection metadata indicating whether adversarial content was found.","failureModes":["Empty or missing 'text' field returns a 400 validation error","Payloads that are extremely long may be truncated or rejected","Ambiguous injection patterns may produce false positives, over-sanitizing legitimate content","Service may return 402 Payment Required if USDC payment is not attached or insufficient","Network timeouts if the scanning model is under load"],"whenToPreferThis":"Choose this endpoint when your agent pipeline ingests untrusted external content — scraped web pages, emails, MCP tool responses, A2A messages, or RAG context — and you need to detect and strip hidden prompt injections or jailbreak instructions before they reach your LLM. It is especially valuable in autonomous agent workflows where adversarial third-party content could hijack agent behavior.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T06:34:50.732Z","isFirstParty":false,"canonicalSlug":"onchain-risk-agentdiet-dev-a2a-indirect-prompt-injection-jailbreak-cf120aa3"}