Skip to main content
Glama

PDFWix

Extract pages into a new PDF

split_pdf
Idempotent

Pull selected pages out of a PDF into a new PDF, keeping their order. Accepts selections like "1-3, 5, 8-10".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesA single input file, given as either an HTTPS url or base64 contents.
pagesYesPages to keep, for example "1-3, 5, 8-10". Page numbers start at 1.
output_filenameNoName for the resulting file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already provide destructiveHint=false and idempotentHint=true, and the description adds useful context about preserving order and the accepted selection syntax. However, the phrase 'out of a PDF' is ambiguous about whether the original file is modified, and the description does not explicitly say the source remains unchanged.

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 concise sentences with no wasted words. The main action is front-loaded, and the second sentence provides a concrete, useful selection example without elaboration.

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?

Given the simple operation and thorough schema, the description is nearly complete for invoking the tool correctly. It clearly states the output is a new PDF and gives a practical selection example, though it could additionally clarify original-file behavior and differentiate from remove_pages.

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 file, pages, and output_filename in detail. The description contributes only the page-selection example, which mostly mirrors the schema's pages parameter description, adding little new semantic value.

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?

The description uses a specific verb and resource: 'Pull selected pages out of a PDF into a new PDF.' It also clarifies that page order is preserved, which distinguishes it from reordering tools. The purpose is immediately clear and not a tautology.

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 implies when to use the tool: when a subset of pages needs to be extracted into a new PDF. However, it does not explicitly contrast this with sibling tools like remove_pages or reorder_pdf_pages, nor does it state when not to use it.

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