{"uid":"cap_C5UEZAGOoTMlnDX1iFWzf","slug":"agentdiet-semantic-distillation-5d87f219","name":"AgentDiet Semantic Distillation","description":"AgentDiet Semantic Distillation (/v1/distill) — Strips 85-97% of HTML token bloat (https://mcp-gateway.agentdiet.dev/v1/distill)","url":"https://mcp-gateway.agentdiet.dev/v1/distill?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_HX7xEk1hEzHON8FxewH7y","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 strips 85-97% of HTML token bloat, returning semantically distilled content for AI agents","exampleAgentPrompt":"Fetch https://en.wikipedia.org/wiki/Artificial_intelligence and strip out all the HTML bloat so I get back just the meaningful text content — I want the distilled version to minimize tokens.","exampleUseCases":[{"title":"Cheap LLM web research pipeline","prompt":"Pull this product page — https://www.example.com/product/42 — and distill it down to just the meaningful content so I can feed it into GPT-4 without burning thousands of tokens on nav bars and scripts."},{"title":"Agent reading a news article","prompt":"Fetch https://www.reuters.com/technology/ai/ and give me the semantically cleaned version — I only want the actual article text, not all the HTML junk around it."},{"title":"Competitor pricing page extraction","prompt":"Grab https://competitor.io/pricing and distill it so I can compare their pricing tiers without wading through all the HTML boilerplate — just the core content please."}],"resultDescription":"A JSON object with a `data` field containing the distilled semantic content of the fetched URL, a `status` field indicating success, and a `roi_proof` object showing the compression ratio achieved (e.g. 91.4% token reduction).","failureModes":["Invalid or unreachable URL returns an error status","Target URL blocks bots or returns 403/429, resulting in failed fetch","Malformed input schema (missing required `type` or `method` fields) causes validation error","Payment failure via x402 protocol prevents execution","Very dynamic JavaScript-rendered pages may yield incomplete distillation"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to fetch and process web content but wants to minimize LLM token consumption — ideal for research pipelines, agentic browsing, or any workflow where raw HTML would overwhelm a context window. Particularly useful when cost-efficiency matters and the agent needs clean, readable text rather than structured data extraction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:29.266Z","isFirstParty":false,"canonicalSlug":"agentdiet-semantic-distillation-5d87f219"}