Skip to main content
Glama

PDF Slim — PDF Compression for AI

Server Details

Compress PDFs to exact target sizes (82-93% smaller). Tools: compress_pdf, optimize_pdf, inspect_pdf

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsA

Average 4.4/5 across 3 of 3 tools scored.

Server CoherenceA
Disambiguation4/5

compress_pdf and optimize_pdf both reduce file size, which creates some overlap, but the descriptions clearly distinguish lossy re-encoding from lossless optimization. inspect_pdf is entirely separate.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern: compress_pdf, inspect_pdf, optimize_pdf. This is uniform and predictable.

Tool Count5/5

With only three tools, the set is tightly scoped to the server's stated purpose of PDF compression and optimization. Every tool serves a clear function without unnecessary bloat.

Completeness5/5

The server covers the core operations for PDF size management: inspect to assess the file, compress for lossy size reduction, and optimize for lossless cleanup. No obvious gaps for its intended use case.

Available Tools

3 tools
compress_pdfAInspect

Compress a PDF file to reduce its size. Renders pages and re-encodes as JPEG, iterating quality/resolution to hit a target size. Use this when a user wants to shrink a PDF (e.g. to 500KB, 1MB, or "smaller"). Free anonymous tier: 20 calls/day per IP, files up to 10MB. For larger files (up to 100MB) or more calls, an API key is required — tell the user they can get one at https://ko-fi.com/yugutou/shop, or point them to the free website https://pdfslim.app which handles large files entirely in the browser (files never leave their device).

ParametersJSON Schema
NameRequiredDescriptionDefault
qualityNoOptional JPEG quality 25-95 (default 82). Lower = smaller file.
file_base64YesThe PDF file contents, base64-encoded.
target_sizeNoOptional target output size in bytes (e.g. 500000 for 500KB). If omitted, compresses as much as reasonable.
Behavior5/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It reveals the internal process (iterating quality/resolution, re-encoding as JPEG), rate limits (20 calls/day per IP), file size limits (10MB), and even mentions the need for an API key for larger files. This is thorough and goes beyond a simple 'compress' statement.

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 somewhat long but front-loaded with the core purpose and method. Each sentence adds useful information (usage, limitations, alternatives), though some might find the API key and website details excessive. It remains efficient and focused.

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

Completeness5/5

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

For a tool with no annotations and no output schema, the description is remarkably complete. It covers purpose, method, usage context, file size and rate limits, alternatives for larger files, and even where to obtain API keys. It does not explicitly describe the return value, but for a compression tool this is implied and acceptable.

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

Parameters4/5

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

The schema already provides 100% coverage of parameter descriptions, so the baseline is 3. The description adds value by explaining how quality and target_size interact (iterating quality/resolution) and gives concrete examples (e.g., 500KB, 1MB), enriching the semantic understanding beyond the schema.

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 clearly states the tool compresses PDFs to reduce size, and explains the method (rendering pages and re-encoding as JPEG). However, it does not distinguish itself from the sibling tool 'optimize_pdf', so it lacks explicit sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly says 'Use this when a user wants to shrink a PDF' and provides examples (500KB, 1MB, 'smaller'). It also gives clear alternatives for larger files (API key or the free website), effectively covering when to use and when not to use this tool.

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

inspect_pdfAInspect

Inspect a PDF: page count, file size, password protection. Use before deciding how to process a PDF. Free anonymous tier: 20 calls/day per IP. More calls need an API key (https://ko-fi.com/yugutou/shop).

ParametersJSON Schema
NameRequiredDescriptionDefault
file_base64YesThe PDF file contents, base64-encoded.
Behavior4/5

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

With no annotations provided, the description carries the full transparency burden. It discloses rate limits and the need for an API key beyond the free tier, and it names the exact inspection results. It does not explicitly state that the PDF is unmodified, but 'inspect' strongly implies a read-only operation.

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 three short sentences, front-loaded with the core purpose, followed by usage context and auth/rate-limit details. Every sentence earns its place, and there is no repetition of schema information or filler.

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

Completeness5/5

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

For a single-parameter inspection tool with no output schema, the description is complete: it states what the tool returns, when to use it, and any access limitations. The listed outputs (page count, file size, password protection) sufficiently cover the expected return values.

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 already fully describes file_base64 as 'The PDF file contents, base64-encoded,' so the description adds no additional parameter-specific meaning. Baseline of 3 is appropriate since there is no ambiguity or undocumented aspect to compensate for.

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 'Inspect a PDF' and concretely lists what the tool returns (page count, file size, password protection), making its purpose unmistakable. This metadata-gathering role is clearly distinct from sibling tools compress_pdf and optimize_pdf.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It explicitly advises 'Use before deciding how to process a PDF,' providing a clear when-to-use signal. It does not explicitly name alternatives or state when not to use it, but the inspect/compress/optimize verb contrast makes the intended workflow obvious.

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

optimize_pdfAInspect

Lossless PDF optimization: garbage collection, stream re-compression. No quality loss. Good for PDFs with redundant data; effect is small on already-optimized files. Free anonymous tier: 20 calls/day per IP, files up to 10MB. Larger files / more calls need an API key (https://ko-fi.com/yugutou/shop) or the free website https://pdfslim.app.

ParametersJSON Schema
NameRequiredDescriptionDefault
file_base64YesThe PDF file contents, base64-encoded.
Behavior4/5

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

With no annotations, the description carries the burden. It discloses lossless behavior, rate limits (20 calls/day/IP), file size cap (10MB), and auth requirements (API key for larger limits). Missing return value details, but substantial behavioral transparency.

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 compact and front-loaded: purpose first, then usage guidance, then limitations/auth. Every sentence adds value without redundancy.

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 simple one-parameter tool with no output schema or annotations, the description provides sufficient context on purpose, usage, and constraints. It lacks explicit return value description, but the expected output (optimized PDF) is implicit and reasonably inferable.

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

Parameters4/5

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

Schema covers the single parameter (file_base64) at 100%, and the description adds meaningful constraints: file size limit and API key requirement for larger files, which helps agents validate inputs before calling.

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 states it performs lossless PDF optimization with specific techniques (garbage collection, stream re-compression) and explicitly notes no quality loss. This distinguishes it from likely lossy compression tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Provides clear usage context: good for PDFs with redundant data, and notes effect is small on already-optimized files. However, it does not explicitly compare with sibling tools like compress_pdf or state when not to use it.

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

Discussions

No comments yet. Be the first to start the discussion!

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    PDF extraction that actually works. The only extractor that audits every page. #2 on opendataloader-bench. 5 MCP tools for AI agents: metadata, convert, analyze, batch, structured extraction.
    7
    79
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    A local-first PDF tool for merging, splitting, rotating, watermarking, Bates-numbering, cleaning metadata, and counting pages — all operations happen on your machine with no network transmission.
    7
    38
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Convert, compress, merge, split and OCR PDFs plus 100+ file formats (Word, Excel, images, ebooks, video) right inside your AI agent. Exposes 126 GuruPDF tools over MCP — works with Claude, Cursor, VS Code, Windsurf, or any MCP client.
    4
    70
    1
    MIT

View all MCP Servers

Try in Browser

Your Connectors

Sign in to create a connector for this server.

Resources