Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Load All Annotations

load_all_annotations

Extract all PDF annotations and analyze their associated Actions to inspect form fields, text, links, and other annotation types.

Instructions

Load all annotations in PDF file and analyze their Actions

Extract all types of annotations in PDF, including Widget annotations (form fields), text annotations, link annotations, etc., and analyze Actions associated with each annotation.

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": "load_all_annotations"
  }
}

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

C2.9/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. It never clarifies what 'analyze their Actions' actually produces, whether the file must be decrypted first (a relevant concern given the set_pdf_password sibling), or how failures on malformed PDFs are handled. Only the read-like intent is implied, not stated.

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?

The description is short and front-loads the core action, but the second paragraph largely restates the first ('load all annotations' vs 'extract all types of annotations'), with only the subtype enumeration adding new information.

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?

With one parameter and an output schema present, return-value explanation is not required, and the annotation-type enumeration covers scope well. However, the vague 'analyze Actions' promise and the silence on encryption/password requirements and page-vs-document selection leave real gaps for a tool in a suite that includes both page-level annotation loading and password handling.

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 full schema description coverage ('Absolute or relative path to PDF file'), so the schema already does the work. The description adds nothing about the path beyond what the schema states, which is the expected baseline for high coverage.

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 states a concrete verb and resource — load all annotations in a PDF and analyze their Actions — and enumerates annotation subtypes (Widget/form fields, text, links) so the scope is unambiguous. It does not explicitly contrast itself with the sibling load_all_annotations_in_page, leaving the document-level vs page-level distinction implicit.

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 statement of when to choose this over load_all_annotations_in_page or extract_pdf_actions, and no mention of prerequisites such as an unencrypted file or set_pdf_password. Usage is only inferable from the phrase 'load all annotations in PDF file'.

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