- Via Agent
- Via UI
- Via SDK
The fastest way to create a tool is by talking to our agent. Describe what you want to accomplish and the agent will build the tool for you.Simple example:superglue will:The agent can build multi-step tools with:
- Identify which integration to use (or create one if needed)
- Find the relevant API endpoint from the documentation
- Configure the API call with appropriate parameters
- Test it and make it available for execution
- Sequential API calls
- Data transformations between steps
- Loops for batch processing
- Error handling and retries
Try it now
Start building tools with our agent
Tool anatomy
Every tool consists of:Steps
Sequential API calls that fetch or modify data. Each step can reference data from previous steps.
Execution Mode
Steps run with self-healing enabled or disabled. Self-healing can auto-repair failures during execution.
Transformations
JavaScript functions that shape the step inputs and the final output. Ensures tool results adhere to response schemas.
Variables
Access data from previous steps, credentials, and input payload using
<<variable>> syntax.Step configuration
Each step in a tool represents a single API call with the following configuration:Basic structure
Variable syntax
Use<<variable>> to access dynamic values:
Access credentials:
JavaScript expressions must use the arrow function syntax
(sourceData) => .... Direct property access like <<userId>> works for simple variables, but not for nested properties or transformations.Data transformations
Data selector
Extract an array to iterate over:Final transform
Shape the final output of the entire tool:Special integrations
PostgreSQL
Query databases using the postgres:// URL scheme:$1, $2, etc. placeholders to prevent SQL injection. Provide values in the params array, which can include static values or <<>> expressions.
FTP/SFTP
Access files on FTP servers:list- List directory contentsget- Download file (auto-parses CSV/JSON/XML)put- Upload filedelete- Delete filerename- Rename/move filemkdir- Create directoryrmdir- Remove directoryexists- Check if file existsstat- Get file metadata
Error handling
Automatic retries
Failed steps are automatically retried with exponential backoff
Self-healing
When enabled, superglue attempts to fix configuration errors automatically
Validation
Response data is validated against expected schemas
Graceful degradation
Handle missing data with optional chaining and defaults in transformations
Keep steps focused - Each step should make a single API call. Use transformations to prepare data, not additional steps.Use descriptive IDs - Step IDs are used to reference data in later steps. Use clear names like
getCustomers, updateOrder, sendEmail.Avoid unnecessary loops - Don’t loop over thousands of items if the API supports batch operations. Check the documentation first.Test with real data - Test each step incrementally with production-like data before deploying.