Skip to main content
Glama

PDF Efforts

PDF to Word (DOCX)

pdf_to_word
Idempotent

Rebuild a PDF as an editable Word .docx with paragraphs, fonts, colours, tables, lists, links and pictures. Charts and drawn shapes are not included. Scanned PDFs need ocr_pdf first.

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": {
      "file": "<file>"
    },
    "name": "pdf_to_word"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF.

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (non-destructive, idempotent, open-world), so the description's job is to add fidelity and input constraints — and it does: charts and drawn shapes are excluded, and scanned input must be OCR'd first. It stops short of saying a new result file is produced or how the output is delivered, which is partly covered by the output schema.

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?

Two sentences plus a short prerequisite clause, with the core capability front-loaded and the two most important caveats immediately after. No filler or restatement of the title.

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?

For a single-parameter conversion tool with a full schema, an output schema, and explicit annotations, the description covers the remaining unknowns an agent needs: output fidelity limits and the OCR precondition. Nothing material is missing.

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 100% and every nested property (url, base64, file_id, filename) already carries its own description, including the 60-minute file_id lifetime. The description adds no parameter-level meaning beyond the schema, so the baseline 3 applies.

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 and resource ('Rebuild a PDF as an editable Word .docx') and enumerates what is preserved: paragraphs, fonts, colours, tables, lists, links and pictures. That fidelity list distinguishes it from siblings like pdf_to_text and pdf_to_excel without needing to open their schemas.

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 an explicit prerequisite and names the sibling that satisfies it: 'Scanned PDFs need ocr_pdf first.' Clear context for the main failure mode, though it does not spell out when to prefer pdf_to_text or pdf_to_images over a full DOCX rebuild.

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