Skip to main content
Glama

pdf_reorder_pages

Idempotent

Rearrange PDF pages by specifying a custom order with comma-separated numbers. Duplicate pages if needed. Form fields are not preserved in the output.

Instructions

Reorder pages in a PDF. Specify the new page order as a comma-separated string (e.g. '3,1,2'). Duplicates are allowed. Warning: form fields are not preserved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute path to the source PDF file
pageOrderYesNew page order as comma-separated 1-indexed numbers, e.g. '3,1,2,4' or '1,1,2' (duplicates allowed)
outputPathYesAbsolute path for the reordered output PDF
Behavior4/5

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

Annotations indicate idempotentHint=true and destructiveHint=false. The description adds crucial behavioral context not in annotations: 'Warning: form fields are not preserved' and 'Duplicates are allowed,' which are significant side effects for PDF manipulation.

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 sentences, zero waste. Front-loaded with purpose, followed by usage syntax, and ends with a critical warning. Every clause earns its place.

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?

Complete for a reordering tool: covers input/output paths, page ordering syntax, and the important form field limitation. Could marginally improve by explicitly stating whether the source file is modified or if the operation is idempotent (though annotations cover the latter).

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?

With 100% schema description coverage, the schema already fully documents all three parameters including examples. The description echoes this information ('comma-separated string') but adds no additional semantic depth (e.g., explaining 1-indexing implications or path requirements) beyond the schema.

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 opens with a specific verb and resource ('Reorder pages in a PDF') that clearly distinguishes this from sibling tools like pdf_rotate_pages (orientation) and pdf_merge (combining files). The scope is immediately clear.

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

Usage Guidelines4/5

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

Provides clear context on how to use the tool via the comma-separated example ('3,1,2') and notes that duplicates are allowed. However, it lacks explicit when-not-to-use guidance or named alternatives (e.g., distinguishing from pdf_rotate_pages).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AryanBV/pdf-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server