Skip to main content
Glama
pdf4me
by pdf4me

convert_pdf_to_pdfa

Convert a PDF file to PDF/A archival format for long-term preservation. Set compliance level, e.g., PDF/A-1b, and allow upgrades or downgrades as needed.

Instructions

Convert a PDF file to PDF/A (archival ISO format) using the PDF4me PdfA API. Provide the local file path to the PDF. Choose compliance (e.g. PdfA1b), allow_upgrade / allow_downgrade, and optional output path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesLocal path to the PDF file to convert.
complianceNoPDF/A level (PdfA1b is common for basic conformance).PdfA1b
output_dirNo
allow_upgradeNoAllow upgrading to higher compliance when supported by the API.
allow_downgradeNoAllow downgrading to lower compliance when supported by the API.
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 must disclose behavioral traits. It only mentions the API and optional output path without explaining side effects, whether the original file is modified, authentication requirements, rate limits, or what is returned. This leaves significant behavioral ambiguity.

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 concise sentences, with the purpose front-loaded and no filler. Every phrase contributes to understanding the tool's function and key parameters.

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

Completeness2/5

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

Without output schema or annotations, the description is insufficiently complete for a 6-parameter conversion tool. It omits what the tool returns, whether a new file is created, and how output_dir/output_file_name interact. The agent is left with gaps that could lead to incorrect invocation.

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 schema already describes file_path, compliance, allow_upgrade, and allow_downgrade. The description adds an example compliance value and reinforces the local file path, but does not meaningfully elaborate on output_dir or output_file_name (only 'optional output path'). With 67% schema coverage, the description provides marginal added value but does not fully compensate for missing fields.

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 a PDF file to PDF/A archival format, using the specific PDF4me PdfA API. This specific verb-resource pairing distinguishes it from sibling conversion tools like convert_to_pdf or convert_pdf_to_word.

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 provides clear usage context by mentioning 'archival ISO format' and instructs the agent to provide the local file path, choose compliance, and set optional output path. However, it does not explicitly compare with alternative tools or state when not to use this tool.

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