{"uid":"cap_N6-SjXszFqRj8ItsBEcRj","slug":"agentdiet-mcp-gateway-clean-html-9993f8ad","name":"AgentDiet MCP Gateway – Clean HTML","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/clean-html?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":{"url":{"type":"string"},"mode":{"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.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YFtBoihMuLEaG4GdFwrNO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and returns stripped, compressed clean HTML by removing boilerplate, scripts, and styling for efficient agent consumption.","exampleAgentPrompt":"Fetch the page at https://example.com/article and give me clean HTML with all the scripts, ads, and styling stripped out so I can read the actual content.","exampleUseCases":[{"title":"Agent reads news article content","prompt":"Go to https://techcrunch.com/2024/01/15/openai-news and fetch clean HTML so I can read just the article text without all the ads and navigation junk."},{"title":"LLM pipeline pre-processing web page","prompt":"I need you to pull the HTML from https://docs.python.org/3/library/os.html and clean it up — remove all the scripts, stylesheets, and sidebars so only the documentation content remains."},{"title":"Comparing product pages for research","prompt":"Fetch https://www.bestbuy.com/product/iphone-16 and return clean, compressed HTML — I want to extract the product specs without dealing with the full page bloat."}],"resultDescription":"Returns a JSON object with a 'data' field containing the cleaned HTML, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) indicating how much of the original HTML was removed.","failureModes":["Target URL is unreachable or returns non-200 status — upstream HTTP error propagated","URL parameter missing or malformed — schema validation error","Target site blocks bots or returns CAPTCHA — empty or garbled data field","Very large pages may hit size or timeout limits","Non-HTML content types (PDF, binary) may return unexpected output"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to fetch and process a webpage's content without dealing with the noise of full HTML — scripts, ads, navigation, and styling. It is ideal when token efficiency matters (91%+ compression) and the downstream consumer is an LLM or agent pipeline. Prefer this over raw HTTP fetching when you want clean, readable HTML without building your own parser, and when paying $0.001 USDC per call via x402 on Base is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:55.235Z","isFirstParty":false,"canonicalSlug":"agentdiet-mcp-gateway-clean-html-9993f8ad"}