Skip to main content
Glama

pdf_rotate_pages

Idempotent

Rotate PDF pages by 90, 180, or 270 degrees. Specify page ranges or rotate all pages to adjust document orientation.

Instructions

Rotate pages in a PDF by 90, 180, or 270 degrees. Rotation is additive to any existing rotation. Rotates all pages if no page range is specified.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYesAbsolute path to the source PDF file
pagesNoPage range to rotate, e.g. '1-5' or '1,3,5'. Omit to rotate all pages.
degreesYesRotation angle: 90, 180, or 270 degrees clockwise
outputPathYesAbsolute path for the rotated output PDF
Behavior1/5

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

The description states 'Rotation is additive to any existing rotation,' implying that repeated calls accumulate rotation angles (non-idempotent behavior). This directly contradicts the idempotentHint=true annotation, which claims the tool produces the same result on repeated identical calls.

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 sentences efficiently cover purpose, behavioral quirks, and parameter defaults without redundancy. The structure is front-loaded with the primary action, and every sentence provides necessary information not duplicated in the schema.

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?

Given the 100% schema coverage and annotations covering safety (destructiveHint=false), the description adequately covers the core functionality. However, the idempotency contradiction creates uncertainty about retry behavior, and there is no mention of output handling or error conditions despite the file manipulation context.

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?

With 100% schema description coverage establishing a baseline of 3, the description adds valuable semantic context: it explains that rotation is 'additive' (relating to the degrees parameter) and clarifies the default behavior when the pages parameter is omitted.

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 ('Rotate') and resource ('pages in a PDF'), clearly distinguishing this from sibling tools like pdf_reorder_pages or pdf_split. It specifies the valid rotation values (90, 180, 270) immediately.

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?

The description provides implied usage guidance by explaining that omitting the page range rotates all pages, and mentions the additive nature of rotation. However, it lacks explicit guidance on when to choose this over similar siblings like pdf_reorder_pages.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AryanBV/pdf-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server