Skip to main content
Glama

Splitters Test Page Range

splitters.test_page_range
Read-onlyIdempotent

Previews how a fixed page-range splitter divides a document with the given page count, without saving anything. Returns the resulting segments with their pages and destination tables, unassigned pages, pages claimed by several sections, and whether a run would wait for review.

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>",
      "page_count": "<page_count>"
    },
    "name": "splitters.test_page_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoPublished version number to preview. Omit to preview the current draft.
page_countYesNumber of pages to simulate, normally the page count of the document the splitter will run on.
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
previewYesPreview of page assignments; nothing is saved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / page_count / description
      Added value: +"Number of pages to simulate, normally the page count of the document the splitter will run on."
    • 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 preview. Omit to preview the current draft."
    • addedOutput schema / properties / preview / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / preview / description
      Added value: +"Preview of page assignments; nothing is saved."
    • addedOutput schema / properties / preview / properties
      Added value: +{
      +  "downstream_page_count": {
      +    "description": "Total pages sent to destination tables, counting overlaps once per section.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "draft_revision": {
      +    "anyOf": [
      +      {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "Draft revision tested, or null when a published version was tested."
      +  },
      +  "overlaps": {
      +    "description": "Pages assigned to more than one section.",
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "page": {
      +          "description": "Page assigned to several sections.",
      +          "maximum": 9007199254740991,
      +          "minimum": -9007199254740991,
      +          "type": "integer"
      +        },
      +        "section_keys": {
      +          "description": "Sections that include the page.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "page",
      +        "section_keys"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "page_count": {
      +    "description": "Page count the preview assumed.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "review_required": {
      +    "description": "Whether a run with this page count would wait for review.",
      +    "type": "boolean"
      +  },
      +  "segments": {
      +    "description": "Segments the splitter would produce.",
      +    "items": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "destination_table_id": {
      +          "description": "Table that would receive the segment.",
      +          "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_required": {
      +          "description": "Whether the segment needs review.",
      +          "type": "boolean"
      +        },
      +        "section_key": {
      +          "description": "Section that produced the segment.",
      +          "type": "string"
      +        },
      +        "section_name": {
      +          "description": "Section name.",
      +          "type": "string"
      +        },
      +        "segment_key": {
      +          "description": "Segment key.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "segment_key",
      +        "section_key",
      +        "section_name",
      +        "destination_table_id",
      +        "page_spans",
      +        "page_count",
      +        "ordinal",
      +        "review_required"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "splitter_id": {
      +    "description": "Splitter ID.",
      +    "type": "string"
      +  },
      +  "unassigned_page_spans": {
      +    "description": "Pages no section covers.",
      +    "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"
      +  },
      +  "unique_assigned_page_count": {
      +    "description": "Distinct pages assigned to at least one section.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "version": {
      +    "anyOf": [
      +      {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "description": "Published version tested, or null when the current draft was tested."
      +  }
      +}
    • addedOutput schema / properties / preview / required
      Added value: +[
      +  "splitter_id",
      +  "version",
      +  "draft_revision",
      +  "page_count",
      +  "segments",
      +  "unassigned_page_spans",
      +  "overlaps",
      +  "review_required",
      +  "unique_assigned_page_count",
      +  "downstream_page_count"
      +]
    • addedOutput schema / properties / preview / 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

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, so the bar is lower, yet the description still adds real behavior: nothing is persisted, and the response flags unassigned pages, multiply-claimed pages, and review-gating. It does not explicitly confirm that preview reflects the draft vs. published state, which the version parameter implies but the text never states.

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?

Two sentences, purpose front-loaded, with the return-shape detail confined to the second sentence. The list of returned elements is dense but each clause maps to a distinct consumer decision; the enumeration is slightly longer than needed given an output schema exists.

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 annotations, a full-coverage schema, and an output schema, the description needs only to convey the dry-run contract and the review-gate signal — which it does. The only gap is the lack of explicit guidance on when to choose this over actually running the splitter.

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 explains splitter_id, page_count, version, and project_slug in detail. The description only restates 'with the given page count' and adds no format, default, or fallback nuance beyond what the schema supplies; baseline 3 applies.

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 and resource — 'Previews how a fixed page-range splitter divides a document' — and immediately bounds the scope with 'without saving anything'. An agent can distinguish this from the mutation siblings (create/update/run_page_range) purely from the text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The dry-run framing ('without saving anything', 'whether a run would wait for review') gives a clear context for use as a pre-flight check before running a split. It stops short of naming the alternative tool (splitters.run_page_range) or stating explicit exclusions, so an agent must infer the pairing.

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.