Skip to main content
Glama

Splitters Update Page Range

splitters.update_page_range
DestructiveIdempotent

Updates the name, description, or configuration of a fixed page-range splitter draft and increments its draft revision; omitted fields keep their values. Rejected when expected_draft_revision no longer matches the draft or the splitter is archived. Only the draft changes: published versions are unaffected until the draft is published again. Returns the updated draft.

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>",
      "expected_draft_revision": "<expected_draft_revision>"
    },
    "name": "splitters.update_page_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew splitter name, unique within the project.
configNoComplete replacement page-range configuration.
descriptionNoNew notes about the splitter's purpose; null clears them.
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.
expected_draft_revisionYesdraft_revision of the splitter as last read. The request is rejected if the draft has changed since; read the splitter again for the current value.

Output Schema

NameRequiredDescriptionDefault
splitterYesThe draft after the update, with its new draft_revision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed24 schema fields changed
    • addedInput schema / properties / config / description
      Added value: +"Complete replacement 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: +"New notes about the splitter's purpose; null clears them."
    • addedInput schema / properties / expected_draft_revision / description
      Added value: +"draft_revision of the splitter as last read. The request is rejected if the draft has changed since; read the splitter again for the current value."
    • addedInput schema / properties / name / description
      Added value: +"New 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."
    • addedInput schema / properties / splitter_id / description
      Added value: +"ID of a splitter in the selected project, as returned when it was created or listed."
    • addedOutput schema / properties / splitter / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / splitter / description
      Added value: +"The draft after the update, with its new draft_revision."
    • 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

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds substantive context beyond that: partial-update semantics ("omitted fields keep their values"), optimistic-concurrency rejection, archived-state rejection, and the blast radius ("published versions are unaffected until the draft is published again"). That is exactly the mutation-impact information an agent needs before committing a write.

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?

Three sentences, front-loaded with the scope of the mutation, then failure conditions, then the effect boundary. No filler, though the opening sentence is dense enough that the field list and the revision-increment side effect compete for attention.

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 destructive, nested-config mutation with six parameters, the description covers what changes, what does not change, when the call fails, and that a draft is returned — with an output schema present, it correctly does not attempt to describe the response body. Nothing an agent needs to invoke this safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns above baseline by stating that omitted fields retain their values, which defines PATCH semantics for all four optional parameters, and by framing expected_draft_revision as a compare-and-swap token rather than a plain integer. It adds nothing about project_slug fallback behavior or config replacement semantics, so it is not exhaustive.

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?

The description names a specific verb and resource ("Updates the name, description, or configuration of a fixed page-range splitter draft") and pins the subtype as "page_range", which distinguishes it from the sibling splitters.update_logical. It also states the revision-increment side effect, so the agent knows exactly what class of operation this is 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 Guidelines4/5

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

It gives clear preconditions under which the call is rejected (expected_draft_revision mismatch, archived splitter) and states that only the draft changes until published, which implicitly routes publish/re-run cases elsewhere. It stops short of explicitly naming alternatives such as splitters.publish or splitters.update_logical for non-page-range splitters, so it is clear but not fully routing.

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.