Skip to main content
Glama

PDF Efforts

Split PDF

split_pdf
Idempotent

Split one PDF into several PDFs: by page ranges (each range becomes a file), every N pages, or one file per page.

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": {
      "file": "<file>"
    },
    "name": "split_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesThe PDF to split.
modeNo"ranges" = one file per range in "ranges"; "every" = a new file every "every" pages; "single" = one file per page.ranges
everyNoFor mode "every": pages per file.
rangesNoFor mode "ranges": comma-separated ranges, each becomes one file, e.g. "1-3, 4-6, 7-end".1-2, 3-end

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), so the description need not restate safety. It does add the key behavioral fact that the operation yields multiple output files, one per range/interval/page, which is more than the annotations convey. It says nothing about limits on output count, expiry of results, or 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.

Conciseness5/5

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

A single sentence with zero filler, front-loading the outcome and then listing the three mutually exclusive strategies with their file-producing consequence. Nothing is repeated or wasted.

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 annotations covering the safety profile, the description is complete enough for correct invocation: it names the three modes and what each produces. Minor gaps remain around how multiple results are returned and any constraints on ranges or page counts, but these are secondary given the rich schema and output schema.

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%, including per-property descriptions and an enum for 'mode', so the schema carries parameter meaning and the baseline of 3 applies. The description's mode explanations largely echo the 'mode' property description rather than adding new semantics such as range validation rules or behavior when ranges overlap or exceed page count.

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 concrete verb and resource ('Split one PDF into several PDFs') and enumerates the three splitting strategies, so an agent knows exactly what it produces. It does not differentiate from close siblings such as extract_pages or delete_pages, which also select subsets of pages, leaving the boundary implicit.

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 three modes imply when each strategy applies ('ranges', 'every N pages', 'one file per page'), giving usable context. However, there is no explicit guidance on when to choose split_pdf over extract_pages for a single range, nor any prerequisite or limitation statements.

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