Skip to main content
Glama

publish_process_definition

Publishes the next version of a process definition so new instances use it while existing instances keep their original version; validate the definition before publishing.

Instructions

Publish the next version of a process definition. New instances use it; existing instances retain their original version. Validate first. Worker request recipes belong to the definition; agents select among its allowed recipes.

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": {
      "spec": "<spec>"
    },
    "name": "publish_process_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesComplete process definition without version; the platform assigns the next version

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.2.4
    • changedInput schema / properties / spec / description
      Previous value: -"A definição completa, sem `version` (a plataforma calcula a próxima)"New value: +"Complete process definition without version; the platform assigns the next version"
  2. Addedv2.2.3

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, closed-world behavior; the description adds real context on top: the platform assigns the next version number, running instances are unaffected (consistent with destructiveHint=false), and publication must follow validation. Remaining gaps: no mention of required permissions or what happens if validation was skipped. No contradiction with annotations.

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 short sentences, front-loaded with the action and its versioning effect, then the validation prerequisite, then a domain note. The final sentence about request recipes is terse enough to be slightly cryptic, but no wording is wasted.

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?

For a single-parameter mutation tool with full schema coverage, solid annotations, and no output schema, the description covers the essential behavior: version assignment, effect on existing instances, and the validation prerequisite. It could go further on failure modes or returned version identifiers, but an agent has enough to call it correctly.

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?

Only one parameter and schema coverage is 100%, so the schema already explains that 'spec' is a complete definition without a version. The trailing sentence about worker request recipes belonging to the definition implies what the spec contains, but it is ambiguous and not clearly tied to the parameter. 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 — 'Publish the next version of a process definition' — and immediately explains the versioning effect (new instances use it, existing ones keep their original version), which separates it from get_/retire_/validate_ siblings. It stops short of explicitly naming alternatives, so differentiation is inferred rather than stated.

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?

'Validate first.' gives an explicit precondition that routes the agent to validate_process_definition before calling this tool, and the existing-instances note clarifies that republishing is unnecessary for already-running work. No explicit when-not guidance beyond that, and the prerequisite tool is not named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools