create_workflow
Define a compliance workflow from a YAML definition, display its diagram, and require user confirmation before execution.
Instructions
Create a new workflow using YAML definition. Always display the workflow diagram. Before creation confirm workflow name and creation with the user before executing this tool. Later use 'modify_workflow' tool to update states, activities, conditions, and transitions.
yaml struct:
metadata: name: description: summary: mermaidDiagram:
This function creates a workflow from a YAML specification.
Create workflow (establishes the ID) Update summary (document what we're building) Update mermaid diagram (visualize the flow) Then modify workflow (implement the actual logic)
Args: workflow_yaml: YAML string defining the workflow structure
Returns: Success message with workflow ID or error message
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": {
"workflow_yaml": "<workflow_yaml>"
},
"name": "create_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_yaml | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |