Skip to main content
Glama

PDFWix

Reorder PDF pages

reorder_pdf_pages
Idempotent

Rebuild a PDF with its pages in a new order, for example moving an appendix to the front. Give the full page order, such as "5, 1, 2, 3, 4".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesA single input file, given as either an HTTPS url or base64 contents.
orderYesNew page order as a comma-separated list of page numbers, for example "5, 1, 2, 3, 4".
output_filenameNoName for the resulting file.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already provide readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the safety profile is covered. The description adds that a complete new page order is required, which is useful. It doesn't detail failure modes or whether the original file is preserved, but annotations lower the burden.

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?

The description is two sentences with the purpose front-loaded and a concrete example. Every clause contributes meaningful guidance without redundancy.

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 a nested file input, a required order parameter, and no output schema, this description is largely sufficient. It explains the operation, the complete-order requirement, and a clear invocation pattern. It doesn't describe the return value or invalid inputs, but the rich schema and idempotent annotation mitigate that gap.

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 description coverage is 100%, so the baseline is 3. The description goes beyond the schema by emphasizing 'full page order' and giving an explicit example, which clarifies that the order must include all pages. File and output_filename semantics are already fully documented in the schema.

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?

Description clearly identifies the operation ('Rebuild a PDF with its pages in a new order') with a specific verb/resource and a concrete use case. It doesn't explicitly name sibling tools to draw boundaries, so differentiation from rotated or removed pages is inferential rather than explicit.

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 example 'moving an appendix to the front' implies a common use case)Skip and 'Give the full page order' indicates what to supply. However, it doesn't explicitly state when to prefer alternatives or when not to use this tool, so usage guidance is mostly implied.

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