Skip to main content
Glama
DatLab MCP server

DatLab MCP server

Official
by datlabhq

Web page to Markdown

web_page_to_markdown

Convert known URLs into clean Markdown with page metadata, links, and word counts. Fetch exact URLs without crawling or searching to process existing web content.

Instructions

Fetch known URLs and return each page as clean Markdown (main content) plus metadata, one result per URL. Use it when you already have the URLs. Do not use it to crawl a site (use site_to_markdown_crawler) or to web-search. Output fields: url, markdown, metadata.title, metadata.description, metadata.canonicalUrl, links, wordCount, tokenEstimate, crawl.renderedWith, error (set when the page failed, and failed pages are not billed). Cost: first 100 pages each UTC month are free, then $0.0005 per HTTP page or $0.001 per browser page, plus $0.00005 per run start.

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": {
      "urls": "<urls>"
    },
    "name": "web_page_to_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsYesExact page URLs to fetch. This tool does not crawl or search.
includeLinksNo
scrapingToolNoauto (default) uses HTTP and only opens a browser if the page looks client-rendered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it enumerates return fields, states that errors surface in an error field, that failed pages are not billed, and gives the exact pricing tiers and per-run fee. It also notes rendering (crawl.renderedWith) which hints at the HTTP-vs-browser behavior. This is well beyond the minimum for an unannotated tool.

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?

It is front-loaded with purpose and routing first, then labeled "Output fields:" and "Cost:" segments, so it scans well. It is a dense single block and the cost sentence is long, but each clause conveys operational information an agent would otherwise lack.

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?

No output schema exists, so the description takes on the return contract itself and does so field by field, including error semantics. Combined with routing guidance and pricing, an agent has everything needed to call it correctly and predict the cost of doing so.

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

Parameters4/5

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

Schema coverage is 67%, and the description adds real meaning: urls are "exact page URLs" that are not crawled or searched, and the output listing clarifies what the call yields. includeLinks is never mentioned in the description, and the scrapingTool tradeoff is only partly echoed, so one of three parameters leans entirely on the schema.

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?

"Fetch known URLs and return each page as clean Markdown (main content) plus metadata, one result per URL" names a specific verb, resource, output format, and cardinality. It also explicitly separates the tool from site_to_markdown_crawler and from search behavior, so an agent can route without opening the 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?

"Use it when you already have the URLs" gives the positive precondition, and "Do not use it to crawl a site (use site_to_markdown_crawler) or to web-search" gives both the exclusion and the named alternative. Nothing about selection is left to inference.

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