{"uid":"cap_ul0dftgiE_-IqDaXDlwRM","slug":"mcp-compiler-agentdiet-dev-web-url-markdown-distiller-9c3f1390","name":"Web URL Markdown Distiller","description":"Distill a web URL into compact agent-ready tokens (Live x402 v2, IETF MPP & MCP endpoint at https://mcp-compiler.agentdiet.dev/v1/markdown-distill)","url":"https://mcp-compiler.agentdiet.dev/v1/markdown-distill?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_JeEXk5y6aLLu07y6CSadR","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 webpage and distills it into compact, token-efficient agent-ready content in markdown, structured, skeleton, or BM25-budget-focused modes.","exampleAgentPrompt":"Can you distill https://docs.stripe.com/payments/accept-a-payment into compact markdown so I can read it without burning through too many tokens — use budget mode focused on 'payment intents' and cap it at 500 tokens?","exampleUseCases":[{"title":"Summarize documentation for agent context","prompt":"Pull the Stripe docs page at https://stripe.com/docs/api/charges and distill it into structured markdown mode so I can inject it into my agent's context window efficiently."},{"title":"Topic-focused excerpt from a news article","prompt":"Fetch https://techcrunch.com/2024/05/01/openai-latest/ in budget mode, focus the BM25 query on 'GPT-5 release date', and limit the output to 300 tokens."},{"title":"Extract page outline for navigation","prompt":"Give me the skeleton outline of https://platform.openai.com/docs/guides/function-calling so I can see the document structure without loading the full content."}],"resultDescription":"Returns a data object containing distilled page content in the requested mode (markdown, structured JSON tables/metadata, skeleton outline, or BM25-focused budget excerpt), plus an roi_proof block showing raw vs. distilled token counts, compression ratio, tokens saved, and estimated LLM cost saved. Also includes optional cache status and billing details.","failureModes":["Invalid or unreachable URL — endpoint cannot fetch the page and returns an error status","URL returns non-HTML content (e.g. binary file) — distillation may fail or return empty data","max_tokens too low (below 20) — rejected by schema validation","BM25 query provided without mode=budget — query parameter may be ignored","Paywalled or JavaScript-heavy pages — content may be incomplete or empty","Payment not included or insufficient — HTTP 402 returned requiring x402 micropayment"],"whenToPreferThis":"Choose this endpoint when an agent needs to read or process a webpage but token budget is a concern — especially in multi-step pipelines where injecting raw HTML or full page markdown would be too expensive. It is purpose-built for agent workflows, returning ROI metrics alongside content, and supports multiple extraction modes (full markdown, structured tables, document skeleton, or BM25-focused budget excerpts) making it more versatile than a plain web scraper. Prefer it over generic scraping tools when you need token-efficient, clean, agent-ready output with built-in compression telemetry.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T07:21:29.942Z","isFirstParty":false,"canonicalSlug":"mcp-compiler-agentdiet-dev-web-url-markdown-distiller-9c3f1390"}