Skip to main content
Glama

Convert a document to Markdown

convert_document
Read-onlyIdempotent

Convert a PDF, DOCX, PPTX, XLSX, HTML or TXT file to Markdown. Give either url (a public link to the file) or content_base64 plus filename. Scanned PDF pages are read by an AI vision model. ai_accuracy (paid plans) reads every PDF page with AI for exact tables. Each call uses one conversion.

Input Schema

NameRequiredDescriptionDefault
urlNo
filenameNo
ai_accuracyNo
content_base64No

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish the safe-read profile (readOnlyHint, idempotentHint, destructiveHint=false), and the description goes further by disclosing that scanned PDF pages are read by an AI vision model, that `ai_accuracy` incurs paid-plan AI processing for every page, and that each call consumes one conversion from a quota. That quota/plan context is genuinely useful behavior an agent cannot infer from annotations.

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, front-loaded with the purpose and formats, followed by input-mode rules and cost/behavioral caveats. Every sentence adds non-redundant information with no filler.

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?

An output schema exists, so return values need not be described. For a 4-parameter, no-required-arg tool the description covers formats, input modes, AI behavior, and quota cost; only edge cases like size limits or failure conditions are unaddressed, which is acceptable given the structured fields available.

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 description coverage is 0%, so the description carries the burden and mostly succeeds: it explains the two mutually exclusive input modes (url vs content_base64 + filename) and the meaning/cost of ai_accuracy. It does not explain `filename`'s expected format or whether url must be publicly reachable beyond 'a public link', leaving one minor 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?

Specific verb ('Convert') plus resource ('a PDF, DOCX, PPTX, XLSX, HTML or TXT file to Markdown'), with the supported input formats enumerated. An agent immediately knows this is a document-to-Markdown converter and can distinguish it from the unrelated sibling get_usage.

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?

The description gives clear operational conditions: supply either `url` or `content_base64` plus `filename`, and `ai_accuracy` only applies on paid plans. It stops short of explicit when-not guidance (e.g., file size limits, what to do when the URL is not public), but the invocation paths are unambiguous.

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