Skip to main content
Glama

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

NameRequiredDescriptionDefault
nameYesWorkflow name, 1 to 160 characters.
graphYesThe 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.
maxRunsNoOptional cap on the number of runs.
triggerYesThe event that starts the workflow, and optionally a condition on it.
scheduleNoOptional {"cron":"0 9 * * 1","timezone":"Europe/London"}; project workflows only.
projectIdNoThe project the workflow runs in. Omit for an org-wide workflow.
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trigger / properties / event / enum
      Previous value: -[
      -  "STATUS_CHANGED",
      -  "PRIORITY_CHANGED",
      -  "DUE_DATE_PASSED",
      -  "DUE_DATE_APPROACHING",
      -  "TASK_CREATED",
      -  "ASSIGNEE_CHANGED",
      -  "PROGRESS_CHANGED",
      -  "COMMENT_ADDED",
      -  "TASK_COMPLETED",
      -  "ATTACHMENT_ADDED",
      -  "TAG_ADDED",
      -  "TAG_REMOVED",
      -  "PROJECT_CREATED",
      -  "PROJECT_STATUS_CHANGED",
      -  "PROJECT_BILLABLE_CHANGED",
      -  "SCENARIO_APPLIED",
      -  "PROJECT_READINESS_CHECKED",
      -  "PROJECT_CLOSEOUT_SIGNED_OFF",
      -  "PROJECT_ARCHIVED",
      -  "PROJECT_UNARCHIVED",
      -  "MILESTONE_REACHED",
      -  "TIME_LOGGED",
      -  "WORKSPACE_ROW_CREATED",
      -  "DOCUMENT_UPLOADED",
      -  "DOCUMENT_VERSION_ADDED",
      -  "PROPOSAL_CREATED",
      -  "PROPOSAL_STAGE_CHANGED",
      -  "PROPOSAL_APPROVED",
      -  "PROPOSAL_REJECTED",
      -  "GATE_REVIEW_REQUESTED",
      -  "GATE_REVIEW_SUBMITTED",
      -  "INTAKE_SUBMITTED",
      -  "CHANGE_REQUEST_CREATED",
      -  "CHANGE_REQUEST_STATUS_CHANGED",
      -  "TIMESHEET_SUBMITTED",
      -  "TIMESHEET_APPROVED",
      -  "TIMESHEET_REJECTED",
      -  "MEMBER_JOINED",
      -  "MEMBER_REMOVED",
      -  "BUDGET_EXCEEDED",
      -  "BUDGET_THRESHOLD_REACHED"
      -]New value: +[
      +  "STATUS_CHANGED",
      +  "PRIORITY_CHANGED",
      +  "DUE_DATE_PASSED",
      +  "DUE_DATE_APPROACHING",
      +  "TASK_CREATED",
      +  "ASSIGNEE_CHANGED",
      +  "PROGRESS_CHANGED",
      +  "COMMENT_ADDED",
      +  "TASK_COMPLETED",
      +  "ATTACHMENT_ADDED",
      +  "TAG_ADDED",
      +  "TAG_REMOVED",
      +  "PROJECT_CREATED",
      +  "PROJECT_STATUS_CHANGED",
      +  "PROJECT_BILLABLE_CHANGED",
      +  "SCENARIO_APPLIED",
      +  "PROJECT_READINESS_CHECKED",
      +  "PROJECT_CLOSEOUT_SIGNED_OFF",
      +  "PROJECT_ARCHIVED",
      +  "PROJECT_UNARCHIVED",
      +  "MILESTONE_REACHED",
      +  "TIME_LOGGED",
      +  "WORKSPACE_ROW_CREATED",
      +  "DOCUMENT_UPLOADED",
      +  "DOCUMENT_VERSION_ADDED",
      +  "PROPOSAL_CREATED",
      +  "PROPOSAL_STAGE_CHANGED",
      +  "PROPOSAL_APPROVED",
      +  "PROPOSAL_REJECTED",
      +  "GATE_REVIEW_REQUESTED",
      +  "GATE_REVIEW_SUBMITTED",
      +  "INTAKE_SUBMITTED",
      +  "CHANGE_REQUEST_CREATED",
      +  "CHANGE_REQUEST_STATUS_CHANGED",
      +  "TIMESHEET_SUBMITTED",
      +  "TIMESHEET_APPROVED",
      +  "TIMESHEET_REJECTED",
      +  "MEMBER_JOINED",
      +  "MEMBER_REMOVED",
      +  "BUDGET_EXCEEDED",
      +  "BUDGET_THRESHOLD_REACHED",
      +  "RISK_P80_SLIPPED"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations cover only mutation/safety flags, and the description adds the critical lifecycle fact that the workflow starts inactive and cannot be activated here, plus the permission and plan gates and the requirement that the graph 'would run'. It also discloses the return payload (new workflow id plus a plain-language readback). It stops short of describing failure modes or validation error behavior.

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?

Front-loaded with the resource and its parts, then constraints, then return value, then alternatives — a logical order with no filler. Some sentences are dense run-ons (permissions, plan, and graph validity packed into one clause) but every element carries information.

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?

With 7 parameters, nested graph/trigger objects and no output schema, the description supplies the missing return-value information and the lifecycle constraint. The optional schedule parameter and its project-only limitation are left entirely to the schema, a minor residual gap.

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 description coverage is 86%, so the schema already documents name, graph, trigger, schedule and projectId, including the org-wide omission rule. The description reinforces the graph-must-be-runnable constraint but adds no syntax or format detail beyond what the schema carries, so baseline 3 applies.

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 plus the composition it requires ('a trigger event, an optional trigger condition, and a graph of steps') and the scope rule ('scoped to one project or, with no projectId, org-wide'). The scope clause alone separates it from generic create tools in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly bounds what the tool does not do ('created INACTIVE and this tool cannot activate it; a person turns it on in the app') and routes the agent onward to design_workflow_draft for step redesign and test_run_workflow for a sample run. Prerequisites (automation.manage, org MANAGER for org-wide, plan for the trigger) are stated up front.

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.