Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Get Document Overview

get_document_overview

Provides a structural overview of a PDF, covering basic info, document structure, functional features, and statistics to support quick inspection and analysis.

Instructions

Get complete structural overview of PDF document

Provides comprehensive information about PDF document, including basic info, document structure, functional features and statistical data.

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_path": "<file_path>"
    },
    "name": "get_document_overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to PDF file

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description must carry behavioral disclosure, and it does state what categories of information come back. However, it omits operationally important traits for PDF work: whether encrypted documents require set_pdf_password first, whether results are cached (get_cache_status exists), and whether the call is expensive on large files.

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?

Two short sentences that front-load the core purpose. The second sentence partially restates the first ('comprehensive information about PDF document') before adding the useful enumeration, which is mild redundancy but not harmful.

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?

An output schema exists, so return-value explanation is not required, and with one fully documented parameter the call mechanics are covered. The remaining gap is guidance on encrypted inputs and how this tool relates to the narrower inspection siblings, which keeps it below a 5.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains that file_path is an absolute or relative path. The description adds nothing further, such as behavior on missing files or password-protected PDFs, so the baseline of 3 applies.

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 opens with a specific verb and resource: 'Get complete structural overview of PDF document', then enumerates the content categories (basic info, structure, features, statistics). This is clearly distinct from the sibling page/text/object-level extractors, though it never names a sibling explicitly to sharpen the boundary.

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?

The word 'overview' implies this is the broad survey tool to call before drilling into page-level siblings, but that sequencing is left implicit. There is no explicit when-to-use, when-not-to-use, or stated alternative such as get_page_information_by_spans for page-level detail.

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