Skip to main content
Glama

rotate_page

Rotates a PDF sheet 90, 180, or 270 degrees clockwise before measuring, transforming existing takeoff shapes, markups, and calibrations so they stay locked to the drawing.

Instructions

Rotate a sheet's page in the PDF (90, 180, or 270 degrees clockwise) before measuring. Transforms all existing takeoff shapes, markups, and calibrations on that sheet to remain locked to the drawing. Output file path is optional (default: "_rotated.pdf"); pass overwrite:true to allow replacing an existing file. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.

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": {
      "sheet": "<sheet>",
      "angle": "<angle>"
    },
    "name": "rotate_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
angleYesClockwise rotation angle in degrees: 90, 180, or 270
sheetYesSheet key ("plan.pdf", "plan.pdf#2") or sheet number ("A-101")
overwriteNoReplace the file at path even when it is not an OpenTakeoff export. Off by default: re-exporting over a previous export of your own already overwrites without this, so you only need it to deliberately destroy an unrelated file.
output_pathNoDestination file path (default: "<file>_rotated.pdf")

Output Schema

NameRequiredDescriptionDefault
noteYes
angleYes
sheetYes
width_pxYes
height_pxYes
output_fileNo
shapes_transformedYes
markups_transformedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.32

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it states that existing shapes, markups, and calibrations are transformed to stay locked to the drawing, defines the default output path, and clarifies that overwrite:true is required to replace a file that is not one of its own exports. It stops short of stating reversibility (whether rotating back restores original coordinates), failure modes for invalid sheets, or whether the source file is modified.

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?

The purpose and side effects are front-loaded, and the default-path and overwrite semantics follow logically. The closing coordinate-system sentence is useful but slightly detaches from the core action; nothing is redundant, though the density is high for a four-sentence block.

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 return values need not be explained, and the description covers the mutation's blast radius, output destination, and overwrite semantics. Completeness would be higher if it addressed whether the source PDF is left untouched and how errors (bad sheet key, existing file without overwrite) surface.

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 every parameter is already fully documented in the schema, which sets the baseline at 3. The description reinforces the default output path and the overwrite flag's purpose but adds no new per-parameter meaning; the coordinate-space note (PDF pt × 2, origin top-left, y down) describes payload/geometry semantics rather than any single input parameter.

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+resource (rotate a sheet's page in the PDF) and names the exact allowed angles, then immediately discloses the consequence for existing takeoff shapes, markups, and calibrations. No sibling tool in the list performs rotation, so an agent can identify this as the rotation tool without ambiguity.

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 phrase "before measuring" implies a usage context, giving the agent a reason to call it prior to measurement work, but there is no explicit when-not guidance, no mention of prerequisites (e.g., an open PDF), and no routing to alternatives such as extract_pages or align_stitch if the goal is page organization rather than rotation.

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