Skip to main content
Glama

mint utilities

PDF info reader

pdf_info
Read-onlyIdempotent

Read a PDF's page count, encryption flag, metadata, page sizes in millimetres, text-layer presence and bookmark count. Cost: 1 credit per call. File input (file): base64 string, data: URI or {"url": "https://..."}. Output: JSON. {page_count, encrypted, password_required, metadata: {title, author, subject, creator, producer}, page_sizes_mm: [{n, width, height}] (first 50 pages), has_text, outline_count}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesThe PDF: base64 string (or data: URI) or {"url": "https://..."}. Up to 10 MB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: a per-call credit cost, the accepted input encodings (base64, data URI, URL object) and the truncation rule that page_sizes_mm covers only the first 50 pages.

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 content is front-loaded with the capability list, then input format, then output shape, in three compact sentences with no filler. It is dense rather than bloated, though the inline output-field listing overlaps with what a reader would expect from a return-value section.

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?

With no output schema, the description carries the return contract itself and does so thoroughly, covering input encodings, size limit, cost and the output field list including the password_required flag. Minor gaps remain around error/truncation behavior for oversized or corrupt files.

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 description coverage is 100% and the single 'file' parameter is already documented in the schema with the same base64/data-URI/url formats and the 10 MB limit. The description restates this without adding syntax or format detail beyond the schema, so the 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?

The description names a specific verb (Read) and resource (a PDF) and enumerates exactly what is extracted: page count, encryption flag, metadata, page sizes, text-layer presence, bookmark count. That enumeration clearly separates it from sibling extractors like pdf_text, pdf_merge and pdf_split.

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 implied by the enumerated fields (use this when you need structural/metadata facts rather than extracted text), and the cost note ('1 credit per call') is a useful decision input. However, there is no explicit when-to-use/when-not statement and no named alternative such as pdf_text for actual text extraction.

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