Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Analyze Pdf Actions Security

analyze_pdf_actions_security

Extract embedded PDF Actions from documents, pages, annotations, and form fields, then generate a security analysis prompt for AI-assisted risk assessment.

Instructions

Generate PDF Actions security analysis prompt

Extract all Actions data from PDF file and combine with predefined security analysis strategies to generate complete analysis prompt. The prompt contains analysis strategies, document basic information, extracted Actions data and analysis requirements.

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

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

B3.4/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 disclosure burden. It does describe what the output prompt is composed of (strategies, document basic information, Actions data, analysis requirements), which is useful, but it omits whether the operation is read-only, whether it depends on prior cache/load state from siblings, and roughly what cost/latency to expect.

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 first line restates the tool name/title ('Generate PDF Actions security analysis prompt') before the body repeats the same idea ('generate complete analysis prompt'). The output composition list is the only value-adding part; the framing is mildly redundant and not tightly front-loaded.

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?

For a one-parameter, non-destructive extraction-and-assembly tool with an output schema present, the definition conveys enough to call it correctly. The main residual gaps are prerequisite state (does the PDF need to be loaded/cached first) and how the generated prompt is consumed downstream.

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 (file_path) with 100% schema description coverage, so the schema already fully documents it. The description adds nothing about path resolution, accepted formats, or failure behavior for a bad path, leaving it at the baseline for a fully covered schema.

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 uses a specific verb (generate) and names the concrete artifact: a security analysis prompt built from extracted PDF Actions data plus predefined strategies. It partially distinguishes itself from the sibling extract_pdf_actions by making clear this tool goes further than raw extraction, though it never explicitly names that sibling.

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?

Usage is only implied: an agent can infer this is the tool for security-oriented analysis of Actions. There is no explicit when-to-use vs. when-to-use-extract_pdf_actions guidance, no statement of prerequisites (e.g., whether the document must be loaded into cache first), and no exclusions.

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