Skip to main content
Glama

Rotate PDF Pages

pdf_rotate

Rotate pages of a PDF locally by 90, 180, or 270 degrees clockwise, choosing all pages or specific ones, so files stay on disk without uploads.

Instructions

Rotate all or specific pages of a PDF locally by 90, 180, or 270 degrees clockwise.

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": {
      "inputPath": "<inputPath>",
      "angle": "<angle>"
    },
    "name": "pdf_rotate"
  }
}

Input Schema

NameRequiredDescriptionDefault
angleYesClockwise rotation angle in degrees (90, 180, or 270)
pagesNo1-based pages to rotate, e.g. "1,3-4" or "all"all
inputPathYesLocal PDF file path
outputPathNoOptional output PDF path

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/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. It adds that processing is local and lists angle/page options, but it does not disclose whether the original file is modified, how outputPath is used, or what permissions or side effects apply to this file mutation.

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?

The definition is a single front-loaded sentence with zero wasted wording. It communicates the operation, scope, angle choices, and local processing efficiently.

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?

For a simple PDF rotation tool with full schema coverage and no output schema, the description covers the core operation and local processing. However, without annotations it leaves important mutation details, such as overwrite behavior and outputPath semantics, unspecified.

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 schema already documents inputPath, angle, pages, and outputPath. The description repeats angle values and page selection but adds no syntax or behavioral meaning beyond the schema, making the baseline 3 appropriate.

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 states a specific verb and resource: rotating all or specific PDF pages by defined clockwise angles. It is clear what the tool does, though it does not explicitly differentiate itself from PDF siblings such as merge, split, or compress.

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 description offers no explicit guidance on when to use this tool versus alternatives, nor any prerequisites or exclusions. The intended use is only implied by the operation name and angle options.

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