Skip to main content
Glama

Convert a PDF

convert_from_pdf

Turn a PDF into Word (.docx), Excel or CSV (tables found on the page), images (PNG/JPEG in a ZIP), Markdown, EPUB, PDF/A (archival), LaTeX, or a grayscale PDF. For tables read by AI (scans, bank statements), use extract_data.

Input Schema

NameRequiredDescriptionDefault
toYes
dpiNo
fileNoA file the person attached in ChatGPT (filled in by ChatGPT).
file_idNoA FynePDF file_id from upload_file, import_file_from_url or an earlier tool.
file_urlNoA public link to the file.
image_formatNo
library_file_idNoA file from the person's FynePDF Library (from list_library_files).

Output Schema

NameRequiredDescriptionDefault
cardNo
filesYes
stepsYes
job_idYes
statusYes
creditsYes
messageYes

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?

Annotations already declare non-read-only, non-idempotent, non-destructive, closed-world, so the safety profile is covered. The description still adds genuine behavioral context: that table extraction is page-scoped and heuristic, that images come bundled in a ZIP rather than loose files. It does not say whether conversions are async, size-limited, or credit-consuming.

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?

Two sentences, front-loaded with the core action and formats, then the routing rule to extract_data. The format enumeration is long but each gloss carries information not evident from the bare enum, so little is wasted.

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?

An output schema exists, so return values need no explanation, and the safety profile is in annotations. However, a 7-parameter conversion tool with four interchangeable-looking input sources and likely async job handling (get_job sibling) leaves an agent guessing on file-source selection and dpi applicability.

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 coverage is 57%, so the description must fill gaps and only partly does: it expands the 'to' enum values (archival PDF/A, grayscale PDF, images as ZIP/PNG/JPEG), which helps pick an enum member. It says nothing about dpi, image_format, or the precedence between file, file_id, file_url, and library_file_id.

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 (turn) and resource (a PDF) plus the full set of output targets, glossing each format ('PDF/A (archival)', 'images (PNG/JPEG in a ZIP)'). It also explicitly separates itself from extract_data, so an agent can pick correctly without opening either schema.

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?

It names the alternative extract_data and the exact condition that selects it ('tables read by AI, scans, bank statements'), and implicitly contrasts with convert_to_pdf through directionality. It gives no guidance on choosing among the four file-input parameters or on when an async job lookup is needed.

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