Tools
Tools let an agent do things instead of only producing text. A tool runs as its own node in the graph: a Tool node for built-in and Python tools, or an MCP Tool node for tools on your MCP servers. It runs when the graph reaches it, and it receives the previous node's output as input.
| Kind | Where you manage it | Credits per call |
|---|---|---|
| Built-in tools | Always available | 1 |
| Custom Python tools | Workspace → Tools, or ask in chat | 5 |
| MCP server tools | Workspace → Connections, or ask in chat | 2 |
Built-in tools
Nine tools ship with the platform. They read their arguments from the previous node's output.
| Tool | What it does |
|---|---|
| HTTP Request | Calls an external API. Reads url, method, headers and body. |
| Web Scrape | Fetches a page and returns its text, or its HTML with format: "html". JavaScript isn't rendered. |
| JSON Parse | Parses a JSON string into structured data |
| JSON Stringify | Serializes a value to a JSON string |
| Text Split | Splits text into an array by a delimiter (newline by default) |
| Text Join | Joins an array into one string (newline by default) |
| Send Email | Sends an email. Needs to, subject and body. |
| Date & Time | Date and time operations: now, format, add, subtract |
| Delay | Waits, then passes its input through unchanged |
HTTP Request and Web Scrape give up after 60 seconds.
HTTP Request, Web Scrape and Send Email are the tools that security scans flag most often. An injected instruction can abuse them to reach an attacker's URL or to email an attacker. Limit what reaches them.
Custom Python tools
When the built-ins aren't enough, write the tool in Python.
Creating one
- From chat: describe the tool, for example
Add a tool that converts an amount between currencies. Convolution writes the Python, runs it once in the sandbox on a sample input, and shows a proposal card with the inputs, the return value and the code. Click Add tool to save it. - By hand: open Workspace → Tools and click Create Tool. Fill in Configuration (Tool Name, Description, Category, Input Parameters), then write the Python Code. When you edit a saved tool, the Test step runs the code with a JSON Test Input via Run Test.
How the code runs
Your code receives a params dict. Either define def main(params) and return
the result, or set a variable called result. params holds the node's
Input parameters, plus the previous node's output under input.
def main(params):
amount = float(params["amount"])
rate = float(params.get("rate", 1.0))
return {"converted": round(amount * rate, 2)}
The sandbox
Python runs in Pyodide (Python compiled to WebAssembly), in a separate worker thread:
- Time limit. A call during a run is stopped after 30 seconds, and Run Test in the tool editor stops after 15 seconds. The worker thread is terminated, so even an infinite loop can't hang the run.
- No leftover state. Globals are reset between calls, so one call can't leak state into the next.
- Screened source. Code is checked before it runs and rejected if it uses:
| Blocked | Why |
|---|---|
import subprocess | Process execution |
import ctypes | Native code access |
import socket | Raw sockets |
os.system(...) | Shell execution |
eval(...) / exec(...) | Dynamic code execution |
Network access
Raw sockets are blocked, but HTTP is available through urllib or
pyodide.http. Assume a custom tool can reach the network, and scan
accordingly: that's what the SSRF and SUPPLY_CHAIN_SANDBOX checks look for.
Sharing
Agents reference a tool by its id, so editing a tool changes it for every agent that uses it.
MCP servers
An MCP server exposes tools over HTTP. Add a server once, and your agents can call its tools.
Adding a server
- From chat: ask, for example
Add the GitHub MCP server. The proposal card asks for the Server URL and an auth token if the server needs one. It tests the connection and lists the tools it found. Click Add server. - By hand: open Workspace → Connections, click Add server, and enter a Name, the Server URL and an optional Auth token.
Only HTTP servers are supported. Auth tokens are stored encrypted and are never shown again. Addresses on private networks (localhost, private IP ranges, cloud metadata) are refused.
Each server in the list has:
- Test: checks that the connection works.
- Refresh tools: reloads the list of tools the server advertises. The canvas only offers tools from this list.
- A delete button.
Calling a tool
Add an MCP Tool node to the canvas. Pick the Server, then the Tool, and set any fixed Arguments (JSON). Arguments are merged with the previous node's output. If both set the same key, the value in the node wins. Each call has a 30-second limit, and it fails the node if the tool reports an error.
Cost summary
| Call | Credits |
|---|---|
| Built-in tool | 1 |
| MCP tool | 2 |
| Custom Python tool | 5 |
LLM tokens aren't billed in credits: they go to your own provider key. See Runs and Billing.