Skip to main content
Glama

Extract Clean Byte-0 Markdown & Schema Tables from URL

extract_byte0_markdown
Read-onlyIdempotent

Converts live web pages into clean Byte-0 Markdown by stripping React/Next.js hydration scripts, DOM bloat, inline SVGs, and CSS so LLM contexts stay within token limits.

Instructions

Fetches a live web page and strips React/Next.js hydration scripts, Shopify Liquid/WordPress DOM bloat, and inline SVGs/CSS, returning clean Byte-0 GitHub-Flavored Markdown (GFM) with front-loaded YAML metadata and Schema.org entity tables. Use this tool when you need to read the actual text or pricing table of a web page inside an LLM context window without exceeding the 25,000-token RAG truncation limit. Do not use this tool if you need a pass/fail AI readiness score or robots.txt check (use audit_ai_readiness instead) or if you need /.well-known/ai-catalog.json templates (use generate_ai_manifests instead). Read-only HTTP extraction; requires no API key.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "extract_byte0_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesSpecific web page URL to convert into Byte-0 Markdown (e.g., "https://vercel.com/pricing"). Unlike generate_ai_manifests, the full URL path and query string are preserved so the exact subpage is fetched and compacted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.8
    • changedInput schema / properties / url / description
      Previous value: -"Fully qualified URL of the web page to convert into Byte-0 Markdown (e.g., \"https://vercel.com/pricing\")."New value: +"Specific web page URL to convert into Byte-0 Markdown (e.g., \"https://vercel.com/pricing\"). Unlike generate_ai_manifests, the full URL path and query string are preserved so the exact subpage is fetched and compacted."
  2. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already state readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds behavior the annotations don't: which page elements get stripped (hydration scripts, Shopify Liquid/WordPress DOM bloat, inline SVG/CSS) and that no API key is required. It doesn't cover failure modes or rate limits, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences and leads with what the tool does, then when to use it, then when not to. The stack-by-stack list of stripped page elements is slightly marketing-heavy, but each clause adds information, so it stays close to earned.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Because there is no output schema, the description has to explain the return value, and it does: GFM with YAML front matter and Schema.org tables, sized to fit the context window. Nothing about errors, very large pages, or authentication beyond "no API key" is covered, which is a small gap for a tool this simple.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is only one parameter and its schema description coverage is 100%: the schema already explains that the full path and query string are preserved, unlike generate_ai_manifests. The description adds no syntax, validation, or default details beyond that, so the baseline of 3 is right.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Fetches a live web page") and states the exact transformation and output format (Byte-0 GFM with front-loaded YAML metadata and Schema.org entity tables). That level of specificity lets an agent distinguish it from audit_ai_readiness and generate_ai_manifests without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the positive trigger (reading page text or a pricing table into an LLM context window under the 25,000-token RAG limit) and names two exclusions with the sibling to use instead for each: audit_ai_readiness for readiness/robots.txt, generate_ai_manifests for ai-catalog.json templates. Routing is explicit in both directions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.