Skip to main content
Glama

url_to_markdown

Fetch a web page and convert its real content to clean Markdown, including hidden tab panels and tables, with nav/footer stripped and a completeness report so missing content is never silent.

Instructions

Fetch a web page and convert its real content to clean Markdown: headings, paragraphs, links, images, lists, blockquotes, code blocks and tables, with nav/footer chrome stripped. Tabbed and collapsible panels (e.g. documentation tabs, ) are included in full - not just the visible panel - and the result carries a completeness report {panels_found, panels_included, truncated, notes} so missing or cut content is never silent. Without an API key the conversion runs locally; with PAGE2MD_RAPIDAPI_KEY set it uses the hosted Page2MD API on RapidAPI.

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

Input Schema

NameRequiredDescriptionDefault
urlYesThe page URL to convert (http/https).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does substantial work: it discloses that nav/footer chrome is stripped, that hidden tab and <details> content is included, that output carries a {panels_found, panels_included, truncated, notes} completeness report, and that PAGE2MD_RAPIDAPI_KEY switches between local conversion and the hosted RapidAPI service. What is missing is failure behavior — errors, timeouts, or limits on page size beyond the truncation flag.

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?

Three sentences, front-loaded with the core action and followed by behavioral detail, with zero filler. The element enumeration (headings, paragraphs, links, images, lists, blockquotes, code blocks, tables) is slightly long but earns its place by setting output expectations.

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?

For a one-parameter tool with no output schema and no annotations, the description is close to self-sufficient: it explains the return shape via the completeness report and the authentication/routing branch. The remaining gap is error and edge-case behavior for non-HTML or unreachable URLs, which an agent would want before calling.

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 a single required parameter at 100% schema description coverage, so the schema already fully documents the URL field, and the description adds no syntax, format, or edge-case meaning beyond it. Baseline 3 applies when the schema does the heavy lifting and the description contributes nothing parameter-specific.

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 opens with a specific verb and resource pair ("Fetch a web page and convert its real content to clean Markdown") and immediately enumerates the preserved structures, so an agent knows exactly what the tool produces without opening the schema. There are no siblings to disambiguate against, and none is needed.

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?

Usage context is implied rather than stated: the tool is for converting a known page URL to Markdown, and the API-key paragraph signals a setup prerequisite. However, there is no explicit when-to-use/when-not guidance, no note on unsuitable inputs (non-HTML pages, paywalled or JS-only content), and no stated alternatives.

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

Deploy Server

Other Tools