Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Extract Pdf Actions

extract_pdf_actions

Extracts embedded Actions from every PDF level—document, page, annotation, and form field—and returns structured JSON for security review without analysis or evaluation.

Instructions

Pure extraction of Actions data from PDF file

Extract Actions from all levels of the PDF file and return structured JSON data, without any analysis or evaluation.

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

Input Schema

NameRequiredDescriptionDefault
file_pathYesAbsolute or relative path to the 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?

No annotations are supplied, so the description carries the full burden. It usefully discloses the traversal behavior (all levels) and the output shape (structured JSON, no analysis), but says nothing about encrypted/password-protected files, performance or size limits, or failure behavior for a non-PDF path.

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?

Short and front-loaded with the core operation. The two sentences overlap somewhat ('pure extraction' restated as 'without any analysis or evaluation'), a minor redundancy rather than a structural flaw.

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?

The tool is simple (one required path parameter) and an output schema exists, so return values need not be described. What is missing is any hint about read-only safety and error conditions, though the 'extraction only' framing implicitly conveys non-mutation.

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% and the single file_path parameter is fully documented there, so the description adds no meaning beyond the schema. Baseline 3 is appropriate for a one-parameter tool whose schema does the work.

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 and resource ('extraction of Actions data from PDF file') and adds scope ('from all levels of the PDF file'), which lets an agent distinguish this from analyze_pdf_actions_security. It stops short of 5 because 'Actions' is domain jargon (embedded PDF action/JavaScript objects) that is never explained.

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?

'without any analysis or evaluation' implicitly signals when this raw-extraction tool is preferred over an analyzing sibling, but no alternative is named and no preconditions are given. The agent must infer that analysis belongs to a different tool.

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