Skip to main content
Glama

Splitters Run Page Range

splitters.run_page_range
Idempotent

Splits one saved document in this project into segments with a published version of a fixed page-range splitter, saving a split run and its segments; the run waits for review when the configuration flags pages for review. Running the same version on the same document again returns the existing run. Returns the run status and its segments.

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": {
      "splitter_id": "<splitter_id>",
      "document_id": "<document_id>"
    },
    "name": "splitters.run_page_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoPublished version number to run. Defaults to the latest published version; a never-published splitter cannot run.
document_idYesNumeric ID of a saved document in this project, as returned in document_id by an upload or document lookup. Its page count must already be known.
splitter_idYesID of a splitter in the selected project, as returned when it was created or listed.
project_slugNoSlug of the owned project to act on, as listed with the account's projects. When omitted, the account's single visible project is selected; omitting it fails if the account has several projects.

Output Schema

NameRequiredDescriptionDefault
runYesThe split run; repeating the same version on the same document returns the existing run.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / document_id / description
      Added value: +"Numeric ID of a saved document in this project, as returned in document_id by an upload or document lookup. Its page count must already be known."
    • changedInput schema / properties / project_slug / description
      Previous value: -"Slug of an owned project. Optional only when the account has exactly one visible project; required for accounts with multiple visible projects."New value: +"Slug of the owned project to act on, as listed with the account's projects. When omitted, the account's single visible project is selected; omitting it fails if the account has several projects."
    • addedInput schema / properties / splitter_id / description
      Added value: +"ID of a splitter in the selected project, as returned when it was created or listed."
    • addedInput schema / properties / version / description
      Added value: +"Published version number to run. Defaults to the latest published version; a never-published splitter cannot run."
    • addedOutput schema / properties / run / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / run / description
      Added value: +"The split run; repeating the same version on the same document returns the existing run."
    • addedOutput schema / properties / run / properties
      Added value: +{
      +  "processing_run_id": {
      +    "description": "Processing run ID.",
      +    "type": "string"
      +  },
      +  "review_count": {
      +    "description": "Number of segments awaiting review.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "segment_count": {
      +    "description": "Number of segments created.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "segments": {
      +    "description": "Segments created for the document.",
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "destination_table_id": {
      +          "description": "Table that receives the segment.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "id": {
      +          "description": "Segment ID.",
      +          "type": "string"
      +        },
      +        "ordinal": {
      +          "description": "Segment order.",
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "page_count": {
      +          "description": "Pages in the segment.",
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "page_spans": {
      +          "description": "Pages in the segment.",
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "end_page": {
      +                "description": "Last page, inclusive.",
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              },
      +              "start_page": {
      +                "description": "First page, 1-based and inclusive.",
      +                "maximum": 9007199254740991,
      +                "minimum": -9007199254740991,
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "start_page",
      +              "end_page"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "review_status": {
      +          "description": "Review state, such as pending or not_required.",
      +          "type": "string"
      +        },
      +        "segment_key": {
      +          "description": "Segment key.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "segment_key",
      +        "ordinal",
      +        "page_spans",
      +        "page_count",
      +        "review_status",
      +        "destination_table_id"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "split_run_id": {
      +    "description": "Split run ID.",
      +    "type": "string"
      +  },
      +  "splitter_id": {
      +    "description": "Splitter ID.",
      +    "type": "string"
      +  },
      +  "status": {
      +    "description": "succeeded, or waiting_for_review when segments need review.",
      +    "type": "string"
      +  },
      +  "version": {
      +    "description": "Version number that was run.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "version_id": {
      +    "description": "Version ID that was run.",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / run / required
      Added value: +[
      +  "processing_run_id",
      +  "split_run_id",
      +  "splitter_id",
      +  "version_id",
      +  "version",
      +  "status",
      +  "segment_count",
      +  "review_count",
      +  "segments"
      +]
    • addedOutput schema / properties / run / type
      Added value: +"object"
  2. Changed1 schema field changed
    • addedInput schema / properties / project_slug / description
      Added value: +"Slug of an owned project. Optional only when the account has exactly one visible project; required for accounts with multiple visible projects."
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover readOnly=false, idempotent=true, destructive=false, so the bar is lower, and the description still adds real behavior: the run is persisted with its segments, it enters a review state when the configuration flags pages, and the response carries status plus segments. The idempotency sentence largely restates idempotentHint but gives the concrete replay condition (same version + same document).

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?

Front-loads the core action and effect in the opening clause, with secondary facts (review gating, idempotent replay, return contents) following in order. It is dense with semicolons but no sentence is padding.

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?

With an output schema present, return values need only light mention, and the description covers persistence, review gating, and replay semantics. What remains thin is failure behavior (unknown document, unpublished version) and how the review step is later resolved, which an agent would need in practice.

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 100%, so parameter meaning is already documented in structured fields. The description adds only the framing that the target is one saved document in the current project and that the version must be published - neither of which is new relative to the schema text.

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?

States a specific verb and resource: splits one saved document into segments using a published fixed page-range splitter and persists a run plus segments. The 'published version' framing implicitly separates it from the test_page_range sibling, but no sibling is named explicitly, so differentiation relies on inference.

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?

Conveys useful operating context (requires a published version, document page count must be known, review gating), but never states when to choose this over splitters.test_page_range or when a run should be avoided. Usage is implied rather than prescribed.

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.