Skip to main content
Glama
pdf-toolkit-mcp

pdf-toolkit-mcp

by 0xmortuex

pdf_info

Read-only

Summarizes a PDF before reading it: page count, metadata, encryption status, text layer presence, page sizes, and bookmarks with page numbers. Call first to decide how to read the file.

Instructions

Summarise a PDF: page count, metadata, whether it is encrypted, whether it has a text layer (a scanned PDF does not), page sizes, and the outline/bookmarks with page numbers. Call this first to decide how to read the file.

path: PDF file inside an allowed folder (absolute, or relative to the first allowed folder). password: only for encrypted PDFs. Without it an encrypted file just reports that it is locked.

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": {
      "path": "<path>"
    },
    "name": "pdf_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
passwordNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, and closed-world, so the safety profile is covered. The description adds genuinely useful behavior: a scanned PDF has no text layer, and an encrypted file without a password simply reports it is locked rather than failing. It does not mention cost, file-size limits, or failure modes for non-PDF files, which keeps it short of a 5.

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 structure is sensible and front-loaded: what it reports, then when to call it, then per-parameter notes. The first sentence is a long run-on list that takes effort to parse, but every clause contributes information and there is 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?

With only two parameters, an output schema present, and annotations covering safety, the description supplies everything an agent needs: what is returned, that it should be the first call, how paths resolve, and how passwords behave. No material gap remains for a low-complexity inspection tool.

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 description coverage is 0%, so the description carries the full burden and does so for both parameters. It explains that path must be inside an allowed folder and may be absolute or relative to the first allowed folder, and that password applies only to encrypted PDFs, including the observable consequence of omitting it.

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?

The description opens with a specific verb and resource ('Summarise a PDF') and enumerates exactly what is reported: page count, metadata, encryption status, text-layer presence, page sizes, and outline with page numbers. That enumeration makes it clearly distinct from siblings like read_pdf, search_pdf, or extract_pages without needing to open their schemas.

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?

'Call this first to decide how to read the file' gives explicit ordering guidance and implies the downstream content tools (read_pdf, search_pdf) should be used afterward. It stops short of naming an alternative tool or stating when not to call it, so it falls just below the top band.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.