Skip to main content
Glama
PDF.co MCP Server

PDF.co MCP Server

Official
by pdfdotco

PDF to PDF/A

pdf_to_pdfa

Convert PDF files to PDF/A-3b and validate the output with veraPDF for archival compliance; returns a job ID and a validation report.

Instructions

Convert a PDF to PDF/A-3b and validate the result with veraPDF. The job always runs in the background: this returns a job ID, and the result comes from 'wait_job_completion'. A result that is not compliant still finishes as success, so check isCompliant and validationReportUrl in the result. Ref: https://developer.pdf.co/api/pdf-to-pdfa.md

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "pdf_to_pdfa"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.
nameNoFile name for the converted PDF. The validation report is named after it. (Optional)
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
expirationNoLifetime of the output and report links in minutes; the files are deleted afterwards. API default is 60; capped at seven days for PDF/A. (Optional)

Output Schema

NameRequiredDescriptionDefault
tipsNo
statusYes
contentYes
credits_usedNo
credits_remainingNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.0.12

TDQS

A4/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false, so the description carries real weight and does add the async/job-ID behavior and the important caveat that a non-compliant result still reports success, requiring a check of `isCompliant` and `validationReportUrl`. That is genuinely useful context beyond the annotations.

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?

Four short sentences, front-loaded with the action, then the async contract, then the success-semantics caveat, then a reference link. Nothing is redundant and the most important pitfalls appear before the URL.

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?

An output schema exists, so return values need not be spelled out, and the description still points at the two result fields that matter for correctness. Combined with the job-ID handoff to 'wait_job_completion', an agent has what it needs to call and follow up correctly.

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 100% and every parameter (url, name, api_key, expiration) already carries its own description, including the seven-day cap for PDF/A. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 and resource plus the exact target profile ("Convert a PDF to PDF/A-3b") and adds the validation step with veraPDF. That level of specificity separates it cleanly from the other pdf_to_* converters in the sibling list.

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?

Explicitly says the job always runs in the background, that the call returns a job ID, and that the result must be fetched via 'wait_job_completion' – a clear routing instruction to the sibling tool. It stops short of stating when not to use this tool (e.g. when the source is not already a PDF).

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