Skip to main content
Glama

Splitters Create Page Range

splitters.create_page_range
Idempotent

Creates an inactive draft splitter that cuts each document into fixed page ranges and sends each section's pages to its own table in this project. Fails when the project already has a splitter with this name. Nothing runs until the draft is published and run on a document. Returns the draft with its ID and draft_revision.

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": {
      "name": "<name>",
      "config": "<config>"
    },
    "name": "splitters.create_page_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSplitter name, unique within the project.
configYesPage-range configuration.
descriptionNoNotes about the splitter's purpose.
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
splitterYesThe created draft.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed22 schema fields changed
    • addedInput schema / properties / config / description
      Added value: +"Page-range configuration."
    • addedInput schema / properties / config / properties / fallback_section_key / description
      Added value: +"section_key of the section that receives unassigned pages. Required when unassigned_policy is fallback."
    • addedInput schema / properties / config / properties / max_segments / description
      Added value: +"Maximum number of sections the configuration may define; 50 when omitted."
    • addedInput schema / properties / config / properties / mode / description
      Added value: +"Identifies a fixed page-range configuration; may be omitted."
    • addedInput schema / properties / config / properties / overlap_policy / description
      Added value: +"Whether a page may belong to more than one section: exclusive rejects overlapping spans; allowed keeps them and reports the overlaps. exclusive when omitted."
    • addedInput schema / properties / config / properties / sections / description
      Added value: +"Sections to cut from each document, each sent to its own table."
    • addedInput schema / properties / config / properties / sections / items / properties / description / description
      Added value: +"Notes about what the section contains."
    • addedInput schema / properties / config / properties / sections / items / properties / destination_table_id / description
      Added value: +"ID (not slug) of the table in this project that receives this section's pages."
    • addedInput schema / properties / config / properties / sections / items / properties / name / description
      Added value: +"Display name for the section."
    • addedInput schema / properties / config / properties / sections / items / properties / page_spans / description
      Added value: +"Page ranges belonging to this section."
    • addedInput schema / properties / config / properties / sections / items / properties / page_spans / items / properties / end_page / description
      Added value: +"Last page of the range, inclusive. Spans past the document's last page are rejected when the splitter is tested or run."
    • addedInput schema / properties / config / properties / sections / items / properties / page_spans / items / properties / start_page / description
      Added value: +"First page of the range, counting from 1."
    • addedInput schema / properties / config / properties / sections / items / properties / section_key / description
      Added value: +"Stable identifier for the section, such as invoice_pages. Referenced by fallback_section_key and reported on each segment."
    • addedInput schema / properties / config / properties / unassigned_policy / description
      Added value: +"Handling of pages that no section covers: review holds the run for review, ignore only reports them, and fallback adds them to the section named in fallback_section_key. review when omitted."
    • addedInput schema / properties / description / description
      Added value: +"Notes about the splitter's purpose."
    • addedInput schema / properties / name / description
      Added value: +"Splitter name, unique within the project."
    • 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."
    • addedOutput schema / properties / splitter / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / splitter / description
      Added value: +"The created draft."
    • addedOutput schema / properties / splitter / properties
      Added value: +{
      +  "config": {
      +    "additionalProperties": {},
      +    "description": "Current draft configuration in the same shape as the create input for this mode, with server defaults filled in.",
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "created_at": {
      +    "description": "ISO 8601 time the splitter was created, or null when unknown.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "description": {
      +    "description": "Optional description.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "draft_revision": {
      +    "description": "Current draft revision; pass it as expected_draft_revision when updating or publishing.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "id": {
      +    "description": "Splitter ID.",
      +    "type": "string"
      +  },
      +  "latest_version": {
      +    "description": "Latest published version number; 0 when never published.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "mode": {
      +    "description": "page_range for fixed page ranges, or logical for model-detected sections.",
      +    "type": "string"
      +  },
      +  "name": {
      +    "description": "Splitter name.",
      +    "type": "string"
      +  },
      +  "status": {
      +    "description": "draft (never published), published, or archived.",
      +    "type": "string"
      +  },
      +  "updated_at": {
      +    "description": "ISO 8601 time the splitter was last changed, or null when unknown.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • addedOutput schema / properties / splitter / required
      Added value: +[
      +  "id",
      +  "name",
      +  "description",
      +  "mode",
      +  "status",
      +  "draft_revision",
      +  "latest_version",
      +  "config",
      +  "created_at",
      +  "updated_at"
      +]
    • addedOutput schema / properties / splitter / 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.8/5.0
Behavior4/5

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

Annotations already declare non-readOnly, non-destructive, idempotent, closed-world. The description adds real behavioral context beyond that: the created object is an inactive draft, it fails on a duplicate name in the project, no processing occurs until publish+run, and it returns the draft ID and draft_revision. Remaining gap is minor (no permission/validation detail).

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 sentences, front-loaded with the core action, then failure mode, then lifecycle, then return value. Each sentence contributes; nothing is padded or redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nested-config mutation tool with an output schema and full schema coverage, the description supplies what structure cannot: the draft lifecycle, the duplicate-name failure, the fact nothing runs until published, and the return shape. An agent can call this correctly without further information.

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 all parameters including nested config fields are already documented in the schema. The description adds framing about fixed page ranges and per-section destination tables but no additional syntax or constraint detail beyond the schema, so baseline 3 applies.

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 ('Creates an inactive draft splitter') plus the exact segmentation behavior ('cuts each document into fixed page ranges and sends each section's pages to its own table'). The 'page range' framing implicitly distinguishes it from the logical-splitter sibling without naming it, so it is clear but not fully differentiated.

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 description gives useful lifecycle context — nothing executes until the draft is published and run — which implies publish/run are follow-up steps, and it names the duplicate-name failure condition as a prerequisite. It does not explicitly state when to choose this over splitters.create_logical or update_page_range, so usage is implied rather than spelled out.

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.