Skip to main content
Glama

Check a PDF's accessibility against PDF/UA

check_pdf_accessibility
Read-only

Check whether a PDF is accessible by PDF/UA, the ISO standard for accessible PDF.

veraPDF checks the machine-checkable rules of PDF/UA: tags, structure, alt text present, fonts, metadata. Whether alt text or reading order make sense still needs a person.

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 is "ua1" or "ua2".

Returns compliant (true or false), profile_name, 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, use the REST API (POST /v1/verapdf/api/validate/ua1). For a PDF on the person's device or attached to the chat, use open_accessibility_checker.

Credits: 10 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": "check_pdf_accessibility"
  }
}

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.
profileNo"ua1" (the default) checks against PDF/UA-1 (ISO 14289-1), "ua2" against PDF/UA-2 (ISO 14289-2).ua1
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?

Annotations only say read-only and open-world; the description adds real behavioral context the annotations don't carry: cost of 10 credits per call, size ceilings, and two named failure modes (`not_a_pdf`, `engine_unavailable`). It also honestly scopes the result by noting semantic checks like alt-text quality and reading order still require a human, which prevents over-claiming compliance.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

Front-loaded and organized, but the middle section enumerates return fields (`compliant`, `profile_name`, `statement`, `passed_rules`, `failed_rules`, `top_failed_rules`) that the output schema already provides, and the parameter limits are repeated from the schema. Those sentences duplicate structured data rather than earning their place.

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?

Given a nested input object, an output schema, and read-only annotations, the definition supplies everything an agent still needs: which input path to choose under which size, the cost, the two error codes, the limits of what the check proves, and where to go for a fuller report. Nothing material is 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, including the `profile` enum values and the 3 MB decoded limit. The description restates that trade-off between `pdf_base64` and `file` rather than adding new meaning, so 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 ('Check whether a PDF is accessible by PDF/UA') and immediately disambiguates the standard against PDF/A-style validation by naming the machine-checkable scope. The sibling reference to `open_accessibility_checker` further separates it from the other checker.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: device-attached or chat-attached files go to `open_accessibility_checker`, the full report goes to the REST API endpoint, and the machine-checkable-versus-human-judgment boundary tells the agent when this tool's answer is sufficient. Input size limits (3 MB base64, 4 MB link) also steer the invocation choice.

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.