Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Load All Annotations In Page

load_all_annotations_in_page

Retrieve every annotation on a specified PDF page using its file path and zero-based page index to inspect embedded actions and assess security risks.

Instructions

Load all annotations for specified 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>",
      "page_index": "<page_index>"
    },
    "name": "load_all_annotations_in_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesPDF file path
page_indexYesPage index (starting from 0)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. "Load" suggests a read, but the description says nothing about whether results come from a cache (relevant given sibling tools like clear_pdf_cache and get_cache_status), whether it requires an unlocked/decrypted document (see set_pdf_password), or what happens on an out-of-range page index.

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 front-loaded sentence with no filler, and the scoping qualifier sits immediately after the action. It is arguably too terse rather than too long, but nothing is wasted.

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

Completeness5/5

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

The tool takes two fully documented parameters, has an output schema so return values need not be described, and the description states the operation and its scope unambiguously. For a simple per-page read, nothing an agent needs in order to invoke it is missing, though behavioral context would still be welcome.

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 coverage is 100%, with file_path and page_index fully documented including the zero-based indexing convention, so the schema does the heavy lifting. The description adds no meaning beyond that, which is the expected baseline when the schema is complete.

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?

"Load all annotations for specified page" gives a specific verb (load), resource (annotations), and scope (a single specified page), so an agent can tell it apart from a document-wide loader like load_all_annotations. It stops short of explicitly naming that sibling or stating the contrast, so it is clear but not maximally differentiating.

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 phrase "for specified page" implies this is the per-page variant, which hints at when to choose it over a whole-document load, but there is no explicit when-to-use or when-not-to-use statement and no prerequisites such as whether the document must be opened or decrypted first.

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