Skip to main content
Glama

RenderForge Web & Document Engine

Convert Document or Image URL to Markdown (OCR)

doc_to_markdown
Read-onlyIdempotent

Download a public PDF, DOCX, XLSX, PPTX, HTML, TXT, CSV, or image (PNG, JPEG, WEBP) URL up to 20 MB and extract structured Markdown and tables, with automatic Tesseract OCR fallback for scanned PDFs and images. Returns Markdown, page count, detected format, word count, and ocr_used flag. Cost: 2 credits.

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_markdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http:// or https:// URL pointing to a supported document or image file.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new behavior: a 20 MB download cap, automatic Tesseract OCR fallback for scanned PDFs and images, and a cost of 2 credits. The remaining gap is that it does not say what happens on failure, for example with a private URL or a file that is too large.

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 a single dense sentence that front-loads the action and formats, followed by a short return-value list and a cost line. It is efficient and every clause carries information, though the format enumeration makes the opening sentence long.

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?

There is no output schema, and the description compensates by naming the return fields: Markdown, page count, detected format, word count, and ocr_used. Together with the size limit, OCR behavior and credit cost, that is nearly everything an agent needs, with only error and edge-case behavior left unspecified.

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?

With only one parameter and 100% schema coverage, the baseline is 3, but the description goes beyond the schema's generic 'supported document or image file' by enumerating the exact accepted formats and the 20 MB size limit, which directly constrains what the url parameter may contain.

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?

The description uses a specific verb-plus-resource framing: it downloads a URL and extracts Markdown and tables, and it enumerates the supported formats (PDF, DOCX, XLSX, PPTX, HTML, TXT, CSV, PNG, JPEG, WEBP) and the OCR fallback. That is clearly distinguishable from html_to_pdf and website_screenshot, but the overlap with the sibling url_to_markdown is never addressed, so an agent cannot tell which of the two conversion tools 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 applicable context is implied: this is used when a URL points to a document or image and the caller wants Markdown out. However, there is no explicit statement of when to use this tool rather than url_to_markdown, no exclusion conditions, and no guidance on unsupported or private URLs.

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.