Skip to main content
Glama

PDF Split API - extract or remove pages, one file per page

pdf_split
Read-onlyIdempotent

Split a PDF: keep pages (mode=pick, pages='1-3, 5'), remove pages (mode=remove) or one PDF per page (mode=each). Password-protected PDFs open with password. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/pdf-split.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "each",
      "fileName": "sample.pdf",
      "fileContent": "JVBERi0xLjMKJeLjz9MKMSAwIG9iago8PAovUHJvZHVjZXIgKHB5cGRmKQo+PgplbmRvYmoKMiAwIG9iago8PAovVHlwZSAvUGFnZXMKL0NvdW50IDEKL0tpZHMgWyA0IDAgUiBdCj4+CmVuZG9iagozIDAgb2JqCjw8Ci9UeXBlIC9DYXRhbG9nCi9QYWdlcyAyIDAgUgo+PgplbmRvYmoKNCAwIG9iago8PAovVHlwZSAvUGFnZQovUmVzb3VyY2VzIDw8Cj4+Ci9NZWRpYUJveCBbIDAuMCAwLjAgNTk1IDg0MiBdCi9QYXJlbnQgMiAwIFIKPj4KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDAxNSAwMDAwMCBuIAowMDAwMDAwMDU0IDAwMDAwIG4gCjAwMDAwMDAxMTMgMDAwMDAgbiAKMDAwMDAwMDE2MiAwMDAwMCBuIAp0cmFpbGVyCjw8Ci9TaXplIDUKL1Jvb3QgMyAwIFIKL0luZm8gMSAwIFIKPj4Kc3RhcnR4cmVmCjI1NgolJUVPRgo="
    },
    "name": "pdf_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNopick, remove or eacheach
filesNoOr several files: [{fileName, fileContent (base64)}]
pagesNoPages, e.g. 1-3, 5, 8-
fileNameNoFile name with extension, e.g. report.pdf
passwordNoPDF password if it is protected
fileContentNoThe file as base64 (a data: URI is fine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing server-side processing, immediate file deletion with no retention, the free quota (5 calls/day per IP), and both paid paths including the exact auth header (X-API-Key) and the x402 endpoint. These are operationally decisive details an agent cannot get from readOnlyHint/idempotentHint alone.

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 behavior and modes, then pricing/auth in a compact trailing block; nearly every clause carries information. The pricing URL and euro figure are the only slightly noisy element, though they are needed for auth selection.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should say what comes back — particularly for mode=each, where multiple files are produced and the agent needs to know whether it receives an array, a zip, or links. It also doesn't state size limits or which parameters are required (required list is empty, so an agent may not realize fileContent is needed). Solid on behavior, incomplete on response shape.

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 mode, pages, password and fileContent are already documented in the schema, including the same '1-3, 5' pages example. The description reinforces mode semantics but adds no syntax or constraint detail beyond the structured fields, so 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?

States a specific verb and resource ('Split a PDF') and then enumerates the three distinct semantics of the operation — keep pages (mode=pick), remove pages (mode=remove), one file per page (mode=each). An agent can tell exactly which of the three behaviors it will get, which is more than the name alone conveys.

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?

Gives concrete when-to-use guidance through mode examples with a real pages string ('1-3, 5') and notes the password case for protected PDFs. It does not explicitly route against siblings such as pdf_organize or pdf_merge, so the boundary between 'split' and 'organize' 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