Skip to main content
Glama
pdf4me
by pdf4me

protect_pdf

Protect a local PDF by setting an open password and optional permission profile, using the PDF4me API. Provide file path and password; choose output directory and file name as needed.

Instructions

Password-protect a local PDF using the PDF4me Protect API. Provide the file path, open password, and pdf_permission (for example All). Optionally specify output directory and file name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passwordYesOpen password for the protected PDF (required).
file_pathYesLocal path to the PDF file to protect.
output_dirNo
pdf_permissionNoPDF permission profile string (for example All); matches API pdfPermission.All
output_file_nameNo
Behavior2/5

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

No annotations are present, so the description carries the full burden of behavioral disclosure. It fails to mention whether the original file is overwritten, whether API authentication is required, or what happens on success/failure. For a mutating operation this is a significant gap.

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 tight sentences with no filler. The main action and API are front-loaded, and optional parameters are listed succinctly.

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?

The description covers all input parameters and notes optional output via output_dir and output_file_name. However, without annotations or an output schema, it omits critical contextual details like side effects, required credentials, output behavior when no directory is specified, and error conditions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Description maps to all five parameters: file_path, password, pdf_permission, output_dir, and output_file_name. It adds the concrete example 'All' for pdf_permission and clarifies that output directory and file name are optional, which is beyond the partial schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description opens with a specific verb 'Password-protect' targeting a 'local PDF' via the PDF4me Protect API. This clearly distinguishes it from sibling tools like unlock_pdf, compress_pdf, and conversion tools.

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?

Provides clear operational instructions ('Provide the file path, open password, and pdf_permission') but never explicitly states when to choose this tool over alternatives such as unlock_pdf. Usage context is implied by the verb but no exclusions or alternative references are given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdf4me/pdf4me-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server