Skip to main content
Glama

Split or Extract PDF Pages

pdf_split

Extract selected PDF pages into one file or split pages into individual single-page PDFs locally, keeping files on disk.

Instructions

Extract specific pages (e.g. "1-3,5") into one PDF, or split all/selected pages into individual single-page PDFs locally. Free tier extracts up to 10 pages at once; PRO is unlimited.

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": {
      "inputPath": "<inputPath>"
    },
    "name": "pdf_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo"single_pdf" combines selected pages into one PDF; "per_page" saves one PDF per page into outputDirsingle_pdf
pagesNo1-based page numbers/ranges, e.g. "1-3,5" or "all"all
inputPathYesLocal PDF file path
outputDirNoOutput directory path when mode="per_page"
outputPathNoOutput PDF path when mode="single_pdf"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose two useful behavioral facts beyond the schema: processing happens locally, and the free tier limits extraction to 10 pages at a time while PRO is unlimited. It says nothing about overwrite behavior for existing outputPath/outputDir contents, directory creation, or failure modes for invalid page ranges.

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 sentences, zero filler. The capability statement comes first and the quota constraint second, which is the right front-loading order for an agent scanning for fit.

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 5-parameter tool with full schema coverage and no annotations, the definition covers capability, mode distinction, and tier limits adequately. The gap is the return behavior: with no output schema, the description never indicates what comes back (e.g. written file paths), which matters for a tool whose entire job is producing files.

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 including mode's enum values is already documented in the schema. The description's page-range example ("1-3,5") merely restates what the pages property already shows, adding no new meaning. Baseline 3 applies when the schema does the heavy lifting.

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?

Description names two concrete operations on a specific resource: extracting selected pages into one PDF, and splitting pages into individual single-page PDFs. The verbs "extract" and "split" plus the output-shape distinction make the tool's scope unmistakable compared with siblings like pdf_merge or pdf_compress.

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?

The two output shapes are mapped clearly enough that an agent can pick between them from the user's intent (one combined file vs. one file per page). It also surfaces a real usage constraint (free tier caps at 10 pages, PRO unlimited), but it never explicitly states when to prefer a sibling such as pdf_merge or what to do when the page selection exceeds the free-tier cap.

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