Skip to main content
Glama
pdf-toolkit-mcp

pdf-toolkit-mcp

by 0xmortuex

rotate_pages

Rotate PDF pages by 90, 180, or 270 degrees and save the result to a new file or overwrite the original in place. Choose specific pages or rotate the entire document.

Instructions

Rotate pages and save a new PDF. degrees is a multiple of 90, clockwise (90, 180, 270, or -90 for counter-clockwise). pages empty = every page.

output_path: must end in .pdf. Default: _rotated.pdf next to the input. To rotate a file in place, pass its own path as output_path together with overwrite=true.

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": {
      "path": "<path>",
      "degrees": "<degrees>"
    },
    "name": "rotate_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
pagesNo
degreesYes
passwordNo
overwriteNo
output_pathNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is already carried by structured data. The description usefully adds that the default behavior writes a NEW file and that overwriting is opt-in via overwrite=true, but it is silent on the password parameter and on what happens if the output path already exists without overwrite.

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?

Three short paragraphs, each front-loading its topic (action, per-parameter notes), with no filler sentences. Line-broken parameter notes are scannable, though the degree-range sentence is slightly verbose about its examples.

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?

With six parameters and a 0% schema coverage, the description leaves a meaningful gap: password is undocumented, so an agent has no way to know it is used to unlock encrypted input PDFs. An output schema exists, so return values need not be described, and the core rotation semantics are 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 0%, so the description must carry parameter meaning. It explains degrees (multiples of 90, clockwise, negative for counter-clockwise), pages (empty = every page), output_path (.pdf suffix requirement) and overwrite (in-place rotation), which is solid coverage of four of six parameters, but 'path' and 'password' are never explained.

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 ('Rotate pages and save a new PDF') and makes the outcome (a new saved file) part of the purpose, which separates it cleanly from siblings like split_pdf, merge_pdfs or extract_pages that move content rather than transform orientation.

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?

It gives concrete operational guidance: default output is '<name>_rotated.pdf next to the input', and in-place rotation requires passing the input path as output_path with overwrite=true. It does not explicitly compare against alternatives, but the operation is narrow enough that no exclusion is needed.

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