Creates a new tool or action for the application. Use this endpoint to define custom tools that agents can invoke during conversations.
Naming: The tool name must be unique per application.
Type assignment: The type is automatically determined by the doNotExecute flag — set to tool when true, action otherwise.
API Key with fullAccess scope(i.e. Rest API Key from the Dashboard).
Display name shown in the UI for this tool
"Get Weather"
Text displayed while the tool is executing
"Fetching weather data..."
Unique function name for the tool. Must start with a letter, underscore, or dollar sign, followed by alphanumeric characters, underscores, dollar signs, or hyphens.
^[a-zA-Z_$][a-zA-Z0-9_$-]*$"get_weather"
Description of what the tool does. Required when doNotExecute is false.
"Fetches current weather data for a given location"
When true, the tool will not be executed locally and parameters/description become optional
Tool parameter definitions. Required when doNotExecute is false, but can be an empty object. Must be empty or omitted when doNotExecute is true.
Tool created successfully
"myapp_myTool"
"my-app-id"
"myTool"
action, tool "action"
"My Tool"
"Running my tool..."
false