Skip to main content
Glama

PDF Efforts

Convert PDF to PDF/A

convert_to_pdfa
Idempotent

Convert a PDF to the PDF/A archiving standard (PDF/A-1b, 2b or 3b) with Ghostscript, embedding fonts and an sRGB colour profile.

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": {
      "file": "<file>"
    },
    "name": "convert_to_pdfa"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF.
levelNoPDF/A part: 1, 2 (recommended) or 3.

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real value by naming the engine (Ghostscript) and the transformation effects (font embedding, sRGB colour profile), which tells an agent how the output file will differ. It stops short of disclosing failure modes or whether non-conformant features such as transparency are flattened.

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?

A single dense sentence with the action and target front-loaded and no redundant restatement of the title. Every clause (standard variants, engine, font embedding, colour profile) carries information an agent can use.

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?

The tool is simple: one required nested file object plus a level, all documented in the schema, with an output schema present so return values need no explanation. The description covers what the conversion does, leaving only minor gaps such as preconditions for encrypted or malformed inputs and any size/rate limits.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns a bump by translating the integer enum into real-world conformance names (PDF/A-1b, 2b, 3b), which the schema only labels as 'PDF/A part'. It adds nothing about the nested 'file' object, but that object is fully documented in 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?

The description uses a specific verb and resource ('Convert a PDF to the PDF/A archiving standard') and enumerates the supported conformance variants (PDF/A-1b, 2b, 3b), so its purpose is unambiguous. It never names a sibling or states that no other listed tool performs archival conversion, so it falls just short of an explicit sibling differentiation.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'archiving standard', which tells an agent this is for long-term preservation/compliance. There is no explicit when-to-use condition, no stated prerequisites (for example, that password-protected files may need unlocking first), and no mention of alternatives such as optimize_pdf_for_web or compress_pdf.

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