Skip to main content
Glama

Rotate PDF

rotate_pdf

Rotate all or selected PDF pages clockwise by 90, 180 or 270 degrees and save a new file, keeping text and images at full quality while the original stays unchanged.

Instructions

Save a new PDF with all or some pages turned clockwise by 90, 180 or 270 degrees. Only the page rotation flag changes, so text and images keep full quality. Returns the saved path; the input is not changed.

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": {
      "file": "<file>",
      "angle": "<angle>"
    },
    "name": "rotate_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesPath to the file (absolute, or relative to the working directory).
angleYesClockwise degrees.
pagesNoPages to rotate, like "1-3, 8". Defaults to all pages.
outputNoWhere to save the result. Defaults to a new file next to the input.
passwordNoThe PDF's current password, if it has one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that a new file is written, that the source file is left untouched, that only the rotation flag changes so text and images retain quality, and that the return value is the saved path. That is meaningful behavioral context; the only gap is that it says nothing about password-protected inputs, which the annotations also do not cover.

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?

Three short sentences, front-loaded with the action and scope, followed by the non-destructive guarantee and the return value. No sentence is redundant with another and nothing is buried.

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?

For a five-parameter, non-destructive write tool with no output schema, the description covers purpose, side effects on the input, quality implications, and the return value. The only omission is guidance about encrypted PDFs needing a password and the exact default output location, both of which the schema documents.

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%, so the agent already has documented meanings for file, angle, pages, output, and password. The description adds only the notion of rotating 'all or some pages' and the allowed angle values, which the schema already states, so this is baseline-level added value.

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?

The description names a specific verb and resource ('Save a new PDF with all or some pages turned clockwise') plus the exact angle set, so the operation is unambiguous. It does not explicitly contrast itself with sibling page-manipulation tools such as delete_pdf_pages or reorder_pdf_pages, but the non-destructive 'save a new PDF' framing largely does that work implicitly.

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?

Usage is implied by the phrasing 'turned clockwise by 90, 180 or 270 degrees' and 'input is not changed', which tells the agent this is the safe, quality-preserving rotation route. There is no explicit when-to-use/when-not-to-use guidance and no named alternative for in-place editing or other page operations.

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