Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Get Page Text Content

get_page_text_content

Extract all visible text and basic metadata from a specified PDF page by passing a file path and optional page number. Use it to inspect page content for analysis or review.

Instructions

Extract text content and metadata from specified PDF page

Extract all visible text content from specified page of PDF, while providing basic information about the page.

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_page_text_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to PDF file
page_numberNoPage number starting from 0. Default is 0 (first page)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.1/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 add one useful constraint, that only 'visible' text is returned and that page-level metadata accompanies it, but it says nothing about out-of-range page handling, encrypted or password-protected PDFs (a set_pdf_password sibling exists), or whether embedded annotations are included.

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?

The description is short and front-loaded, but the opening line duplicates the sentence that follows it almost verbatim, so roughly half the text is redundant. Two sentences plus a restated header is tolerable but not economical.

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?

An output schema exists, so return-value detail is not required, and the two-parameter surface is fully covered by the schema. For a simple read tool this is close to adequate, but the missing notes on invalid page numbers and password-protected files leave real operational gaps.

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%, so both file_path and page_number are already fully documented in the schema, including the zero-based default. The description adds no extra semantics such as path resolution rules or behavior when page_number exceeds the page count, so baseline 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 names a specific verb (extract) and resource (visible text content plus page metadata) scoped to a single PDF page, which is concrete enough to act on. It does not distinguish this from close siblings like get_page_information_by_spans or get_document_overview, so an agent cannot tell from the text alone which extraction tool to pick.

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 explicit when-to-use or when-not-to-use guidance and no mention of alternatives. The phrase 'specified page of PDF' merely restates the input, so selection between this and the span-based or overview tools is left entirely to inference.

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