Skip to main content
Glama

Compress PDF

compress_pdf
Idempotent

Reduce PDF file size. 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": "compress_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNolow = smallest file (72 dpi), medium = balanced (150 dpi), high = best quality (300 dpi)medium
file_urlNoPublic https:// link to the file (preferred, up to 150 MB). Must be directly downloadable.
filenameNoOriginal file name, e.g. report.pdf
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.8/5.0
Behavior4/5

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

The description adds real context beyond the annotations: files are processed on third-party HuntPDF servers, deleted automatically, and the download link is temporary. That privacy/retention and output-lifetime disclosure is exactly the kind of behavior an agent needs to reason about before sending a user's document. It stops short of cost, rate limits, or how long 'temporary' actually is.

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 zero waste: the action first, then the operational caveats. Nothing is buried and nothing is redundant with the annotations or schema.

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 a 4-param schema that is fully documented and an output schema present, the description covers what remains: what the tool does and how the file is handled server-side. It is close to complete for a simple utility; the only missing piece is guidance on choosing the input mode.

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%, including enum meanings for level and size limits for file_url/file_base64, so the schema carries the parameter burden fully. The description adds nothing about parameters, which is acceptable given the coverage, so the baseline 3 applies. It also doesn't note that one of the two file inputs is effectively required despite the empty required list.

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 opens with a specific verb+resource: 'Reduce PDF file size.' That is unambiguous and clearly distinct from every sibling (merge_pdf, split_pdf, protect_pdf, etc.), none of which touch compression. An agent can select this tool 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 Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance at all. It doesn't say how to choose between the file_url and file_base64 input modes, when to prefer this over another conversion route, or what happens with already-optimized files. Only the schema hints at the URL-vs-base64 tradeoff.

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