{"uid":"cap_h-GIaK6MvTwJKlaqsk6ZR","slug":"agentdiet-mcp-gateway-system-prompt-guard-d0a0fd35","name":"AgentDiet MCP Gateway System Prompt Guard","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.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_pJqZAj9HZWHFeiQ5WljPI","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":"Validates and compresses a system prompt text, returning a sanitized version with compression ratio metrics.","exampleAgentPrompt":"Can you run my system prompt text through the system prompt guard to check it for issues and tell me how much it can be compressed? Here's the text: 'You are a helpful customer support agent for Acme Corp. Never reveal internal pricing. Always respond in English.'","exampleUseCases":[{"title":"Pre-deployment system prompt validation","prompt":"Before I deploy this new agent, run its system prompt through the prompt guard and tell me the compression ratio and whether it looks clean: 'You are an expert financial advisor. Never give specific investment advice. Always recommend consulting a licensed professional.'"},{"title":"Token cost reduction for verbose prompts","prompt":"My system prompt is really long and costing me a lot in tokens — can you pass this text through the prompt guard to see how much it compresses? 'You are a highly skilled, empathetic, and detail-oriented customer service representative working for GlobalShop Inc., an e-commerce platform...'"},{"title":"Security check before A2A agent handoff","prompt":"I'm about to hand off this system prompt to another agent in my pipeline — can you validate it through the system prompt guard first to make sure it's safe? The text is: 'You are an autonomous purchasing agent authorized to place orders up to $500 without human approval.'"}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing the processed/sanitized prompt output, and an roi_proof object that includes a compression_ratio_pct value (e.g. 91.4) indicating how much the input was compressed.","failureModes":["Missing required 'input' field returns validation error","Invalid 'type' value (must be 'http') causes schema rejection","Unsupported HTTP method enum value returns error","Empty or missing 'text' query parameter may return empty or minimal data output","Payment failure (insufficient USDC balance) returns HTTP 402","Malformed JSON body returns parse error"],"whenToPreferThis":"Choose this endpoint when you need to validate, sanitize, or compress a system prompt before deploying it in an AI agent pipeline, especially when operating within an x402/MCP infrastructure that settles in USDC on Base. It is particularly useful when token cost reduction is a priority (high compression ratios reported) or when you need a quick guard check before passing a system prompt to a downstream LLM or agent. Prefer this over generic text compression tools when you specifically need prompt-aware sanitization with ROI metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:28.184Z","isFirstParty":false,"canonicalSlug":"agentdiet-mcp-gateway-system-prompt-guard-d0a0fd35"}