Skip to main content
Glama

convert

Read-only

Transform documents from URLs or paths into Markdown, docling JSON, HTML, LaTeX, RAG chunks, or WebVTT with OCR, page range, and password options.

Instructions

Convert a document (URI or path, as convert_to_markdown) to Markdown, docling JSON, HTML, plain text, LaTeX, RAG chunks, WebVTT or Pandoc JSON, with docling.rs's conversion options (page ranges, OCR language and mode, text-layer-only PDFs, passwords, picture OCR, …).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoOutput format: md (default), json (docling's DoclingDocument), html, text, latex, chunks (RAG chunk records as JSON), vtt, pandoc (Pandoc's JSON AST).
uriYesThe document: an http: or https: URL, a file: URI, a data: URI, or a path (relative paths resolve against the server's root).
imagesNoPictures in md/html/pandoc output: placeholder (default) or embedded (data: URIs).
optionsNoConversion options, docling.rs's shared set (docs/OPTIONS.md), e.g. {"pages": "1-5"}, {"text_layer_only": true} (digital PDFs, fastest), {"ocr_lang": "ch"}, {"force_full_page_ocr": true}, {"do_picture_ocr": true} (OCR pictures inside Office files), {"password": "…"}, {"compact_tables": false}. A value may also be given as text ("true", "1.5"), as a form sends it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.31.0
    • changedInput schema / properties / options / description
      Previous value: -"Conversion options, docling.rs's shared set (docs/OPTIONS.md), e.g.\n{\"pages\": \"1-5\"}, {\"text_layer_only\": true} (digital PDFs, fastest),\n{\"ocr_lang\": \"ch\"}, {\"force_full_page_ocr\": true},\n{\"do_picture_ocr\": true} (OCR pictures inside Office files),\n{\"password\": \"…\"}, {\"compact_tables\": false}."New value: +"Conversion options, docling.rs's shared set (docs/OPTIONS.md), e.g.\n{\"pages\": \"1-5\"}, {\"text_layer_only\": true} (digital PDFs, fastest),\n{\"ocr_lang\": \"ch\"}, {\"force_full_page_ocr\": true},\n{\"do_picture_ocr\": true} (OCR pictures inside Office files),\n{\"password\": \"…\"}, {\"compact_tables\": false}. A value may also be\ngiven as text (\"true\", \"1.5\"), as a form sends it."
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety/scope profile is covered. The description adds useful texture beyond that – OCR modes, password-protected input, text-layer-only fast paths – which signals this is a heavyweight, potentially slow conversion. It says nothing about size limits, where output is delivered, or error behavior for unsupported formats.

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 verb and resource, with the format and option lists as trailing parentheticals. It is dense but every clause is relevant; the main inefficiency is that the enumerated formats largely duplicate the `to` schema, making the sentence longer than it needs to be.

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 tool with an open-ended nested `options` object (additionalProperties: true) and no output schema, the description does point to docs/OPTIONS.md and gives representative option keys, which is helpful. However, it never characterizes the return value despite the wildly different shapes (plain text, DoclingDocument JSON, chunk records, VTT), nor does it cover how the open-ended options object relates to the server's supported set.

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 description coverage is 100%, so the baseline is 3. The format list in the description essentially restates the `to` parameter's schema description, and the option examples (pages, ocr_lang, text_layer_only, do_picture_ocr, password) duplicate what the `options` schema already documents, so it adds little meaning beyond structured fields.

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 names a concrete verb (Convert) plus the resource (a document given by URI or path) and enumerates the eight supported output formats, so an agent immediately knows what it does. It references convert_to_markdown for input semantics but never contrasts itself with it or with list_input_formats, so sibling differentiation is only implied.

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 is implied rather than stated: the '(URI or path, as convert_to_markdown)' aside hints this shares input handling with the sibling, and listing conversion options suggests it is the richer variant. There is no explicit when-to-use / when-not-to-use guidance and the sibling convert_to_markdown is never ruled in or out.

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