Skip to main content
Glama
EigenCharlie

pdf-toolkit-mcp

by EigenCharlie

split_pdf

Split a PDF into multiple PDFs by page ranges or fixed-size chunks. Output is a zip archive of the resulting files.

Instructions

Split a PDF into multiple PDFs by page ranges (e.g. "1-3,5-7") or into fixed-size chunks. Returns a .zip archive containing the resulting PDFs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangesNoPage ranges to extract, e.g. "1-3,5-7". If omitted and fixed_range is set, splits into fixed-size chunks.
input_fileYesPath to the PDF file to split.
fixed_rangeNoIf set, splits the PDF into chunks of this many pages each.
output_pathNoOptional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input.
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the output format (.zip) and the two splitting modes, but misses details like whether the original file is modified, error behavior if no range is specified, or required permissions.

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?

Two concise sentences front-load the main purpose and output. No filler words; every sentence is essential.

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?

Given the complexity (4 params, no output schema, no annotations), the description covers the main use cases and output format. However, it lacks details on error conditions, file existence requirements, and what happens when both 'ranges' and 'fixed_range' are omitted.

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 100%, so the baseline is 3. The description adds value with an example for 'ranges' and clarifies the behavior of 'output_path' for directories vs files, exceeding basic schema descriptions.

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?

The description clearly states the tool splits a PDF by page ranges or fixed-size chunks and returns a zip. It specifies the resource (PDF) and action (split), but does not explicitly differentiate from the sibling tool 'extract_pdf_pages' which may have similar functionality.

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 description provides context on when to use the tool (for splitting by ranges or chunks) but does not mention when to avoid it or alternatives like extract_pdf_pages. It implies usage but lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EigenCharlie/pdf-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server