Skip to main content
Glama

PDF/UA accessibility check (veraPDF) with measured auto-fix

Check a PDF for PDF/UA accessibility

check_pdf_accessibility
Read-only

Validate a PDF against PDF/UA-1 with veraPDF and list every failed rule (rule id, description, number of failed checks, link to a plain-language explanation). The automatic fix is then run on the file and validated again, so the result also says which failures the fix removes and whether the file then passes — measured on this file, not estimated. Give either 'url' (a public http(s) address of the PDF, max 10 MB) or 'pdf_base64'. The file is not stored and the fixed file is not returned here.

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL of the PDF (max 10 MB).
languageNoDocument language the fix sets when the PDF declares none (BCP 47, e.g. en-US, de-DE, fr-FR). Default en-US.
pdf_base64NoThe PDF file encoded as base64, if it is not online (max 10 MB decoded).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With readOnlyHint and openWorldHint already declared, the description still adds substantive context: the automatic fix is run and re-validated on this file, results are measured rather than estimated, the file is not stored, and the fixed file is not returned. The 10 MB limit and public-URL constraint are also disclosed, so the agent understands side effects and limits 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The key behavior — validation plus automatic fix re-check — is front-loaded in the first two sentences, followed by input and storage constraints. Dense but every clause carries information; slightly long but no filler.

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?

There is no output schema, yet the description fully describes what comes back: every failed rule with id, description, count and link, plus which failures the fix removes and whether the file then passes. Input constraints and storage behavior are also covered, leaving nothing an agent needs missing.

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%, so all three parameters are already documented. The description restates the url/pdf_base64 choice and size cap but adds no new syntax or format detail beyond the schema, so the baseline of 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 ('Validate a PDF against PDF/UA-1 with veraPDF') and enumerates the output shape (rule id, description, failed check count, explanation link). It is clearly distinguishable from the sibling explain_pdfua_rule, which explains rules rather than validating a file.

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?

Gives explicit input-selection guidance: 'Give either url ... or pdf_base64', which tells the agent exactly how to invoke it. It does not, however, mention when to prefer the sibling explain_pdfua_rule for rule details, so there is no explicit alternative routing.

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