Skip to main content
Glama

pdf-splitter

Reorder the pages of a PDF

pdf_reorder

Call this tool to write a new PDF with pages in the order you give. The order must name every page exactly once, so nothing drops by accident; use pdf_pages for a subset. Pro.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesName of an uploaded PDF (pdf_upload), or one this server wrote earlier
orderYesThe 1-based page numbers in their new order, e.g. [3,1,2] for a three-page file. Every page must appear exactly once
out_pathYesName for the reordered PDF; it comes back as a download link valid for one hour
overwriteNoReplace out_path if it exists. Default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

The description discloses that it writes a new PDF and enforces that each page appears exactly once, which is useful behavioral context beyond the annotations. However, annotations provide no safety hints (all false), and the description does not mention what happens on invalid order input or overwrite conflicts, so the behavioral picture is incomplete.

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

Conciseness4/5

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

The first two sentences are front-loaded and efficient: they state the action, the constraint, and the relevant alternative. The final stray word 'Pro.' adds no informational value and keeps it from a perfect score, but the overall structure is still tight.

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 tool with four parameters and no output schema, the description plus the fully descriptive schema cover tool selection, invocation, validation rules, and output behavior (the download link is mentioned in the out_path schema). It is complete enough for correct use, with only edge-case behavior left implied.

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?

The input schema already describes all four parameters with 100% coverage, including the 1-based order, output path, and overwrite default. The description adds rationale ('nothing drops by accident') but no new parameter-level semantics, so the baseline of 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?

The description names a concrete action ('write a new PDF') and a specific resource (PDF pages), and it clearly separates itself from pdf_pages by noting that reordering requires every page exactly once. This lets an agent distinguish pdf_reorder from the many PDF sibling tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly frames when to call this tool ('pages in the order you give') and names the alternative for a different case: 'use pdf_pages for a subset.' This gives the agent a clear when-to-use and when-not-to-use signal. It does not discuss every sibling, but the most relevant alternative is addressed directly.

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.