Skip to main content
Glama

PDF Readiness

check_pdf

Run an accessibility preflight on one PDF (base64): tags/structure, document title, language, image alt text, unreadable pages, unlabelled form fields, low-contrast text. A preflight only: it never certifies compliance.

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": {
      "filename": "<filename>",
      "file_base64": "<file_base64>"
    },
    "name": "check_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameYes
file_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the input form (base64 PDF) and that no compliance certification is produced, and the wording implies a non-mutating check. It does not disclose limits such as file size, behavior on corrupt or encrypted PDFs, or whether processing is synchronous, which matter for a file-analysis tool.

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 that front-loads the action and the input format, followed by a two-word qualifier that bounds the result. No filler and no repetition of the tool name.

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?

For a two-parameter, read-only inspection tool with no output schema, the enumerated check list effectively tells the agent what the response will report. The only small gap is the absence of any statement about result shape (per-check pass/fail vs. free text) or failure modes.

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 0%, so the description must compensate. It clarifies that the input is one PDF supplied as base64, which covers the file_base64 parameter, but both 'filename' and 'file_base64' are undocumented in the schema and the description adds no constraints (size, encoding, whether filename must include the extension).

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 ('Run an accessibility preflight on one PDF') and then enumerates the exact checks performed — tags/structure, title, language, alt text, unreadable pages, form fields, contrast. An agent knows precisely what this tool does without opening the schema.

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 closing line 'A preflight only: it never certifies compliance' sets a clear boundary on what the result can be used for, which functions as a when-not clause. It does not name any alternative tool, but the only sibling (get_plan) is unrelated, so no real routing ambiguity is left open.

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