{"uid":"cap_2gp4cqeSMb4uwz6_OODzu","slug":"mcp-compiler-agentdiet-dev-web-url-distiller-dom-stripper-e83516a9","name":"Web URL Distiller (DOM Stripper)","description":"Distill a web URL into compact agent-ready tokens (Live x402 v2, IETF MPP & MCP endpoint at https://mcp-compiler.agentdiet.dev/v1/dom-stripper)","url":"https://mcp-compiler.agentdiet.dev/v1/dom-stripper?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"description":"Target webpage URL to distill (or builtin://stripe-docs)"},"mode":{"enum":["markdown","structured","skeleton","budget"],"type":"string","default":"markdown","description":"Extraction mode: markdown, structured, skeleton, or budget"},"query":{"type":"string","description":"BM25 focus query when mode=budget"},"max_tokens":{"type":"integer","minimum":20,"description":"Strict token ceiling when mode=budget"}}},"responseSchema":{"type":"object","required":["status","roi_proof","data"],"properties":{"data":{"type":"object","description":"Distilled Markdown, structured JSON tables/metadata, skeleton outline, or BM25 budget excerpt."},"cache":{"type":"object","properties":{"status":{"enum":["HIT","MISS"],"type":"string"},"cache_key":{"type":"string"},"latency_ms":{"type":"number"}}},"status":{"type":"string","description":"Execution status ('ok')"},"billing":{"type":"object","properties":{"agent_id":{"type":"string"},"payment_method":{"type":"string"},"fee_charged_usd":{"type":"number"}}},"roi_proof":{"type":"object","properties":{"raw_tokens":{"type":"integer"},"tokens_saved":{"type":"integer"},"roi_multiplier":{"type":"number"},"distilled_tokens":{"type":"integer"},"llm_cost_saved_usd":{"type":"number"},"compression_ratio_pct":{"type":"number"}}}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.001","displayCostAsset":"USD","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":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SPhcSlUroNQiVeM68bHE_","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"mcp-compiler.agentdiet.dev","brandSlug":"mcp-compiler-agentdiet-dev-mpp","brandBaseUrl":"https://mcp-compiler.agentdiet.dev","brandDocsUrl":null,"whatItDoes":"Fetches a web page and compresses it into compact, agent-ready tokens using markdown, structured, skeleton, or BM25 budget extraction modes.","exampleAgentPrompt":"Can you distill https://stripe.com/docs/payments/payment-intents into compact markdown so I can feed it to my agent without blowing through my token budget?","exampleUseCases":[{"title":"Compress docs page for agent context","prompt":"Distill https://docs.openai.com/api-reference into skeleton mode so I can get a token-efficient outline of the whole reference without hitting my context limit."},{"title":"Extract relevant section from long article","prompt":"Pull https://techcrunch.com/2024/05/01/ai-agents-explainer/ in budget mode with the query 'multi-agent coordination' and a max of 500 tokens — I just need the part that's relevant to that topic."},{"title":"Turn a product page into structured data","prompt":"Fetch https://www.notion.so/pricing and extract it in structured mode so I get the pricing table as clean JSON I can compare programmatically."}],"resultDescription":"Returns a distilled version of the target webpage in the requested format (markdown, structured JSON, skeleton outline, or BM25-focused excerpt), along with ROI proof metrics including raw token count, distilled token count, tokens saved, compression ratio percentage, estimated LLM cost saved in USD, and optional cache hit/miss status and billing info.","failureModes":["URL is unreachable or returns non-200 status — endpoint may return an error status","Target page is JavaScript-rendered and content is not accessible via server-side fetch","max_tokens is set too low to capture meaningful content","query parameter is missing when mode=budget, resulting in unfiltered output","Payment via x402 fails or is insufficient — request blocked with 402 response","Rate limiting or upstream block on the target domain"],"whenToPreferThis":"Choose this endpoint when you need to feed live web content to an LLM but want to minimize token usage and cost. It is especially useful when the target page is long or noisy (ads, navigation, boilerplate) and you only need the substantive content. The budget mode with BM25 query filtering is ideal when you need only the section of a page relevant to a specific topic. Prefer it over raw fetch-and-pass approaches whenever LLM context window size or per-token cost is a concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:21:46.334Z","isFirstParty":false,"canonicalSlug":"mcp-compiler-agentdiet-dev-web-url-distiller-dom-stripper-e83516a9"}