Skip to main content
Glama

Convert.Online

Run a PDF tool

pdf_tool

Run a PDF tool on files at URLs, or on local files uploaded with create_upload (import_ids), and return a download link: compress, merge, split, rotate, extract or remove pages, protect, unlock, add a watermark or page numbers, redact words, crop, flatten, grayscale, PDF/A, repair, compare two versions, overlay a letterhead, images to PDF, and more. Call list_pdf_tools first for the tool names and their options. Most tools take one PDF; merge, images-to-pdf, overlay and compare take several, in order. Runs against your account and counts toward your quota.

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": {
      "tool": "<tool>"
    },
    "name": "pdf_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolYesTool name from list_pdf_tools, e.g. "compress", "merge", "redact".
optionsNoThe tool's options by name, from list_pdf_tools — e.g. {"level": "extreme"} for compress, {"pages": "1-3"} for extract-pages, {"terms": "John Smith"} for redact.
sourcesNoURLs of the input files, fetched by our server, in order. One for most tools; two or more for merge, images-to-pdf, overlay (document, then overlay) and compare (original, then new version).
import_idsNoInstead of sources, for local files: the import_ids from create_upload, in the same order. Waits for files that are still being sent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / import_ids
      Added value: +{
      +  "description": "Instead of sources, for local files: the import_ids from create_upload, in the same order. Waits for files that are still being sent.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "tool",
      -  "sources"
      -]New value: +[
      +  "tool"
      +]
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=false, openWorld=true, idempotent=false), the description adds genuinely useful context: results come back as a download link (implying output is a new artifact, not in-place mutation, which reconciles destructiveHint=false), the call runs against the account and consumes quota, and import_ids waits for files still uploading. The notable gap is that it never says whether the call blocks or hands off to an async job, even though a get_job sibling exists.

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 long operation list is front-loaded and earns its place as a selection aid for a generic dispatcher, and the two actionable instructions (call list_pdf_tools first; quota consumption) are stated compactly. It is still a dense single paragraph, and the quota note could be set apart so it is not lost at the end.

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 dispatcher fronting dozens of underlying tools with no output schema, the description covers input channels, result form (download link), ordering semantics, the prerequisite discovery call, and the quota implication. The only real omission is sync-vs-async behavior and how a get_job reference would be used, which matters given the sibling exists.

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 every parameter is already documented in structured form, and the description largely restates it — sources are URLs fetched server-side, import_ids come from create_upload, options are keyed from list_pdf_tools. It does add a light gloss on arity and ordering (merge/images-to-pdf/overlay/compare take several, overlay order is document then overlay, compare is original then new), but that is also present in the schema, so the baseline 3 applies.

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 a specific verb and resource ("Run a PDF tool") and then enumerates the concrete operations covered — compress, merge, split, rotate, extract/remove pages, protect, unlock, watermark, redact, crop, flatten, grayscale, PDF/A, repair, compare, overlay, images-to-PDF. It also states the two input channels (URLs vs. create_upload import_ids) and the return shape (a download link), so an agent can tell this apart from siblings like convert or list_pdf_tools without opening the 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?

It gives an explicit precondition — "Call list_pdf_tools first for the tool names and their options" — and an explicit alternative path: use import_ids from create_upload instead of sources for local files. It also clarifies which tools take one file vs. several. What it lacks is any when-not guidance, e.g. when to use the sibling convert or get_job instead of routing through this dispatcher.

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