What is a workflow tool?
A workflow tool is a tool you build visually. Instead of writing JavaScript, you place steps on a canvas, connect them from left to right, and fill in a few fields. MCPCore turns the workflow into sandbox code when you save it. To an AI client, a workflow tool looks exactly like a code tool: it has a name, a description and typed parameters, and it returns a result.When to use a workflow
Database lookups, REST API calls, reshaping JSON, branching, looping over a list and handling errors. Most read-style tools fit here.
When to use code
Complex calculations, nested loops, custom libraries or anything the steps can’t express.
Create a workflow tool
1
Choose Build a workflow
On the server detail page, click Create New Tool and choose Build a workflow. You get the same choice right after creating a server.
2
Start from a template, from AI or from scratch
A gallery of ready-made workflows opens first. Pick one to load its steps, tool name and parameters, or close the gallery to start with an empty canvas. You can also describe the tool to the AI and let it build the steps.
3
Describe the tool
In the left panel, set the tool name (lowercase
snake_case), a description the AI will read, and the parameters the AI passes when it calls the tool. See Parameters.4
Add and connect steps
Drag steps from the palette onto the canvas, then connect them from left to right. Every workflow begins with a Start step and ends with at least one Return step. See Steps.
5
Configure each step
Select a step to open its settings in the inspector on the right. Use the variable button next to a field to insert variables such as tool parameters or the output of an earlier step.
6
Test and save
Click Run to test the workflow step by step. When every step looks right, click Create (or Save & publish for an existing tool). The tool is live immediately. Use Save draft to keep changes without touching the live tool, see Version history.
Describe it with AI
Click AI Assistant (the sparkles button) in the left bar and describe the tool in plain words, for example “Get open GitHub issues for a repo and return the title and url of the ones older than 7 days”. MCPCore builds the steps, connects them and fills in the tool name, description and parameters. The result opens unsaved, so you review and test it before anything goes live. See Generate with AI for how it works, what is sent to the AI and how to get good results.Editor layout
How it runs
When you save, MCPCore compiles the workflow into JavaScript and runs it in the same isolated sandbox as code tools. The same limits apply: execution timeout, memory and network rules.- Steps run in the order of their connections. A step runs only after every step it depends on has finished.
- A Condition step sends execution down its true or false branch; steps on the other branch are skipped.
- A For Each step runs the steps on its each output once per item, then continues on done. See For Each.
- A step whose error option is Continue on the error branch continues on its error output when it fails. See Error handling.
- A single run executes at most 1,000 steps and makes at most 100 HTTP and database calls, retries included.
- The first Return step that runs ends the tool and sends its value to the AI client.
- Database connections are closed automatically when the tool finishes.
Values from parameters and earlier steps are always sent to the database as query bindings, never pasted into the SQL text. A parameter such as
' OR 1=1 -- is treated as plain data, so workflow queries are safe from SQL injection.Secrets in workflows
Database credentials and API tokens are never typed into a step. Fields such as Host, Password or Bearer token secret let you pick one of your server’s environment secrets. If the secret doesn’t exist yet, choose Create a new secret to add it without leaving the editor; it becomes available in the field right away.Next steps
Steps
Reference for every step type and its fields.
Variables
Use parameters, secrets and step outputs inside fields.
Testing
Run the workflow and watch each step execute.
Templates
Six ready-made workflows to start from.
Generate with AI
Describe the tool and let the AI build the steps.
Version history
Save drafts, compare versions and restore an earlier one.