Skip to main content

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.

KindWhere you manage itCredits per call
Built-in toolsAlways available1
Custom Python toolsWorkspace → Tools, or ask in chat5
MCP server toolsWorkspace → Connections, or ask in chat2

Built-in tools​

Nine tools ship with the platform. They read their arguments from the previous node's output.

ToolWhat it does
HTTP RequestCalls an external API. Reads url, method, headers and body.
Web ScrapeFetches a page and returns its text, or its HTML with format: "html". JavaScript isn't rendered.
JSON ParseParses a JSON string into structured data
JSON StringifySerializes a value to a JSON string
Text SplitSplits text into an array by a delimiter (newline by default)
Text JoinJoins an array into one string (newline by default)
Send EmailSends an email. Needs to, subject and body.
Date & TimeDate and time operations: now, format, add, subtract
DelayWaits, then passes its input through unchanged

HTTP Request and Web Scrape give up after 60 seconds.

warning

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:
BlockedWhy
import subprocessProcess execution
import ctypesNative code access
import socketRaw 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​

CallCredits
Built-in tool1
MCP tool2
Custom Python tool5

LLM tokens aren't billed in credits: they go to your own provider key. See Runs and Billing.