Skip to main content
Glama

Convert files

convert_pdf

Converts a PDF to Word (word), Excel (excel) or pictures (jpg, png); or a Word, Excel, PowerPoint or OpenDocument file, or pictures, to PDF (pdf). Returns a link to the result. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs.

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": {
      "files": "<files>",
      "to": "<to>"
    },
    "name": "convert_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesWhat to make: word, excel, jpg, png or pdf.
dpiNoFor pictures: 72, 150 or 300.
filesYesThe files, in order.
pagesNoFor pictures: pages like 1-3.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / files / items / description
      Previous value: -"One file: file_id, url or base64."New value: +"One file: file_id, url or base64. Always pass the person's own file exactly as they gave it. If you cannot pass it, call get_upload_link or ask for an https link to it. Never create, rewrite, summarise or rebuild a document to stand in for theirs."
    • changedInput schema / properties / files / items / properties / file_id / description
      Previous value: -"A file id from an earlier upload, or the id of a file attached in the chat."New value: +"A file id from an earlier upload, the upload_id from get_upload_link once the person says it is done, or the id of a file attached in the chat."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the bar is lower. The description still adds real value beyond them: it discloses that the result is a link, that the original file must be submitted unmodified, and that a failed submission has a defined recovery path through get_upload_link. It does not say whether large conversions are synchronous or need get_job_result, which is the main behavioral gap.

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?

Front-loaded with the conversion matrix, then the file-handling rule and the recovery path, which is the right priority order. The final 'never create, rewrite, summarise or rebuild' sentence duplicates text already present in the files item description, costing some redundancy, and the file rule is stated twice within the tool definition itself.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 fills that gap by stating that a link is returned. It covers the risky behavior (submitting someone's real file, upload fallback) and the conversion matrix, and the numeric limits (20 files, base64 size, page pattern) are already fully covered by the schema.

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 coverage is 100%, so a 3 would be the baseline. The description earns above baseline by explaining that the enum values are directions (word/excel/jpg/png consume a PDF, pdf consumes an office file or image), a distinction the bare enum 'word, excel, jpg, png or pdf' does not convey. It still says nothing about dpi, pages or per-file size limits, which the schema already documents.

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?

Names a specific verb (converts) and states both conversion directions with the exact target values that select them: PDF to word/excel/jpg/png, and word/excel/PowerPoint/OpenDocument/pictures to pdf. It also states the output shape ('Returns a link to the result'), so an agent can distinguish it from siblings like compress_pdf, ocr_pdf or merge_pdfs without opening the schema.

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?

Gives clear operating guidance for the hard part of this tool: pass the person's own file exactly, and if that is impossible call get_upload_link or ask for an https link, never fabricate a stand-in document. It names one concrete alternative tool and the condition that selects it, but does not explicitly distinguish when to prefer this over siblings such as ocr_pdf or compress_pdf — the purpose implies it rather than stating it.

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