Manage workflow templates and versions from an AI assistant using the Commenda MCP server.
The Commenda MCP server exposes Workflow Builder operations as tools, so AI assistants like Claude Desktop and Cursor can create, version, publish, and manage workflow templates through natural language.
Version tools operate on a single version of a template. A template can have multiple versions in DRAFT, PUBLISHED, or ARCHIVED status, but only one version is published at a time.
Tool
Description
create_workflow_template_version
Create a new version. If no definition is provided, a default definition with wired-up START and END steps is generated.
get_workflow_template_version
Get a version by ID, including the full definition (steps, transitions, step groups, triggers).
update_workflow_template_version
Update a version’s metadata or replace its full definition JSON.
list_workflow_template_versions
List versions filtered by workflowTemplateId, status, or version string.
publish_workflow_template_version
Publish a DRAFT version. Validates the definition first — fails if structural elements are missing.
delete_workflow_template_version
Delete a version. A PUBLISHED version that is actively in use must be archived or unpublished first.
Creates a new version under an existing template. If you don’t pass a definition, the server seeds the version with a minimal valid definition: a START step and an END step with no transitions yet.
Parameter
Type
Required
Description
workflowTemplateId
string
Yes
ID of the template this version belongs to.
version
string
Yes
Version string, e.g. "1.0.0".
versionNote
string
No
Changelog or notes for this version.
definition
object
No
Full workflow definition JSON. If omitted, a default START + END skeleton is generated.
Prefer letting the server scaffold the default definition, then build up the workflow incrementally with the visual editor or the lower-level step and transition APIs. Only pass a full definition when you have a complete, verified JSON.
Example prompt
Create version 1.0.0 of workflow template wt_abc123 with the note"Initial draft".
Publishes a DRAFT version, making it available for execution. The server validates the definition before publishing — for example, it checks that there is a path from a START step to an END step. See validation rules for the full list.Only one version can be published per template at a time.
A typical sequence for spinning up a new workflow from an AI assistant:
1. "Create a workflow template named 'Customer onboarding' with the external name 'Onboard a new customer' for company 1." → create_workflow_template2. "Create version 1.0.0 of that template with the note 'Initial draft'." → create_workflow_template_version (server returns a version seeded with START and END steps)3. "List all draft versions for template wt_abc123." → list_workflow_template_versions4. "Publish version wtv_xyz789." → publish_workflow_template_version