Skip to main content
Glama

Splitters Publish

splitters.publish
DestructiveIdempotent

Publishes the current splitter draft as a new immutable version. A published logical splitter takes effect immediately for its source inbox, or for project uploads, and changes how documents arriving afterward are split; only one published logical splitter may serve each source. Republishing an unchanged draft returns the existing version. Rejected when expected_draft_revision no longer matches the draft or the splitter is archived. Returns the version number and ID.

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.publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
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
publicationYesThe published version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • 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."
    • 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 / publication / additionalProperties
      Added value: +{}
    • addedOutput schema / properties / publication / description
      Added value: +"The published version."
    • addedOutput schema / properties / publication / properties
      Added value: +{
      +  "published_at": {
      +    "description": "ISO 8601 time the version was published, or null when unknown.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "reused": {
      +    "description": "True when the draft matched the latest version, so no new version was created.",
      +    "type": "boolean"
      +  },
      +  "revision_hash": {
      +    "description": "Hash of the published configuration.",
      +    "type": "string"
      +  },
      +  "splitter_id": {
      +    "description": "Splitter ID.",
      +    "type": "string"
      +  },
      +  "version": {
      +    "description": "Published version number.",
      +    "maximum": 9007199254740991,
      +    "minimum": -9007199254740991,
      +    "type": "integer"
      +  },
      +  "version_id": {
      +    "description": "Published version ID.",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / publication / required
      Added value: +[
      +  "splitter_id",
      +  "version_id",
      +  "version",
      +  "revision_hash",
      +  "published_at",
      +  "reused"
      +]
    • addedOutput schema / properties / publication / 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.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description earns credit by explaining exactly what those mean here — the publication immediately changes how subsequent documents are split, and republishing an unchanged draft is a no-op returning the existing version. It also discloses rejection behavior for stale revisions and archived splitters, which annotations alone would not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, front-loaded with the action and its effect before caveats and the return value. No filler wording and every sentence carries distinct information.

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 three-parameter mutation tool, the description covers scope, side effects, idempotency, failure modes, and even the return value ('version number and ID') despite an output schema existing. 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 coverage is 100%, so the baseline is 3. The description restates the expected_draft_revision staleness check and implies splitter_id scoping, but adds no format or selection detail beyond what the schema fields already document.

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 ('Publishes the current splitter draft as a new immutable version') and distinguishes itself from sibling mutation tools like splitters.update_logical and splitters.create_logical by framing the action as creating an immutable version rather than editing a draft. The agent knows exactly what state transition occurs.

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 context for when this applies ('takes effect immediately for its source inbox, or for project uploads') and names exclusion conditions (rejected when the revision is stale or the splitter is archived, only one published logical splitter per source). It does not explicitly route to a sibling alternative, but the preconditions make the use case unambiguous.

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.