Skip to main content
Glama

pdf_organize

Read-onlyIdempotent

Reorder, duplicate, rotate, or insert blank pages in a PDF

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": {
      "fileBase64": "<fileBase64>",
      "pageSpecs": "<pageSpecs>"
    },
    "name": "pdf_organize"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageSpecsYesOrdered list describing the output PDF's pages -- 'source' with a 0-based index (and optional rotation) to reuse a page from the input, or 'blank' to insert a blank page
fileBase64YesThe input file as a base64 string, without a data: prefix.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
    • changedInput schema / properties / pageSpecs / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "index": {
      -        "type": "number"
      -      },
      -      "rotation": {
      -        "type": "number"
      -      },
      -      "type": {
      -        "const": "source",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "index"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "blank",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "index": {
      +        "type": "number"
      +      },
      +      "rotation": {
      +        "type": "number"
      +      },
      +      "type": {
      +        "const": "source",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "index"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "type": {
      +        "const": "blank",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already establish read-only, idempotent, non-destructive, and closed-world behavior. The description adds little beyond listing operations: it does not explain how duplication works via repeated source indexes, how rotations interact with source pages, validation behavior, or the returned output format.

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 that lists the supported operations with no unnecessary wording. Every phrase contributes to understanding the tool's purpose.

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 two-parameter tool with full schema coverage and informative annotations, the description covers the essential operations. However, it omits usage guidance versus similar tools and does not clarify output or page-spec behavior, leaving some gaps for an agent selecting among sibling PDF tools.

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 fully explains fileBase64 and pageSpecs, including source indexes and blank pages. The description's mention of duplicate/rotate/insert aligns with the schema but adds no new parameter-level meaning beyond what is documented.

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 specific operations (reorder, duplicate, rotate, insert blank pages) and the resource (PDF), so an agent can understand the tool's function. It does not distinguish itself from sibling tools such as pdf_rotate or pdf_extract_pages, which is the main gap.

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?

It gives no explicit guidance on when to use this tool versus alternatives like pdf_rotate for simple rotation or pdf_extract_pages for extraction. The use case is implied by the operation list, but there are no conditions or exclusions.

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