Skip to main content
Glama

Compress Pdf

compress_pdf
Idempotent

Reduce PDF file size by applying quality presets to URL or Base64 inputs, with optional metadata removal for smaller documents.

Instructions

Reduce the file size of a PDF.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qualityNoCompression preset.medium
source_urlNoPublic URL of the PDF.
file_base64NoBase64-encoded PDF.
remove_metadataNoStrip PDF metadata to reduce size further.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

C2.9/5.0
Behavior2/5

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

The description adds no behavioral context beyond the operation's purpose; it does not disclose compression quality trade-offs, what happens if neither source_url nor file_base64 is provided, or how metadata removal affects the output. The idempotentHint and openWorldHint annotations exist, but the description itself does not add useful behavioral detail.

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?

The description is a single short, front-loaded sentence with no filler. It earns its place by clarifying that the tool reduces file size rather than merely 'compressing' ambiguously, though it leaves out other useful context.

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?

With a fully documented schema, an output schema, and annotation hints, the entry is minimally sufficient for a straightforward compression tool. However, it does not clarify that one of source_url or file_base64 must be supplied, nor does it warn about lossy quality trade-offs, which are meaningful gaps.

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?

The schema has 100% coverage and each parameter already has a meaningful description, so the tool description does not need to repeat parameter details. The description adds no new meaning beyond the schema, making the baseline 3 appropriate.

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

Purpose4/5

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

The description states a concrete action ('Reduce the file size') and a specific resource ('a PDF'), so an agent can identify the core purpose. It is reasonably distinct from siblings like compress_image and merge_pdfs, though it does not explicitly differentiate itself from other PDF tools.

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 guidance is given on when to use this tool versus alternatives such as compress_image, convert_file, or the other PDF operations. The schema documents parameters, but the description provides no trigger conditions, prerequisites, or exclusions.

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