Skip to main content
Glama

Convert documents to Markdown

convert_to_markdown
Read-onlyIdempotent

Convert 1-5 documents (PDF, Word .docx, Excel .xlsx/.xls, OpenDocument, Apple Numbers, CSV, HTML, XML) to clean Markdown for reading or RAG. Pass public URLs in urls, or files as [{name, base64}]. Returns markdown, format, characters, approxTokens and truncated per document. Not for images or scanned PDFs (no OCR).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsYesPublic http(s) document URLs. Pass [] when sending files instead.
filesNo
maxCharsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / urls / description
      Previous value: -"Public http(s) document URLs"New value: +"Public http(s) document URLs. Pass [] when sending files instead."
    • addedInput schema / properties / urls / examples
      Added value: +[
      +  [
      +    "https://leafmelt.cybermaxtools.com/samples/quarterly-report.pdf"
      +  ]
      +]
    • addedInput schema / required
      Added value: +[
      +  "urls"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, openWorld and non-destructive behavior, and the description usefully adds the 1-5 document batch cap, the no-OCR limitation, and the returned fields (markdown, format, characters, approxTokens, truncated). It does not disclose rate limits, auth needs, or per-document failure behavior, so it stops short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences with zero filler: purpose and formats first, then input mechanics, then return shape and the exclusion. The most decision-relevant information is front-loaded.

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?

With no output schema, the description correctly names the return fields, and it covers formats, batch size, input modes, and the OCR limitation. The main remaining gap is maxChars and truncation semantics, which are hinted at only via the returned 'truncated' field.

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 only 33% and maxChars has no description in either schema or description, so its meaning and default are left unexplained. The description does add real value by clarifying that urls and files are alternative input channels and by describing the base64 file shape, which partly compensates for the coverage gap.

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?

States a specific verb (Convert) plus resource (documents) with an explicit enumeration of supported formats, batch bounds (1-5), and the output target (clean Markdown for reading or RAG). An agent can distinguish this from the sibling supported_formats, which merely lists formats rather than performing conversion.

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

Usage Guidelines4/5

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

Explicitly routes between the two input modes ('Pass public URLs in urls, or files as [{name, base64}]') and gives a clear exclusion ('Not for images or scanned PDFs (no OCR)'). It does not name the sibling supported_formats as the place to check format support, so it falls just short of full alternative-routing.

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.

Resources