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.
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.
Tool Definition Quality
Average 4.4/5 across 3 of 3 tools scored.
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.
All tool names follow a consistent verb_noun pattern: compress_pdf, inspect_pdf, optimize_pdf. This is uniform and predictable.
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.
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 toolscompress_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).
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | Optional JPEG quality 25-95 (default 82). Lower = smaller file. | |
| file_base64 | Yes | The PDF file contents, base64-encoded. | |
| target_size | No | Optional target output size in bytes (e.g. 500000 for 500KB). If omitted, compresses as much as reasonable. |
Tool Definition Quality
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.
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.
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.
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.
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.
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).
| Name | Required | Description | Default |
|---|---|---|---|
| file_base64 | Yes | The PDF file contents, base64-encoded. |
Tool Definition Quality
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.
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.
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.
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.
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.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| file_base64 | Yes | The PDF file contents, base64-encoded. |
Tool Definition Quality
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.
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.
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.
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.
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.
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.
Claim this connector by publishing a /.well-known/glama.json file on your server's domain with the following structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"maintainers": [{ "email": "your-email@example.com" }]
}The email address must match the email associated with your Glama account. Once published, Glama will automatically detect and verify the file within a few minutes.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Related MCP Servers
- AlicenseBqualityCmaintenanceCompress OCR-heavy PDFs into dense packed images so agents can work with long visual documents.31MIT
- AlicenseAqualityBmaintenancePDF 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.779MIT
- AlicenseAqualityAmaintenanceA 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.7381MIT

gurupdf-mcpofficial
AlicenseAqualityAmaintenanceConvert, 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.4701MIT