Skip to main content
Glama
enconvert

EnConvert MCP Server

Official

Convert Anything to PDF

convert_anything_to_pdf

Convert a wide range of files - images, documents, EPUB, and more - into PDF using a local path or URL. Use when you need a PDF regardless of the source format.

Instructions

Convert almost any FILE to PDF through one catch-all endpoint. Input is an absolute local filesystem path OR an http(s) URL pointing at the file itself. Accepted extensions, exactly 36: .bmp, .csv, .doc, .docx, .epub, .gif, .heic, .heif, .htm, .html, .jpeg, .jpg, .markdown, .md, .mdown, .mkd, .numbers, .odp, .ods, .odt, .ots, .pages, .pdf, .png, .ppt, .pptx, .rtf, .svg, .text, .tif, .tiff, .txt, .webp, .xhtml, .xls, .xlsx. A .pdf input is accepted and passed through, so together with pdf_options.grayscale this doubles as a PDF normalize and grayscale path.

Use when: the input format is unknown, unusual, or varies from call to call and a PDF is wanted regardless; putting an image into a PDF (png, jpg, jpeg, webp, gif, bmp, tif, tiff, heic, heif) or an SVG, RTF, Apple Pages or Apple Numbers file into a PDF; "make a PDF out of this, whatever it is"; converting an existing PDF to grayscale or re-normalizing it.

Do NOT use when: the source is a LIVE web page (use perceive_url with outputs ['pdf']); the wanted output is NOT a PDF (use convert_image, convert_document, or convert_anything_to_markdown). This tool deliberately OVERLAPS convert_document: convert_document stays the right choice for the KNOWN office-to-pdf pairs (doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, ots, html, md) and for the structured-data pairs (json, xml, yaml, toml, csv), while convert_anything_to_pdf is the SINGLE catch-all for everything else: an unknown or unusual input format, images, SVG, RTF, HEIC, TIFF, iWork files, EPUB (which has no convert_document pair), or a PDF that merely needs normalizing or grayscaling.

Returns: a presigned download URL of the .pdf plus metadata and a jobId; pass save_to (absolute path) to also write it locally. pdf_options CAVEAT: full page geometry (page_size, orientation, margins, scale) is honored ONLY for html, htm, xhtml, markdown, plain text, epub, image and svg input. Office, ODF, iWork, RTF and CSV input plus PDF passthrough accept "grayscale" ONLY and are rejected with a 400 when any explicit geometry option is set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesAbsolute local filesystem path to the file to convert, OR an http(s):// URL pointing at the file itself. Relative paths are rejected, so always pass an absolute path.
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
save_toNoOptional absolute local path to also save the generated PDF.
pdf_optionsNoOptional PDF rendering options.
output_filenameNoDesired output filename (without extension).
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it lists all 36 accepted extensions, discloses that PDF inputs are passed through, describes the return shape (presigned URL, metadata, jobId), and details the pdf_options caveat that geometry options only apply to certain input types, with a 400 rejection for unsupported combinations.

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?

The description is well-structured with front-loaded purpose and clear section headers, and every major piece of content is useful. However, it is somewhat longer than necessary because format lists like images, SVG, and RTF appear both in the 'Use when' examples and again in the overlap explanation, creating mild redundancy.

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?

Given no output schema and no annotations, the description is remarkably complete: it covers input path/URL, accepted extensions, return values, exclusions, alternatives, and pdf_options limitations. The only omission is explicit sync/async behavior, but the jobId return value strongly implies asynchronous processing.

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 description coverage is 100%, so baseline is 3. The description adds meaningful value beyond the schema by explaining the pdf_options geometry caveat and the absolute-path requirement, but it does not enrich every parameter; save_to and output_filename rely mostly on their schema descriptions.

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 opens with a specific verb and resource: 'Convert almost any FILE to PDF' and explicitly frames the tool as a catch-all endpoint. It distinguishes itself from convert_document, convert_image, perceive_url, and convert_anything_to_markdown by describing its unique scope.

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

Usage Guidelines5/5

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

The description provides explicit 'Use when' and 'Do NOT use when' sections, including named alternatives (perceive_url, convert_document, convert_anything_to_markdown) and clear reasoning for when the catch-all is preferable. It even explains the deliberate overlap with convert_document and which side of that overlap to choose.

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/enconvert/mcp'

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