Skip to main content
Glama

Web page to Markdown

page_to_markdown
Read-only

Fetches a web page and converts its main content into clean Markdown for LLM reading. Removes navigation, ads, scripts, and cookie banners, and returns title, word count, and truncation status.

Instructions

Fetch a web page and return its main content as clean Markdown (navigation, ads, scripts and cookie banners removed), ready for an LLM to read, with its title, word count and whether it was cut short: 20,000 characters by default, up to 100,000. Costs $0.002 per call.

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": "page_to_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPage URL, e.g. https://blog.cloudflare.com
max_charsNoMaximum Markdown length. Default 20000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest and does so well: it discloses the cleaning behavior (navigation, ads, scripts, cookie banners removed), the returned metadata (title, word count, truncation flag), the truncation limits, and the $0.002 per-call cost. Cost and truncation are exactly the behavioral traits annotations cannot express.

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?

One sentence, front-loaded with the verb and outcome, then trailing detail on cleaning, return fields, limits, and price. It is dense and slightly run-on with the colon-embedded numbers, but every clause carries information an agent would otherwise have to guess.

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

Completeness5/5

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

There is no output schema, yet the description enumerates the return shape (Markdown body plus title, word count, truncation indicator) and the truncation rules, which is precisely what an agent needs. For a two-parameter read-only fetch tool, nothing material is missing.

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?

Schema description coverage is 100%, with url and max_chars already documented including the default of 20000 and the 1000-100000 bounds. The description's mention of '20,000 characters by default, up to 100,000' restates the schema rather than adding new meaning, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Fetch a web page and return its main content as clean Markdown') plus the scope of what is stripped out. The word 'web page' implicitly separates it from the sibling document_to_markdown, but no sibling is named, so the differentiation is left to inference.

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

Usage Guidelines3/5

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

The phrase 'ready for an LLM to read' implies the use case (feeding page content to a model), but there is no explicit when-to-use or when-not-to-use guidance, and no routing against document_to_markdown or web_search. The agent must infer that this is for existing single pages rather than site search or document files.

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