Skip to main content
Glama

doc_to_md

Fetch a URL (web page or PDF) and return clean markdown; set chunks=true for RAG-ready text chunks.

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

Input Schema

NameRequiredDescriptionDefault
keyNo
urlYeshttp(s) URL of a web page or PDF
chunksNoreturn paragraph-aligned text chunks instead of full markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It says output is 'clean' markdown, implying boilerplate stripping, but says nothing about JS rendering, page-size or length limits, authentication for the 'key' parameter, rate limiting, or failure behavior on non-HTML and non-PDF URLs. For a network fetch tool with zero annotation coverage this is a substantial gap.

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?

A single sentence, front-loaded with the primary action and followed by the one meaningful mode switch. Nothing is wasted, though the parenthetical about web page or PDF duplicates what the url property already says.

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

Completeness3/5

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

For a simple three-parameter fetch-and-convert tool with no output schema, this covers the core contract adequately. The unexplained 'key' parameter and the absence of any note on limits or failure modes keep it from being complete.

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 coverage is 67%, and the description adds the RAG framing for chunks beyond the schema's 'paragraph-aligned text chunks' wording. However, the 'key' parameter is undocumented in both the schema and the description, leaving a real ambiguity about what it is and whether it is required for access.

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 concrete verb and resource: fetch a URL (web page or PDF) and return clean markdown. That is unambiguous about what comes back. It does not differentiate from the sibling tools convert and convert_raw, so an agent cannot tell from this description alone which of the three to pick.

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 chunks=true clause hints at a RAG ingestion use case, which is a form of implied guidance. There is no explicit statement of when to prefer this over convert or convert_raw, and no exclusions or prerequisites are given.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.