Skip to main content
Glama

doc_tools_pdf_split

Cut a PDF into several: one file per page range you name, or equal parts of N pages. Returns each part and a ZIP of all. Price: $0.01 USDC via x402, charged only on success. Part of Document tools: Work with PDFs and scans: read the text out of a PDF with page numbers and metadata, recognize the text in a scan, photo or screenshot, merge PDFs, take or reorder pages, split into parts, and turn images into a PDF..

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": "doc_tools_pdf_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdfNoPDF file as base64.
everyNoOr cut into files of this many pages each (1 = one file per page).
pdfUrlNoLink to the PDF.
rangesNoOne output file per entry, each a page list like "1-3" or "4,7-9".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose meaningful behavior: it returns each part plus a ZIP of all parts, and it charges $0.01 USDC via x402 only on success. Remaining gaps are limits on input size, what happens if both pdf and pdfUrl are supplied, and failure behavior on invalid ranges.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences are front-loaded and efficient, covering operation, output, and pricing. The trailing 'Part of Document tools: ...' sentence is a suite-wide catalog that lists unrelated capabilities (OCR, merge, images to PDF) and adds bulk without helping invoke this tool.

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?

There is no output schema, and the description compensates by describing the return shape (individual parts plus a ZIP) and the billing model. For a four-parameter, no-required-field tool this is close to sufficient, with only input-validation and precedence details 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 description coverage is 100%, so the schema already documents pdf, pdfUrl, every, and ranges with examples like "1-3". The description's phrase 'one file per page range you name, or equal parts of N pages' largely restates that, and it does not clarify precedence between pdf and pdfUrl, 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 ('Cut a PDF into several') plus the two operating modes (one file per named page range, or equal parts of N pages). This cleanly separates it from siblings such as doc_tools_pdf_merge or doc_tools_pdf_text without any ambiguity.

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 explains the two modes of splitting, which implicitly tells the agent how to choose between the ranges and every parameters. However, it never states when to prefer this tool over siblings (e.g. pdf_merge, web_tools_pdf) nor any exclusion or precondition, leaving routing 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