Skip to main content
Glama
FileToPDF

FileToPDF MCP server

Official
by FileToPDF

Convert a file (by URL) to PDF

convert_file

Convert documents, images, HTML, or Markdown from a public URL into a PDF. Automatically detects format and applies the appropriate conversion engine.

Instructions

Convert a file fetched from a public URL into a PDF. Auto-detects the engine from the extension: Office docs (DOCX, XLSX, PPTX, ODT, RTF, TXT, CSV…), images (PNG, JPG, WebP…), HTML, Markdown, or an existing PDF (passthrough). Costs 1 credit on success. Returns the PDF as an embedded resource.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesPublic http(s) URL of the file to download and convert.
landscapeNoRender in landscape orientation. (Pro/Scale/trial only.)
nativePageRangesNoPage ranges to include, e.g. "1-3".
passwordNoPassword to open a protected source document.
pdfaNoPDF/A conformance level, e.g. "PDF/A-2b". (Pro/Scale/trial only.)
pdfuaNoProduce an accessible PDF/UA document.
userPasswordNoPassword required to open the resulting PDF.
ownerPasswordNoOwner password controlling permissions on the resulting PDF.
save_pathNoOptional absolute path to also write the PDF to on disk.
Behavior4/5

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

The description discloses credit cost, return format (embedded resource), and auto-detection behavior. Annotations include 'openWorldHint: true', which is consistent with credit deduction. No contradictions, but error cases or timeouts are not mentioned.

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, front-loaded with the core purpose. Every sentence adds necessary information without redundancy.

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?

With 9 parameters and no output schema, the description explains the main workflow, supported formats, cost, and return type. It omits high-level guidance for optional parameters like page ranges or passwords, but the parameter descriptions cover those.

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 coverage is 100%, so baseline is 3. The description adds value by explaining auto-detection and listing supported file types, enriching understanding beyond individual parameter descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Convert a file fetched from a public URL into a PDF' with a specific verb and resource. It lists supported file types but does not explicitly differentiate from sibling tools convert_html and convert_markdown, which are more specific.

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?

The description covers when to use the tool (converting a file from a public URL to PDF) but lacks guidance on when not to use it or how it compares to siblings. No alternatives or exclusions are mentioned.

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/FileToPDF/filetopdf-mcp'

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