create_workflow
Create a workflow (PRO and above): a trigger event, an optional trigger condition, and a graph of steps, scoped to one project or, with no projectId, org-wide. The workflow is created INACTIVE and this tool cannot activate it; a person turns it on in the app. Same rules as saving a new workflow in the web builder: automation.manage on the project (org MANAGER and above for org-wide), the plan for the trigger, and a graph that would run. Returns the new workflow id and a plain-language readback of what it does. design_workflow_draft can then redesign its steps with AI, and test_run_workflow runs it once against a sample.
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": {
"name": "<name>",
"trigger": "<trigger>",
"graph": "<graph>"
},
"name": "create_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Workflow name, 1 to 160 characters. | |
| graph | Yes | The steps: {"startStepId":"s1","steps":{"s1":{"kind":"ACTION","action":{"type":"ADD_COMMENT","value":"Thanks, picked up."},"next":null}}}. kind is ACTION, CONDITION, DELAY, APPROVAL or WEBHOOK; steps link through next (onTrue/onFalse on a CONDITION, onApproved/onRejected on an APPROVAL). Action types: SET_STATUS, SET_PRIORITY, SET_PROGRESS, ADD_COMMENT, APPEND_DESCRIPTION, SEND_NOTIFICATION, SEND_EMAIL, WEBHOOK_CALL, UPDATE_PROJECT_STATUS, SET_PROPOSAL_STAGE, NOTIFY_SPONSOR, NOTIFY_REVIEWERS, ASSIGN_TO, ADD_TAG, REMOVE_TAG, MOVE_TO_SPRINT, MOVE_TO_EPIC, SET_CUSTOM_FIELD, INCREMENT_FIELD. | |
| maxRuns | No | Optional cap on the number of runs. | |
| trigger | Yes | The event that starts the workflow, and optionally a condition on it. | |
| schedule | No | Optional {"cron":"0 9 * * 1","timezone":"Europe/London"}; project workflows only. | |
| projectId | No | The project the workflow runs in. Omit for an org-wide workflow. | |
| description | No |