Skip to main content
Glama

Split a PDF

split_pdf
Read-onlyIdempotent

Extract a page range into one PDF, or split into single pages or chunks of N. Send base64 or a public URL. Private addresses are refused. Returns PDF base64 and a ZIP when there are several files.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "split_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic URL of a PDF. Private and local addresses are refused. Provide data or url.
dataNoPDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url.
modeNoextract
nameNodocument.pdf
everyNoUsed when mode is chunks.
rangeNoPages to keep, such as 1-3,5. Blank keeps every page.
filenameNo
mimeTypeNo

Output Schema

NameRequiredDescriptionDefault
zipYesZIP of the PDFs when there is more than one, otherwise null.
filesYes
pageCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world behavior, so the safety profile is covered. The description adds useful context beyond that: SSRF-style refusal of private addresses and the return shape (single PDF base64, or ZIP when multiple files). It stops short of error handling or size-limit behavior, which appears only in the schema (10 MB decode cap).

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 tight sentences: capability and modes first, accepted inputs second, output format last. No filler, and the most decision-relevant information 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?

With an output schema present, return values need not be fully specified, yet the description still summarizes them; combined with mode coverage and address restrictions, an agent has enough to call the tool correctly. The undocumented naming parameters are a minor residual gap for an 8-parameter tool.

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?

Schema coverage is only 50%, so the description must carry weight, and it does map mode values to their effects (extract uses a page range, pages produces singles, chunks uses N) and restates the url-vs-data rule. It leaves name, filename, and mimeType entirely unexplained, keeping it from a higher score.

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 specific verbs and modes: extract a page range, split into single pages, or chunk by N, operating on PDFs from base64 or URL. It never positions itself against close siblings like organize_pdf or render_pdf_pages, so the agent must infer which page-manipulation tool is appropriate.

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 three modes are named with a brief gloss of what each produces, which implies when each applies, but there is no explicit guidance on choosing between them or between this and sibling page tools (organize_pdf, extract_pdf_text). Input-source rules (base64 or public URL, private addresses refused) are the only hard constraints given.

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.