Skip to main content
Glama

pdf_compress

Shrink a PDF by rendering pages as images at 150 or 100 dpi to lower file size for sharing or storage; text is no longer selectable after compression.

Instructions

Make a PDF smaller. quality: 'smaller' (150 dpi) or 'smallest' (100 dpi). Pages become images, so text is no longer selectable; run read_text on the result if you need the words.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "pdf_compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
outputNo
qualityNosmaller

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are available, so the description has to disclose behavior on its own. It does disclose an important and irreversible-sounding consequence: pages are rasterized, so text selection is lost. It still does not say whether the original file is preserved or overwritten, where output is written when the output parameter is left empty, and whether it re-encodes images lossily.

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 the core action and the quality options front-loaded and the most important caveat attached to the consequence it creates. Nothing is redundant.

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 mutation tool with no annotations and no output schema, the description covers the highest-risk consequence (text loss) and explains the parameter choices. The one gap is output-path behavior; it is unresolvable from the description and the 0%-coverage schema.

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 coverage is 0%, so the description must carry the full explanatory burden. It gives useful meaning for the quality parameter and its two values along with their dpi, but it does not explain the output parameter, which defaults to an empty string and therefore has ambiguous destination semantics.

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 opens with a specific verb and resource: "Make a PDF smaller." That distinguishes it from read_text and, by implication, from the photo-oriented sibling, but it never names a sibling or states scope boundaries such as whether it handles only local files.

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?

It gives clear conditional routing for what to do after compressing ("run read_text on the result if you need the words") and explains the quality tradeoff between 'smaller' and 'smallest'. However, it never says when compression is warranted versus another path, nor when to prefer one quality level over the other beyond the dpi numbers.

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