Skip to main content
Glama

Reorder pages

reorder_pages

Free. Put a PDF's pages in a new order you give, every page exactly once. Reorder artifact_id's pages: order lists every page number exactly once, in the new order. Returns the new artifact_id and a download_url (a link that works for about an hour).

Input Schema

NameRequiredDescriptionDefault
orderYes
artifact_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "artifact_id": "99999999-aaaa-bbbb-cccc-dddddddddddd",
      +    "order": [
      +      2,
      +      1,
      +      3
      +    ]
      +  }
      +]
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare the safety profile (not read-only, not destructive, not idempotent), so the bar is lower, and the description adds genuinely useful context beyond them: it returns a NEW artifact_id plus a download_url that expires in about an hour, and that it is free. It does not state whether the source artifact is preserved, which is the main remaining gap.

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

Conciseness3/5

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

Front-loaded and short, but noticeably redundant: 'every page exactly once' is stated twice in consecutive sentences, and 'put pages in a new order' is restated as 'reorder artifact_id's pages.' One sentence could be removed with no loss.

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?

An output schema exists, so the description is not obligated to explain return values, yet it usefully flags the new artifact_id and the ~1 hour download_url expiry. Combined with the ordering rule for the permutation, an agent has enough to call this correctly.

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 coverage is 0%, so the description must carry the parameter burden. It does well for 'order' – every page number exactly once, in the new order – and ties artifact_id to the pages being reordered, though it never explains artifact_id's origin or format.

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?

States a specific verb (reorder) and resource (a PDF's pages via artifact_id), and the constraint 'every page exactly once' meaningfully distinguishes it from sibling mutators like delete_pages, extract_pages, or rotate_pages. It does not name any sibling explicitly, so it falls just short of a 5.

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 when-to-use guidance and no alternative named among the many page-manipulation siblings (rotate_pages, delete_pages, extract_pages, merge_pdf). The permutation constraint hints at its use case but leaves the agent to infer when this is the right tool versus the others.

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.