Skip to main content
Glama

Unlock PDF

unlock_pdf
Idempotent

Remove the password/restrictions from a PDF the user owns. If it needs a password to open, the user must supply it. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "unlock_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_urlNoPublic https:// link to the file (preferred, up to 150 MB). Must be directly downloadable.
filenameNoOriginal file name, e.g. report.pdf
passwordNoCurrent password, if the PDF needs one to open
file_base64NoThe file content as base64 (only for small files, max 10 MB). Use instead of file_url.

Output Schema

NameRequiredDescriptionDefault
pagesNo
file_nameYes
download_urlYesLink to download the result
expires_in_minutesYesThe link stops working after this time (or 3 minutes after the first download)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare idempotent, non-destructive, open-world behavior, so the bar is lower; the description still adds meaningful third-party context that annotations cannot express: processing happens on HuntPDF servers, files are deleted automatically, and the returned download link expires. It does not address failure modes (e.g., wrong password, oversized file), which keeps it below a 5.

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?

Three tight sentences, front-loaded with what the tool does, then the prerequisite, then data-handling caveats. Nearly zero waste, though the deletion/link sentence could be compressed into one clause.

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?

With an output schema present, return values need no explanation, and the description covers ownership, password handling, and server-side data lifecycle. What remains unstated is error behavior for a bad password and whether the unlocked file is returned as a new document, which is a minor but real 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 description coverage is 100%, so all four parameters (file_url, filename, password, file_base64) are already documented, including the 150 MB vs 10 MB limits. The description only reinforces the password parameter's meaning with the 'must supply it' condition, adding little beyond the schema – the expected baseline of 3.

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?

States a specific verb and resource ('Remove the password/restrictions from a PDF') with a scope qualifier ('the user owns'), which is the exact inverse of the sibling protect_pdf and cannot be confused with compress_pdf, merge_pdf, or the converters. An agent can identify the operation without opening the schema.

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 a conditional prerequisite ('If it needs a password to open, the user must supply it') and an ownership constraint, which is real usage guidance. It does not say when to prefer this over protect_pdf or what to do if the PDF has only restrictions and no open password, so usage is implied rather than fully spelled out.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources