Skip to main content
Glama

Word to PDF

word_to_pdf
Idempotent

Convert a Word document (.docx, .doc, .rtf) to PDF. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.

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": "word_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_urlNoPublic https:// link to the file (preferred, up to 150 MB). Must be directly downloadable.
filenameNoOriginal file name, e.g. report.pdf
file_base64NoThe file content as base64 (only for small files, max 10 MB). Use instead of file_url.

Output Schema

NameRequiredDescriptionDefault
pagesNo
file_nameYes
download_urlYesLink to download the result
expires_in_minutesYesThe link stops working after this time (or 3 minutes after the first download)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (which only declare idempotent, non-destructive, open-world behavior), the description discloses meaningful operational traits: files are processed on HuntPDF servers, deleted automatically, and the returned download link is temporary. That data-handling and output-lifetime context is exactly what annotations cannot convey. It stops short of stating file-size limits or failure behavior, which exist in the schema or are unstated.

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 short sentences, both front-loaded: capability and formats first, then data-handling caveat. No filler or redundant restatement of the title.

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 single-purpose conversion tool with an output schema and full schema descriptions, the description covers what the schema cannot: server-side processing, automatic deletion, and link expiry. The main residual gap is that with zero required parameters and no oneOf constraint, nothing warns the agent that one of file_url or file_base64 must be provided.

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 parameters are fully documented in the schema itself. The description adds only the document-format acceptance list, which is mildly useful since the schema doesn't constrain document type, but it says nothing about the file_url vs file_base64 tradeoff or the purpose of filename.

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 (Convert) and resource (Word document to PDF) and enumerates the accepted input extensions (.docx, .doc, .rtf), which is precisely what separates it from siblings like pdf_to_word or jpg_to_pdf.

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 only implied: an agent infers it should be used when the source is a Word document and the target is PDF, but there is no explicit when/when-not statement or mention of an alternative path. The description also doesn't tell the agent that exactly one of file_url or file_base64 should be supplied, leaving invocation-shape guidance to the schema.

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