Skip to main content
Glama

FreeDailyPro PDF Tools

pdf_compress_lossless_bw

Read-onlyIdempotent

Shrink a scanned PDF by turning pages into pure black-and-white JBIG2 pictures, each page coded exactly as read (no letter is ever swapped; safe for contracts and numbers). Colour and shading are lost and text on converted pages is no longer selectable. A page is converted only when that makes it at least 10% smaller; other pages (for example real-text pages) are copied untouched. Errors if the PDF is unreadable, password-protected, over 100 pages or cannot be made smaller.

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_lossless_bw"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNoRender resolution, 100 to 200. Default 150
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/5.0
Behavior5/5

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

Beyond the annotations (which already cover read-only, idempotent, non-destructive), the description discloses the exact quality tradeoff, the per-page 10% conversion threshold, the untouched-copy behaviour for real-text pages, and all four error conditions (unreadable, password-protected, over 100 pages, cannot be made smaller). This is precisely the destructive-to-content detail an agent needs before calling.

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?

Three dense sentences with zero filler: the benefit first, the cost second, the conversion rule and error surface last. Every clause carries information an agent needs, and the safety reassurance ('no letter is ever swapped') is front-loaded.

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?

Covers input limits, per-page behaviour, quality loss and failure modes thoroughly for a two-parameter tool with no output schema. The only gap is that it never hints at what is returned (a base64 PDF) or how dpi affects output quality, which an agent might need to reason about.

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 description coverage is 100%, so the schema already documents both fileBase64 and dpi (range 100-200, default 150). The description adds no further meaning about dpi or its quality/size tradeoff, so it only meets the baseline when the schema does the heavy lifting.

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?

States a specific verb and resource ('Shrink a scanned PDF') plus the exact mechanism ('turning pages into pure black-and-white JBIG2 pictures'), which is far more specific than the tool name alone. It does not name any sibling such as pdf_compress_smallest_bw or pdf_compress_greyscale, so the agent must infer the differentiation from the mechanism description.

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 caveats 'Colour and shading are lost and text on converted pages is no longer selectable' implicitly tell the agent this is unsuitable for colour documents or ones needing selectable text, and 'safe for contracts and numbers' signals the intended use case. However, no alternative tool is named for colour or greyscale input, so routing between the many compress siblings is left to inference.

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