Skip to main content
Glama

Benchline

Organize PDF pages

organize_pdf
Read-onlyIdempotent

Reorder, rotate, or drop PDF pages. Each entry names a 1-based source page and a rotation of 0, 90, 180, or 270. The same page may be listed twice. Send base64 or a public URL. Private addresses are refused.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic URL of a PDF. Private and local addresses are refused. Provide data or url.
dataNoPDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url.
pagesYes
filenameNo
mimeTypeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesOrganized PDF as base64.
bytesYes
pageCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/idempotent, so the bar is lower, yet the description adds real context: accepted input modes and an SSRF policy ('Private addresses are refused'), plus the non-obvious allowance that the same page may be listed twice. It does not state what happens when 'drop' is used (omission from the list) or how out-of-range source pages are handled, so it falls short of a 5.

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?

Four short sentences, front-loaded with the core action, and every sentence carries information. The rotation-value enumeration is somewhat redundant with the schema's anyOf consts, a minor waste, but overall it is tight and well-ordered.

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 annotations cover the safety profile. What remains unstated is the critical semantic that output page order follows array order and that dropping is achieved by omission, both of which an agent must infer. Otherwise complete for a pure transformation tool.

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 coverage is 40%, so the description must compensate and does so only partially. It explains the structure of a pages entry (1-based source plus a rotation of 0/90/180/270), which the schema largely already conveys via the source description and rotate consts, but says nothing about filename or mimeType, and only lightly touches url vs data.

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?

States a specific verb set (reorder, rotate, drop) on a specific resource (PDF pages), which cleanly distinguishes it from siblings like merge_pdf, split_pdf, compress_pdf, and render_pdf_pages. An agent can identify that this is the page-level arrangement tool without opening the schema.

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 only implied by the operation set. The description never states when to prefer this over merge_pdf or split_pdf, nor mentions any prerequisites. It is adequate for inference but offers no explicit when-to-use or when-not-to-use guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources