Skip to main content
Glama
pdf4me
by pdf4me

convert_to_pdf

Converts local document files (DOCX, PPTX, XLSX, images, text) into PDF format. Specify the file path and optional output settings.

Instructions

Convert a local document file (for example DOCX, PPTX, XLSX, images, or text formats) to PDF using the PDF4me ConvertToPdf API. Provide the local file path, plus optional output directory and output file name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesLocal path to the input document file.
output_dirNo
output_file_nameNo
Behavior2/5

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

No annotations are provided, so the description alone must disclose behavior. It states the conversion action but does not specify what happens to the output (e.g., where the PDF is saved, whether it returns a file path or binary), nor any error conditions or side effects. This is a significant gap for a tool with no 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?

The description is concise, two sentences, front-loaded with the core purpose. It lists examples of input formats and the required parameters without unnecessary detail.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple conversion tool with 3 parameters and no annotations or output schema, the description covers the purpose and inputs but omits output/return behavior. It also does not mention limitations (e.g., file formats supported beyond examples) or prerequisites. Adequate but with clear gaps.

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 covers only file_path with a description (33% coverage). The description compensates by naming the optional output_dir and output_file_name and their roles ('optional output directory and output file name'), but it does not explain default behavior when null or what happens if only one is provided. It adds some meaning beyond the schema but not full compensation.

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 tool converts local document files (DOCX, PPTX, XLSX, images, text) to PDF using a specific API. It names the input resource (local file) and output (PDF), and differentiates from sibling converters like convert_html_to_pdf or convert_url_to_pdf by specifying 'local document file'.

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?

The description clearly indicates this is for local document files, implying it is not for URLs or HTML, but it does not explicitly mention alternatives or exclusions. Context is clear enough for an agent to choose this over siblings, but no direct 'use this instead of X' guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server