Skip to main content
Glama

FreeDailyPro PDF Tools

pdf_compress_balanced

Read-onlyIdempotent

Shrink a PDF the gentle way (the site's Balanced mode): tidy the file, empty blank pages, and re-save the pictures inside at about 140 dpi. Text stays selectable; links, bookmarks, form fields and page sizes are kept. Returns the smaller file plus the levels applied. Errors if the PDF is unreadable, password-protected, over 100 pages, or if nothing gets smaller (for example a PDF that is already mostly text); in that case try pdf_compress_aggressive.

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": {
      "fileBase64": "<fileBase64>"
    },
    "name": "pdf_compress_balanced"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileBase64YesThe PDF, base64 encoded (up to 20 MB, up to 100 pages)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive) it discloses what is preserved (selectable text, links, bookmarks, form fields, page sizes), what is changed (blank pages emptied, images re-encoded near 140 dpi), the return payload, and the four failure conditions including password protection and the 100-page cap. This is exactly the behavioral context annotations cannot carry.

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?

Purpose is front-loaded in the first clause and the sentences are dense with actionable facts. A couple of phrasings are loose ("empty blank pages" and "the gentle way"), and the paragraph could be split for scanability, but there is no 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?

With no output schema, the description still explains what comes back (the smaller file plus the levels applied), and it covers the error surface an agent must handle. For a one-parameter tool this leaves nothing an agent needs to know before calling it.

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?

There is a single required parameter with 100% schema coverage, and the schema already documents base64 encoding plus the 20 MB / 100-page limits. The description reinforces the page cap through its error list but adds no new syntax or encoding guidance beyond the schema, which is the expected baseline for a one-parameter tool.

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 names a specific verb and resource ("Shrink a PDF"), pins down the exact mode ("the site's Balanced mode"), and enumerates the concrete operations: tidy the file, empty blank pages, re-save pictures at ~140 dpi. That distinguishes it from the aggressive/extreme/greyscale siblings without needing their schemas.

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 gives an explicit fallback rule: if the tool errors because nothing gets smaller (e.g. a mostly-text PDF), use pdf_compress_aggressive. It also implies this is the gentle/privacy-preserving default by promising text stays selectable and structure is kept. It does not state when to prefer lossless_bw or greyscale instead, so the routing is clear only for the failure case.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources