Skip to main content
Glama

FreeDailyPro PDF Tools

pdf_compress_smallest_bw

Read-onlyIdempotent

Shrink a scanned PDF to the smallest black-and-white file with JBIG2 symbol mode (letter shapes stored once, typically 3x smaller than lossless black-and-white). A letter can rarely be swapped for a look-alike (6 and 8 in tiny print): check important numbers. Colour is lost and text on converted pages is no longer selectable. A page converts only if it gets at least 10% smaller. Errors if the PDF is unreadable, password-protected, over 100 pages or no smaller file results.

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

Input Schema

NameRequiredDescriptionDefault
dpiNoRender resolution, 100 to 200. Default 150
thresholdNoHow alike two letter shapes must look to share one stored shape, 0.4 to 0.9. Default 0.85; higher is safer and slightly larger
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

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds substantive behavior beyond them: JBIG2 symbol substitution risk ('a letter can rarely be swapped for a look-alike... check important numbers'), a per-page 10% gain threshold, and explicit failure conditions (unreadable, password-protected, over 100 pages, no smaller result). It does not say what is returned or whether the original is preserved, which is the main remaining gap for a lossy operation.

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?

Front-loaded with the core value proposition, then hazards, then error conditions — a sensible risk-first ordering in four dense sentences. The '6 and 8 in tiny print' example earns its place, though the error list could be tightened.

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 lossy single-file transform with no output schema, the definition covers size limits, page limits, lossiness, accuracy caveats and failure modes. The missing piece is the return value (compressed PDF payload and resulting size), which an agent would need to chain on the result.

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 coverage is 100%, so dpi and threshold are already fully documented; the description adds conceptual context for symbol-mode compression ('letter shapes stored once') but never mentions either parameter or how threshold trades safety against size. Baseline 3 applies when the schema carries the parameter burden.

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?

States a specific verb ('Shrink') and resource ('scanned PDF') with a precise differentiator: 'smallest black-and-white file with JBIG2 symbol mode' and 'typically 3x smaller than lossless black-and-white', which directly separates it from pdf_compress_lossless_bw. An agent can pick this over its compression siblings without opening any schema.

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?

Usage context is clear (scanned PDFs needing maximum size reduction) and the downside conditions that argue against it are stated: colour is lost and converted pages lose selectable text. It stops short of naming when to prefer a sibling such as lossless or greyscale, leaving that inference to the agent.

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