Skip to main content
Glama

Splitters Update Logical

splitters.update_logical
DestructiveIdempotent

Replaces the name, description, and configuration of a logical splitter draft and increments its draft revision. Rejected when expected_draft_revision no longer matches the draft or the splitter is archived. Only the draft changes: an already published version keeps handling documents 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": "<name>",
      "config": "<config>"
    },
    "name": "splitters.update_logical"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSplitter name, unique within the project. The draft is replaced as a whole, so supply the name even when unchanged.
configYesComplete replacement logical configuration.
descriptionNoNotes about the splitter's purpose; omitting it or passing 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. Changed23 schema fields changed
    • addedInput schema / properties / config / description
      Added value: +"Complete replacement logical configuration."
    • addedInput schema / properties / config / properties / boundaryConfidenceThreshold / description
      Added value: +"Model confidence, as a percentage, below which a section boundary counts as uncertain; 75 when omitted."
    • addedInput schema / properties / config / properties / instructions / description
      Added value: +"Guidance for the splitting model on how to recognize where one section of a combined PDF ends and the next begins."
    • addedInput schema / properties / config / properties / maxSegments / description
      Added value: +"Maximum number of sections the model may return for one document; more fails the split. 50 when omitted."
    • addedInput schema / properties / config / properties / mode / description
      Added value: +"Identifies a logical configuration, where a model detects section boundaries."
    • addedInput schema / properties / config / properties / reviewUncertainBoundaries / description
      Added value: +"When true, a split is held for review if any boundary is uncertain: unassigned pages, overlapping sections, or a boundary below the confidence threshold."
    • addedInput schema / properties / config / properties / reviewUncertainDestinations / description
      Added value: +"Records whether sections with an uncertain destination table should be held for review. Destination review itself follows the confidence thresholds of the project routing rules."
    • addedInput schema / properties / config / properties / routingMode / description
      Added value: +"Routes each detected section through the project routing rules."
    • addedInput schema / properties / config / properties / sectionTypes / description
      Added value: +"Kinds of sections to detect. An empty list lets the model discover section types itself."
    • addedInput schema / properties / config / properties / sectionTypes / items / properties / description / description
      Added value: +"Hints that help the model recognize this section type."
    • addedInput schema / properties / config / properties / sectionTypes / items / properties / key / description
      Added value: +"Stable identifier for the section type, such as bank_statement."
    • addedInput schema / properties / config / properties / sectionTypes / items / properties / name / description
      Added value: +"Display name for the section type."
    • addedInput schema / properties / config / properties / sourceInboxId / description
      Added value: +"ID of an inbox in this project, as listed with the project's inboxes, whose emailed attachments the splitter handles once published; null applies it to documents uploaded to the project."
    • addedInput schema / properties / description / description
      Added value: +"Notes about the splitter's purpose; omitting it or passing 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: +"Splitter name, unique within the project. The draft is replaced as a whole, so supply the name even when unchanged."
    • 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.4/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint, idempotentHint) by disclosing that this is a whole-object replacement, that the draft revision is incremented, that stale revisions are rejected, and that the live published version is untouched. Those are exactly the behavioral facts an agent must know before calling a destructive mutation.

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 mutation, then layers rejection conditions, draft-vs-published scope, and the return value in four tight sentences with no filler. The closing 'Returns the updated draft' is mildly redundant given an output schema exists, keeping it from a 5.

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, revision-guarded mutation with a nested config object, the description supplies the mutation semantics, the guard, the blast radius, and the concurrency model, while the schema and output schema carry the parameter and return detail. Nothing an agent needs to call it safely is missing.

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 every parameter and nested config field is already documented in the schema, including the revision-mismatch rejection and the null-project_slug fallback. The description restates full-replacement semantics but adds no format or syntax detail beyond the structured fields, so the 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 ('Replaces the name, description, and configuration of a logical splitter draft') and adds the distinguishing scope fact that only the draft changes while a published version keeps serving. An agent can tell this apart from splitters.create_logical and splitters.publish without opening any 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?

Gives clear preconditions for the call — expected_draft_revision must still match and the splitter must not be archived — which implicitly defines when this tool is the right choice. It never names an alternative route (e.g. create_logical for a new splitter, publish to promote), so guidance is strong but not fully closed.

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.