Skip to main content
Glama

convert_document

Read-onlyIdempotent

Convert PDF, Word, PowerPoint or Excel documents to Markdown from a public URL or local file, with format detected automatically. Use it to turn source documents into clean Markdown text.

Instructions

Convert one document to Markdown. Give either url or path. The format is detected from the content. A local path file is uploaded to the Unfold API.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "convert_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL of the document.
pathNoLocal .pdf, .docx, .pptx or .xlsx file to upload to the Unfold API instead (up to 10 MB). Only files inside the working directory (or UNFOLD_MCP_ROOT) are read.
max_charsNoCut the Markdown to this many characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.6
    • changedInput schema / properties / path / description
      Previous value: -"Local file to upload instead (up to 10 MB)."New value: +"Local .pdf, .docx, .pptx or .xlsx file to upload to the Unfold API instead (up to 10 MB). Only files inside the working directory (or UNFOLD_MCP_ROOT) are read."
  2. First observedv0.2.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description adds two facts annotations cannot express: format is auto-detected from content, and a local `path` file is uploaded to a third-party (Unfold) API — meaningful for data-handling decisions. It does not mention failure modes or size/time limits beyond the schema's 10 MB note.

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?

Three short sentences, front-loaded with the action, then the input rule, then the upload caveat. No filler or repetition of schema fields. Could be tightened slightly by folding the upload note into the `path` guidance, but nothing is wasted.

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?

For a three-parameter, side-effect-light conversion tool with full schema coverage and clear annotations, the description covers the essentials. The one omission is that it never states the response contains the Markdown text and that truncation via `max_chars` affects it, though no output schema exists to carry that.

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 all three parameters are already documented, including the 10 MB cap, allowed extensions, and the root-directory restriction. The description contributes only the either/or selection rule between `url` and `path`, which the schema leaves ambiguous since neither is required. Useful but marginal, so baseline 3 rather than higher.

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 specific verb and resource with its output form: 'Convert one document to Markdown.' The input-source line ('Give either `url` or `path`') narrows the calling shape immediately. It stops short of naming supported input formats in the description itself, but the purpose is unmistakable.

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 description tells the agent which parameter to supply but not when to prefer this tool or what to do if conversion fails or the file is unsupported. There are no siblings to route against, so the missing element is exclusions rather than alternatives. Usage is implied rather than stated.

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