Skip to main content
Glama

Compress PDF

compress_pdf

Reduce PDF file size by lowering image resolution, then upload it to conv2pdf for conversion.

Instructions

Reduces the size of a PDF by lowering the resolution of its images. The file is uploaded to conv2pdf and the call counts as one conversion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qualityNoResolution kept for the images: low is 72 DPI and gives the smallest file, medium 150 DPI, high 300 DPI. Default: medium.
passwordNoPassword of the PDF, only if it asks for one to open. The result has no password.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true and readOnlyHint=false. The description adds genuinely new behavioral facts beyond them: the file leaves the machine to be uploaded to conv2pdf, the call consumes one conversion from a quota, and password-protected inputs yield an unprotected result. It stops short of stating what is returned or how long the upload takes.

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 short sentences with no filler; the core purpose leads and the operational caveat (external upload, one conversion) follows. Nothing is redundant with the title 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?

For a four-parameter conversion tool with no output schema, the definition covers what the operation does and its side effects (upload, quota, password stripped), which is enough to call it safely. It could still say what the caller receives back (e.g., confirmation plus the new file path) to close the last 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% – quality levels, DPI mapping, default, password handling and output_path collision behavior are all documented in the schema. The description adds no parameter detail beyond that, so the baseline 3 applies.

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 (reduces the size) and resource (a PDF) plus the mechanism (lowering image resolution), which cleanly separates it from every sibling such as merge_pdfs, rotate_pdf, or extract_pdf_pages. An agent can pick it without opening a 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?

Usage is only implied by the purpose statement; there is no explicit when-to-use/when-not rule and no routing to an alternative (e.g., a lossless-compression sibling, or a different tool when only page removal is wanted). The one contextual hint given is the quota cost of a conversion.

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