Skip to main content
Glama
PDF Tools MCP Server

PDF Tools MCP Server

by h-ucchi

reorder_pages

Rearrange PDF pages into a specified order and save the result to a new file.

Instructions

PDFのページを指定した順序に並び替える

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "input_path": "<input_path>",
      "page_order": "<page_order>",
      "output_path": "<output_path>"
    },
    "name": "reorder_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_pathYes元のPDFファイルのパス
page_orderYes新しいページ順序(1始まり)の配列。例: [1, 3, 2, 5, 4]
output_pathYes出力先のファイルパス

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and largely drops it. It does not state that the input PDF is left untouched, that a new file is written to output_path, whether every original page must appear exactly once in page_order, or what happens on invalid/duplicate indices.

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?

A single tight sentence with no filler and the key concept front-loaded. It is efficient, though its brevity is partly the source of the missing behavioral detail rather than a virtue in itself.

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

Completeness2/5

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

For a mutation-style file tool with no annotations, no output schema, and three required parameters, the description should explain the result of the operation and constraints on page_order. Nothing about output location semantics, completeness of the permutation, or failure modes is covered.

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 already documents all three parameters, including the 1-based indexing and an example array. The description's '指定した順序' only restates the page_order concept, adding no meaning beyond the schema; baseline 3 applies.

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?

Names a specific verb ('並び替える' = reorder) and resource ('PDFのページ'), and the ordering constraint ('指定した順序に') makes it distinct from siblings like extract_pages or exclude_pages. It stops short of explicitly contrasting itself with those siblings, but the purpose is unmistakable.

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?

The single sentence defines what the tool does but gives no when-to-use/when-not-to-use guidance, no prerequisites, and no mention of alternatives such as extract_pages for subsetting versus reordering the whole document. An agent must infer the selection criteria from the name alone.

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