Skip to content

feat(agent-toolkit): add create_workflow_builder tool#352

Merged
amitrossmonday merged 15 commits into
masterfrom
feat/amit/create-workflow-mcp-tool
May 26, 2026
Merged

feat(agent-toolkit): add create_workflow_builder tool#352
amitrossmonday merged 15 commits into
masterfrom
feat/amit/create-workflow-mcp-tool

Conversation

@amitrossmonday
Copy link
Copy Markdown
Collaborator

@amitrossmonday amitrossmonday commented May 24, 2026

https://monday.monday.com/boards/18412762536/pulses/12033858412

Summary

  • Add create_workflow_builder MCP tool that calls the workflow-builder create_workflow GraphQL mutation
  • Creates a new empty Workflow Builder workflow in a workspace and returns workflow_object_id (stable entity ID) and workflow_draft_id (draft version ID)
  • Accepts workspaceId (required), and optional title, privacyKind (PUBLIC/PRIVATE/SHAREABLE), description, folderId, ownerIds
  • Lives in a new workflow-builder-tools/ folder, distinct from the automations-side workflows-tools/

Test plan

  • Unit tests pass (npm test in packages/agent-toolkit)
  • Call create_workflow_builder with a valid workspace ID and verify both IDs are returned
  • Verify optional args (title, privacyKind, description, folderId, ownerIds) are forwarded correctly
Screenshot 2026-05-26 at 12 02 32 Screenshot 2026-05-26 at 12 02 23

🤖 Generated with Claude Code

@amitrossmonday amitrossmonday added the enhancement New feature or request label May 24, 2026
@amitrossmonday amitrossmonday marked this pull request as draft May 24, 2026 17:36
@amitrossmonday amitrossmonday force-pushed the feat/amit/create-workflow-mcp-tool branch 10 times, most recently from 23b3cb3 to 1478829 Compare May 25, 2026 15:22
@amitrossmonday amitrossmonday marked this pull request as ready for review May 25, 2026 15:23
@amitrossmonday amitrossmonday changed the title feat(agent-toolkit): add create_workflow tool feat(agent-toolkit): add create_workflow_builder tool May 25, 2026
amitrossmonday and others added 6 commits May 26, 2026 12:44
Adds a new MCP tool that calls the create_workflow GraphQL mutation
in the workflow-builder subgraph to provision a new empty workflow
and return its workflow_object_id and workflow_id.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ivacy_kind type

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ools

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ilder to generated types

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@amitrossmonday amitrossmonday force-pushed the feat/amit/create-workflow-mcp-tool branch from 2322649 to 9cd6034 Compare May 26, 2026 09:44
Comment thread packages/agent-toolkit/codegen.yml Outdated
schema: 'src/monday-graphql/schema.dev.graphql'
documents: 'src/**/*.graphql.dev.ts'
documents:
- 'src/**/*.graphql.dev.ts'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The array format was a leftover from when we had an exclusion line here. Reverted to a plain string — same as before.

@@ -0,0 +1 @@
export * from './create-workflow/create-workflow-tool';
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think no ned for index file, we dont have those in the repo

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

workflows-tools/, agents-tools/, and dashboard-tools/ all follow the same pattern with an index.ts re-export. I've added one here for consistency — see those directories as reference.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 out of 50+ 🙈

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point — removed the index.ts, importing directly now.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In package json file of agent toolkit, please bump the version

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — bumped to 5.15.0.

… documents format

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Terminology:
- Workflow Builder vs. board automations: Workflow Builder workflows are standalone objects scoped to a workspace. Board automations (create_automation) are per-board trigger/action rules. They are different products.
- Draft: the editable, inactive version of a workflow. Changes are made on the draft until it is activated.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

until it is published to live version

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch — updated to 'Changes are made on the draft until it is published to live version.'

amitrossmonday and others added 2 commits May 26, 2026 14:32
…er description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…iption

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
amitrossmonday and others added 6 commits May 26, 2026 15:19
…rkflow_builder description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…der description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rt tool directly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ction after automations tools

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@amitrossmonday amitrossmonday merged commit ec17e98 into master May 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants