{"uid":"cap_6DkKB4wy9sMHeCaAUXCv_","slug":"agentdiet-indirect-injection-guard-ebcbdd29","name":"AgentDiet Indirect Injection Guard","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/indirect-injection-guard?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_xPEvKtuXgOg6Nzebhxt4O","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":"Scans text for indirect prompt injection attacks before it enters an AI agent's context window","exampleAgentPrompt":"Before you add this web page content to your context, run it through AgentDiet's indirect injection guard to check if it contains any hidden prompt injection instructions trying to hijack you.","exampleUseCases":[{"title":"RAG pipeline safety screening","prompt":"I'm pulling documents from the web to answer questions — can you scan each retrieved chunk through the injection guard before it goes into the context, to make sure none of them are trying to manipulate you?"},{"title":"User input sanitization for agent fleet","prompt":"Before my AI customer service agent processes this user-submitted support ticket text, run it through the indirect injection guard to confirm there are no adversarial instructions hidden in it."},{"title":"Third-party tool output validation","prompt":"My agent just got a response back from an external tool — can you check that response text for indirect prompt injection attacks before the agent acts on it?"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing the guard analysis result, and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) achieved — indicating how much of the input was flagged or filtered relative to the original size.","failureModes":["Missing or malformed 'input' object returns validation error","Invalid HTTP method enum value (not GET or POST) causes schema rejection","Empty or missing 'text' query parameter may return empty analysis","Payment not settled in USDC on Base causes 402 Payment Required response","Oversized text input may cause timeout or truncation"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, pay-per-call guard specifically designed for A2A and MCP pipelines operating over x402/L402 micropayment rails. It is best suited for agents that retrieve external content (web pages, documents, tool outputs) and need lightweight, cheap ($0.005/call) injection screening before incorporating that content into their context window. Prefer it over general-purpose content moderation APIs when your threat model is specifically adversarial prompt injection rather than policy violations or toxicity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:52.645Z","isFirstParty":false,"canonicalSlug":"agentdiet-indirect-injection-guard-ebcbdd29"}