Skip to main content
Glama

Split or extract pages

split_pdf
Read-onlyIdempotent

Split a PDF by page ranges. ranges is a list like ["1-2", "3", "4-end"]: each range becomes its own PDF. Use mode "extract" to put all the ranges into one PDF instead. Use mode "every" to make one PDF per page. Returns download links.

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
modeNosplit (default): one PDF per range. extract: one PDF with all the chosen pages. every: one PDF per page.
rangesNoPage ranges, 1-based: "2", "1-3", "4-end". Not needed for mode "every".
file_idNoA file id from POST /api/v1/files or an earlier result. Use this, template_id or pdf_base64.
pdf_base64NoThe PDF, base64 encoded (max 15 MB). Prefer file_id for big files.
template_idNoA template id from list_templates.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered; the description adds the meaningful extra fact that the result is delivered as download links rather than inline content. It also clarifies that no source file is modified (each range 'becomes its own PDF'). It omits any mention of limits or what happens on invalid ranges, which keeps it below 5.

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?

Three compact sentences, front-loaded with the core behavior and followed by mode selection and the return type; nothing is padding. There is minor redundancy between the description's range example and the schema's range example.

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 five optional parameters, full schema coverage, and no output schema, the description covers purpose, mode semantics, and the return format, which is what an agent needs to call it. It does not explain the alternative input sources (file_id vs template_id vs pdf_base64) beyond leaving that to the schema, but nothing essential is missing.

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 every parameter is already documented in the input schema and a 3 is the baseline. The description's ranges example (['1-2', '3', '4-end']) and mode explanation largely restate the schema's enum and array descriptions rather than adding new semantics.

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 opens with a specific verb and resource ('Split a PDF by page ranges') and immediately explains the output shape ('each range becomes its own PDF'), so the agent knows exactly what the tool produces. It does not explicitly contrast itself with the sibling merge_pdfs, which keeps it from a 5.

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 concrete when-to-use guidance for each of the three modes: default 'split' for one PDF per range, 'extract' to consolidate all ranges into a single PDF, and 'every' for one PDF per page. It stops short of saying when to prefer this tool over merge_pdfs or annotate_pdf, so no exclusions are stated.

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