Skip to main content
Glama

Split PDF

split_pdf
Idempotent

Split a PDF into separate files. Without page_ranges every page becomes its own PDF (returned as a ZIP). With page_ranges like "1-3,4-6" each range becomes one PDF. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.

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
file_urlNoPublic https:// link to the file (preferred, up to 150 MB). Must be directly downloadable.
filenameNoOriginal file name, e.g. report.pdf
file_base64NoThe file content as base64 (only for small files, max 10 MB). Use instead of file_url.
page_rangesNoRanges to split into, e.g. "1-3,4-6,7". 1-based page numbers.

Output Schema

NameRequiredDescriptionDefault
pagesNo
file_nameYes
download_urlYesLink to download the result
expires_in_minutesYesThe link stops working after this time (or 3 minutes after the first download)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that files are processed on HuntPDF servers, automatically deleted, and that the returned download link is temporary — non-obvious data retention and delivery behavior an agent could not infer from idempotentHint/openWorldHint alone. It also clarifies the ZIP packaging behavior when no ranges are supplied.

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 short sentences, front-loaded with the action, then the mode behavior, then the data-handling caveat. No redundant or filler wording.

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 and full parameter coverage, the description needs only to add behavior, which it does (mode semantics, retention, temporary link). The only gap is failing to distinguish itself from extract_pdf_pages in an otherwise crowded PDF sibling set.

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 page_ranges semantics are already documented; the description still adds value by stating that each comma-separated range becomes its own output PDF. It adds no guidance on the file_url vs. file_base64 choice beyond what the schema descriptions already say.

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 a specific verb and resource ('Split a PDF into separate files') and explains the output shape (separate PDFs, ZIP when every page is split). It does not explicitly differentiate from the sibling extract_pdf_pages, so the agent must infer that distinction from names alone.

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 clearly explains the two operating modes (no page_ranges vs. with page_ranges), which is useful contextual guidance. However, it never says when to choose this tool over extract_pdf_pages or why one would omit page_ranges, so no alternative-routing guidance is 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.

Resources