Return static JSON
The simplest tool. Returns fixed data so you can test your server right away. Steps: Start → Static Data → Return To make it work: nothing, run it as is. Then change the JSON in the Static Data step.Transform JSON input
Reads tool parameters and returns a new, reshaped JSON object. Steps: Start → Transform → Return Parameters:name (string, required), language (string, optional)
To make it work: nothing, run it with a test name. The Transform step shows how to mix text and variables: Hello {{params.name}}!.
Query a database
Connects with your secrets and runs a parameterized SQL query. Steps: Start → Database → Query → Return Parameters:id (number, required)
To make it work:
- In the Database step, choose your database type and pick the secrets for host, database name, user and password. Create them with Create a new secret if needed.
- In the Query step, click Load tables and adjust
SELECT * FROM users WHERE id = ? LIMIT 1to your table. - The binding
{{params.id}}fills the?. The Return step sends back the first row with{{nodes.query_1.output[0]}}.
Call a REST API
Sends a GET request and returns the JSON response. Steps: Start → HTTP Request → Return Parameters:id (number, required, 1–200)
To make it work: nothing, it uses a public demo API. Replace the URL with your own API and pick a Bearer token secret if it requires authentication.
API → transform → return
Calls an API, keeps only the fields you need and branches on the result. Steps: Start → HTTP Request → Condition → Transform (true / false) → Return (one per branch) Parameters:id (number, required, 1–200)
To make it work: nothing, run it with different ids. The Condition checks {{nodes.http_request_1.output.completed}}; completed items return status: "done", the others status: "open". Use it as a pattern for any tool that needs to answer differently depending on an API response.
Loop over a list
Fetches a list, calls an API for every item with For Each and returns the combined result. Tool:get_users_with_latest_post
Steps: Start → HTTP Request (get users) → For Each → each: HTTP Request (get latest post) → Transform. done: Return
Parameters: limit (number, optional, 1 to 10)
How it works:
- Get users calls
https://jsonplaceholder.typicode.com/users?_limit={{params.limit}}. When the AI leaveslimitempty, the query parameter is still sent, and the demo API returns all users. - For Each walks through
{{nodes.http_request_1.output}}, with Maximum items set to 10. - Inside the loop, Get latest post calls
posts?userId={{loop.item.id}}&_limit=1. It retries up to 2 times, so a short outage of the API does not fail the tool. - Transform builds one entry per user:
namefrom{{loop.item.name}}andlatestPostfrom{{nodes.http_request_2.output[0].title}}. - Return, on the done output, sends back
{{nodes.loop_1.output}}: the list of all entries.