Skip to main content
Glama
PDF Action Inspector

PDF Action Inspector

Official

Set Pdf Password

set_pdf_password

Stores and verifies a password for an encrypted PDF so the file can be opened and processed.

Instructions

Set and verify password for encrypted PDF file

Store password for specific PDF file and immediately verify it works by attempting to open the PDF. This allows processing of encrypted PDFs by providing the correct password.

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>",
      "password": "<password>"
    },
    "name": "set_pdf_password"
  }
}

Input Schema

NameRequiredDescriptionDefault
passwordYesPassword for the encrypted PDF file
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.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does disclose the useful side effect of persisting the password and immediately verifying it, but it omits critical behavior: whether a wrong password is still stored, whether failure raises an error or returns a status, whether the stored secret persists across sessions, and any security caveat about plaintext credential storage.

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 summary line is front-loaded and the follow-up sentences are short and purposeful, explaining persistence and verification. Minor redundancy in restating the title with 'Set and verify password for encrypted PDF file'.

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-value explanation is not required, and the two required params are simple strings. Still, for a tool that stores credentials and can fail verification, the description leaves the failure path and storage lifetime unexplained, which is a meaningful gap.

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%, so both parameters are already fully documented in the input schema, including the fact that file_path accepts absolute or relative paths. The description adds no format, encoding, or path-resolution detail beyond that, so the baseline of 3 applies.

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?

States a specific verb pair and resource: set and verify a password for an encrypted PDF file. The action is unambiguous and no sibling tool (cache, extraction, page info) overlaps with it, though the description does not explicitly differentiate itself from them.

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?

Use is implied by the sentence 'This allows processing of encrypted PDFs by providing the correct password', which tells the agent this is a prerequisite step for encrypted documents. However, there is no explicit when-not guidance, no mention of what to do if verification fails, and no ordering advice relative to the other PDF tools.

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