Skip to main content
Glama

pdf_info

Inspect a PDF file to get page count, page size, selectable text availability, and encryption status, so you can plan text extraction or OCR correctly.

Instructions

Page count, page size, whether it has selectable text, whether it is encrypted.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden; it does disclose the exact information reported (including encryption state and text selectability), which substitutes for the missing output schema. However, it says nothing about read-only nature, failure modes on invalid or non-PDF paths, or performance.

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?

It is very short and front-loads the key attributes with no filler, but it is an unpunctuated fragment lacking a subject or verb, which costs clarity for minimal savings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-inspection tool with no output schema, listing the returned attributes covers the main information need. It still omits what the input is and how errors are surfaced, so it is only partially complete.

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

Parameters2/5

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

Schema description coverage is 0% and the single path parameter is only labeled 'Path' with type string. The description never mentions the path argument, so it adds no meaning about whether it expects a local path, URL, or relative location.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a noun-phrase list of attributes (page count, page size, selectable text, encrypted) with no verb, so the agent must infer from the name pdf_info that it inspects a PDF and returns these properties. It does convey the resource and the returned facts, which distinguishes it somewhat from pdf_text or pdf_compress, but the lack of an explicit verb leaves the purpose vague.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus siblings such as pdf_text or check_page_file, and no prerequisites are stated. The agent can only infer usage from the attribute list itself.

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