Skip to main content
Glama
pdfdotco

PDF.co MCP Server

Official
by pdfdotco

pdf_add_password

Add password protection to PDF files. Set user and owner passwords to control viewing, printing, and editing permissions.

Instructions

Add password protection to a PDF file.
Ref: https://developer.pdf.co/api/pdf-password/add.md

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to the source PDF file. Supports publicly accessible links including Google Drive, Dropbox, PDF.co Built-In Files Storage. Use 'upload_file' tool to upload local files.
nameNoFile name for the generated output. (Optional)
api_keyNoPDF.co API key. If not provided, will use X_API_KEY environment variable. (Optional)
passwordNoPassword of the PDF file if it's already password-protected. (Optional)
httppasswordNoHTTP auth password if required to access source url. (Optional)
httpusernameNoHTTP auth user name if required to access source url. (Optional)
print_qualityNoAllowed printing quality. Valid values: HighResolution, LowResolution.
user_passwordNoThe optional user password will be asked for viewing and printing document.
owner_passwordYesThe main owner password that is used for document encryption and for setting/removing restrictions.
allow_fill_formsNoAllow or prohibit the filling of interactive form fields (including signature fields) in the PDF documents.
allow_print_documentNoAllow or prohibit printing PDF document.
encryption_algorithmNoEncryption algorithm. Valid values: RC4_40bit, RC4_128bit, AES_128bit, AES_256bit. AES_128bit or higher is recommended.AES_256bit
allow_modify_documentNoAllow or prohibit modification of PDF document.
allow_assembly_documentNoAllow or prohibit assembling the document.
allow_content_extractionNoAllow or prohibit copying content from PDF document.
allow_modify_annotationsNoAllow or prohibit interacting with text annotations and forms in PDF document.
allow_accessibility_supportNoAllow or prohibit content extraction for accessibility needs.
Behavior2/5

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

With no annotations, the description bears the full burden of behavioral disclosure, but only states the action without explaining side effects, output format, authentication requirements, or whether the operation is asynchronous. The presence of sibling tools like wait_job_completion and get_job_check suggests a job-based workflow, but the description remains silent on this.

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?

The description is a single sentence followed by a reference link. It is extremely concise, front-loaded with the core action, and contains no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (17 parameters, no output schema, no annotations), the description is too minimal. It omits critical context such as the return value, the job-based workflow implied by sibling tools, and how to handle the generated output file.

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 all 17 parameters are already described in the schema. The tool description adds no additional parameter semantics beyond the general 'password protection' statement, so the baseline score of 3 is appropriate.

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?

The description clearly states the tool's function: 'Add password protection to a PDF file.' It uses a specific verb and resource, and the verb 'Add' explicitly contrasts with the sibling tool 'pdf_remove_password'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No usage context is provided beyond the action itself. There is no mention of when to use this tool vs. alternatives, prerequisites, or when not to use it. The description does not differentiate from other PDF manipulation tools like pdf_merge or pdf_remove_password.

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/pdfdotco/pdfco-mcp'

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