{"uid":"cap_fAX42BTqnaGjB4b64epJe","slug":"agentdiet-system-prompt-guard-4e658ad4","name":"AgentDiet System Prompt Guard","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.","url":"https://status.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_waaiS0NVWuzd5VJWMVmaR","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 and guards system prompts for token bloat, compressing and distilling context to reduce token usage by up to 91%","exampleAgentPrompt":"Can you run my system prompt through AgentDiet's system prompt guard to compress it and tell me the compression ratio — here's the text: 'You are a helpful assistant that manages customer support tickets, escalates issues, tracks SLAs, generates reports, and coordinates with engineering teams...'","exampleUseCases":[{"title":"Trim bloated agent system prompt","prompt":"My AI agent's system prompt is over 3,000 tokens and I'm hitting context limits — can you pass it through the system prompt guard and compress it down as much as possible, then tell me how much I saved?"},{"title":"Pre-flight prompt audit before deployment","prompt":"Before I deploy this new customer service agent, run its system prompt through AgentDiet's guard to check for token bloat and show me the compression ratio so I know if it needs trimming."},{"title":"Cost reduction check for high-volume agent","prompt":"I'm running thousands of LLM calls a day and my system prompt is eating 40% of my context window — can you distill this prompt text and tell me what percentage of tokens I can cut?"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing the compressed or guarded prompt output, and an roi_proof object showing the compression_ratio_pct (e.g. 91.4%) achieved by the distillation process.","failureModes":["Missing required 'input' field returns validation error","Invalid method enum value (not GET or POST) causes rejection","Empty or missing 'text' query parameter may return unprocessed result","Payment not settled in USDC on Base causes 402 response","Oversized prompt text may hit payload limits"],"whenToPreferThis":"Choose this endpoint when you need to reduce token consumption in AI agent system prompts or context windows, especially before high-volume deployments where per-call LLM costs matter. It is particularly useful when system prompts have grown organically and contain redundant instructions, and you need a deterministic, measurable compression ratio rather than a manual edit. Prefer this over manual prompt editing when you need proof-of-ROI metrics or when operating within the x402 micropayment ecosystem on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:42:22.509Z","isFirstParty":false,"canonicalSlug":"agentdiet-system-prompt-guard-4e658ad4"}