Skip to main content
Glama

Validate a PDF against PDF/A

validate_pdfa
Read-only

Check whether a PDF conforms to PDF/A, the ISO archiving standard, with veraPDF.

Input: pdf_base64 is the PDF as base64, at most 3 MB decoded; or pass the file, up to 4 MB, as a download link in file. profile picks the PDF/A part and level.

Returns compliant (true or false), profile_name (the profile veraPDF used), statement, passed_rules, failed_rules and top_failed_rules: up to 10 failed rules with their id (clause and test number), specification, description and failed_checks. A file that is not a PDF fails with not_a_pdf; an unavailable veraPDF with engine_unavailable. For the full report in JSON, XML or HTML, use the REST API (POST /v1/verapdf/api/validate/{profile}).

Credits: 2 per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_pdfa"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoThe file as a download link, instead of `pdf_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL.
profileNoThe PDF/A part and level, such as "2b" or "3a". "auto" (the default) checks against the part the file declares, and against PDF/A-1b when it declares none.auto
pdf_base64NoThe PDF, base64-encoded. At most 3 MB decoded; pass a larger PDF, up to 4 MB, as a link in `file`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / pdf_base64 / description
      Previous value: -"The PDF, base64-encoded. At most 4 MB decoded."New value: +"The PDF, base64-encoded. At most 3 MB decoded; pass a larger PDF, up to 4 MB, as a link in `file`."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint it discloses concrete operational facts: a 3 MB decoded cap for base64, 4 MB for links, a cost of 2 credits per call, and named failure modes ('not_a_pdf', 'engine_unavailable'). That is substantial context an agent cannot get from annotations. It does not mention rate limits or latency, which keeps it below the top.

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?

Front-loaded with purpose, then inputs, returns, errors and cost — a sensible order with no filler sentences. The enumerated return fields are somewhat verbose given an output schema already exists, which is the main 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?

For a validation tool with an output schema, the description nevertheless covers input constraints, profile selection semantics, error codes and cost — everything an agent needs to call it correctly. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the prose adds real meaning: it establishes that pdf_base64 and file are alternative routes (both optional in the schema, so the either/or rule is not derivable from it) and explains what 'auto' resolves to when a file declares no part. The size limits reinforce rather than merely repeat the schema.

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?

States a specific verb and resource: 'Check whether a PDF conforms to PDF/A, the ISO archiving standard, with veraPDF.' That is far more precise than the name alone, and the archiving-conformance framing distinguishes it in spirit from the accessibility siblings. It never names an alternative tool, so the differentiation is implied rather than stated.

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 makes clear when the tool applies and explicitly routes the agent elsewhere for full JSON/XML/HTML reports ('use the REST API'), and it explains the two mutually exclusive input routes with their size ceilings. It stops short of any when-not-to-use statement or comparison to check_pdf_accessibility.

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.