Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Get Page Information By Spans

get_page_information_by_spans

Retrieve PDF page information for selected page ranges or individual pages, enabling targeted document inspection without processing the entire file.

Instructions

Get information for multiple pages by page range

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>",
      "page_spans": "<page_spans>"
    },
    "name": "get_page_information_by_spans"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesPDF file path
page_spansYesPage range, supported formats: "0", "0-2", "1,3,5", "0-2,5,7-9"

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden but discloses almost nothing beyond the implied read nature of 'Get'. It says nothing about how large page ranges are handled, whether unopened or password-protected PDFs fail, whether results are cached, or any cost/limits, leaving the agent unable to anticipate behavior.

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?

A single short sentence, front-loaded with the verb and resource, with no filler. Its brevity is efficient rather than padded, though the terseness borders on under-specification.

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 values needn't be described. Still, for a tool with zero annotations and a vague 'information' payload, the definition should at minimum say what class of data is returned and how page selection interacts with the document state.

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% — both file_path and page_spans are documented, including the supported range syntax. The description's 'by page range' merely echoes that, adding no new meaning such as whether ranges are inclusive, ordering of results, or behavior on out-of-bounds pages.

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 verb ('Get') and resource ('information for multiple pages') are stated, and 'by page range' clarifies the selection mechanism. However, 'information' is unspecified — an agent cannot tell what kind of data is returned or how this differs from siblings like get_page_text_content or get_page_index_by_pdfobjnum. It largely restates the title.

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 when-to-use guidance at all: no exclusion of alternative tools for paging through a PDF, no mention of prerequisites such as a loaded/unlocked document, and no hint about when a single-page or overview tool would be preferable. The agent must infer everything from the name.

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