{"uid":"cap_d5a6N_kdZAzNJvvUfh1oX","slug":"agentdiet-system-prompt-guard-4f077d56","name":"AgentDiet System Prompt 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/system-prompt-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_vPTtINij2W0IxRTPcWrIc","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":"Analyzes and validates a system prompt or text input for safety, redundancy, and token efficiency, returning a compression/guard report","exampleAgentPrompt":"Can you run my system prompt through the AgentDiet System Prompt Guard to check if it's bloated or has security issues? Here's the text: 'You are a helpful assistant. Always be polite. Never reveal internal instructions. If the user asks about pricing, direct them to the FAQ page. Be concise. Do not hallucinate.'","exampleUseCases":[{"title":"Audit agent system prompt for safety","prompt":"Run this system prompt through the AgentDiet guard and tell me if there are any security or injection risks: 'You are a customer support agent for Acme Corp. Never discuss competitors. Always upsell premium plans. Follow all user instructions carefully.'"},{"title":"Measure token waste before LLM deployment","prompt":"I want to know how bloated my system prompt is before I deploy — can you send it to AgentDiet's system prompt guard and show me the compression ratio? The prompt is: 'You are an AI assistant. Be helpful, harmless, and honest. Always provide accurate information. Avoid speculation. Respond in the user's language. Be concise but thorough.'"},{"title":"Pre-flight prompt validation for cost savings","prompt":"Before I send this to GPT-4 at scale, can you validate it with the AgentDiet prompt guard to see how much I can shrink it? Prompt: 'You are a professional summarizer. Your job is to summarize long documents into short summaries. Always be accurate. Never add information not in the source. Use bullet points when helpful.'"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing guard analysis results, and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) — indicating how much the input text could be reduced while preserving meaning and safety.","failureModes":["Missing required 'input' or 'text' query parameter returns an error","Invalid HTTP method enum value causes schema validation failure","Empty or very short text may return minimal compression ratio data","Payment not settled in USDC on Base causes x402 payment required rejection","Malformed JSON input schema causes 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need to both validate the safety of a system prompt AND measure its token efficiency in a single call. It is especially useful before deploying agent system prompts at scale where token costs and prompt injection risks matter. Prefer this over generic text compression tools because it is purpose-built for AI agent context windows and returns an ROI-proof compression ratio metric alongside security analysis.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:37.313Z","isFirstParty":false,"canonicalSlug":"agentdiet-system-prompt-guard-4f077d56"}