Skip to main content
Glama

DOCX to PDF

docx_to_pdf

Convert a .docx document (base64) to a PDF. Returns a file_id and a ~1h URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docxYesBase64-encoded .docx file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior2/5

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

The description does not disclose behavioral traits beyond the annotations. It mentions the output (file_id and URL) but nothing about side effects, authentication requirements, rate limits, or whether the input file is consumed or deleted. The annotations are minimal and not contradicted, but no extra behavioral context is added.

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?

The description is a single, focused sentence that front-loads the primary action and immediately states the output. No unnecessary words or filler, making it easy for an agent to parse quickly.

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?

Given the simplicity of the tool, the description provides the essential output information (file_id and a ~1h URL) and hints at the URL's temporary nature. It does not explain how to use the file_id or potential error cases, but for a basic conversion tool this is largely sufficient.

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?

The parameter schema already describes the 'docx' parameter as 'Base64-encoded .docx file,' and the description repeats the base64 detail without adding new meaning. Since schema coverage is 100%, the baseline score of 3 is appropriate.

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?

The description clearly states the action (convert) and the resource (.docx to PDF), which effectively distinguishes it from sibling tools like docx_to_text and images_to_pdf. The one-sentence definition leaves no ambiguity about the tool's function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool instead of alternatives such as markdown_to_pdf or url_to_pdf. There is no mention of use cases, prerequisites, or conditions that would favor this conversion method.

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