Skip to main content
Glama
twoer

pdf-toolbox-mcp

by twoer

Tool Compress Pdf

tool_compress_pdf

Reduce PDF file size with lossy image compression. Target a specific megabyte size and it lowers quality automatically until the file fits.

Instructions

压缩 PDF(ghostscript,有损:图像重采样)。target_mb 给定时沿 ebook→screen 下探直到达标(尽力而为)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
outputNo
qualityNoebook
overwriteNo
target_mbNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively discloses that compression is lossy, uses image resampling via ghostscript, and that target_mb triggers a best-effort descent from ebook to screen quality. This is meaningful behavioral context beyond a simple 'compress PDF' statement, though it does not describe overwrite safety or output-file behavior.

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?

The description is exceptionally concise, with no filler. It front-loads the core purpose, then adds the key behavioral nuance about target_mb and quality descent. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given five parameters, zero schema descriptions, and no annotations, the description is not complete enough for an agent to confidently invoke the tool in all cases. The output schema may cover return shape, but the parameter semantics for output, overwrite, and path behavior are still missing, and the quality parameter's full range of allowed values is unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for the five parameters. It adds meaning for target_mb (size target) and quality (values ebook and screen), but it does not explain path, output, or overwrite semantics. That leaves a significant portion of the parameter surface undocumented.

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 clearly identifies the tool as compressing PDFs, specifies the underlying engine (ghostscript), and the lossy nature (image resampling). This is a specific verb+resource pairing that makes the tool's purpose unmistakable, and it is distinct from sibling tools which do other PDF operations.

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?

The description implies the tool is used to reduce PDF file size, and it explains the quality descent path (ebook→screen) when target_mb is set. However, it does not explicitly state when to use this tool versus alternatives, mention prerequisites, or call out situations where lossy compression would be inappropriate.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/twoer/pdf-toolbox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server