Skip to main content
Glama

Protect PDF With Password

protect_pdf

Encrypt a PDF with AES-256 and a password so it requires a password to open and optionally blocks printing or copying, then saves the protected file.

Instructions

Encrypts a PDF (AES-256) so that it asks for a password to open, and optionally forbids printing or copying. The file is uploaded to conv2pdf and the call counts as one conversion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordYesPassword needed to open the PDF, 6 to 64 characters.
input_pathYesPath of the file on this computer: absolute, or relative to the working directory of the server.
output_pathNoWhere to write the result. Optional: by default next to the input file, under a name that is not taken. An existing file is never overwritten.
prevent_copyNoForbid copying text. Default: false.
prevent_printNoForbid printing. Default: false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior4/5

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

Beyond annotations, the description discloses the encryption algorithm (AES-256), that the file leaves the local machine for conv2pdf, and that the call consumes one conversion from quota - none of which the annotations convey. This is consistent with openWorldHint=true, readOnlyHint=false and destructiveHint=false; no contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tightly written sentences with no filler; the core behavior is front-loaded and the secondary operational fact (upload + quota) is appended where it belongs.

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 5-parameter, non-idempotent mutation with full schema coverage and no output schema, the description covers mechanism, side effects, and cost. Minor residual gaps are error/failure behavior (e.g., what happens if the password is rejected or the upload fails), which an agent would need before relying on it.

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%, so password, input_path, output_path, prevent_copy and prevent_print are already fully documented in the schema. The description restates the optional print/copy restrictions but adds no new syntax, format, or default detail.

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 and resource ('Encrypts a PDF') plus a concrete mechanism (AES-256) and the two protection modes, so the agent knows exactly what the tool produces. It does not explicitly contrast itself with the inverse sibling unlock_pdf, so it stops short of full sibling differentiation.

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 implied by the purpose (add open-password and printing/copying restrictions) and the note that the call is uploaded to conv2pdf and consumes one conversion gives decision-relevant cost context. There is no explicit when-to-use/when-not statement and no reference to alternatives such as unlock_pdf.

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