Skip to main content
Glama

pdf_reorder

Reorder PDF Pages — Reorder the pages of a PDF by supplying the desired page sequence. [category: pdf]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesInput PDF (max 25MB)
orderYesComplete new page order — EVERY page exactly once, comma-separated, e.g. '3,1,2' for a 3-page PDF. Partial orders, duplicates, or missing pages are rejected with a 400.
passwordNoOptional password for encrypted PDFs.
outputNameNoOptional custom output basename.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / outputName / x-ui
      Added value: +{
      +  "unset_label": "Named after your file"
      +}
    • addedInput schema / properties / password / x-ui
      Added value: +{
      +  "unset_label": "Only needed for a locked PDF"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=false and destructiveHint=false, but the description adds no operational context beyond that: no statement about whether a new PDF is returned, whether the original is preserved, or what the response looks like. For a file-transformation tool with no output schema, this is a meaningful gap.

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 description is compact and front-loaded, with the operation and mechanism in the first clause. The main redundancy is repeating the title 'Reorder PDF Pages' at the start, but the category tag and the rest are minimal and useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The schema covers parameter meaning well, and the task is a simple file transformation, but with no output schema, the description should clarify output/return behavior. It also provides no sibling differentiation, so the description is sufficient for basic invocation but not fully self-contained.

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%, and the schema itself documents file, order, password, and outputName thoroughly, including the 'EVERY page exactly once' rule and 400 rejection behavior. The description only says 'desired page sequence,' adding no meaning beyond the schema, which matches the baseline expectation.

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 the action verb 'Reorder' tied to a specific resource ('the pages of a PDF') and the mechanism ('supplying the desired page sequence'). This clearly differentiates it from siblings like pdf_reverse (simple reversal) and pdf_extract_pages (subset selection).

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance or mention of alternatives. It does not distinguish itself from pdf_reverse, pdf_delete_pages, or pdf_extract_pages, leaving the agent to infer selection solely from the phrase 'desired page sequence.'

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