POST
Create a tool

Authorizations

Authorization
string
header
required

An API key from Dashboard → Developers → API keys.

Body

application/json

Schema for creating a tool

name
string
required

Tool name

Required string length: 1 - 255
type
string
required

Tool type (matching ToolType enum)

description
string | null
default:""

Tool description

Maximum string length: 1000
async
boolean
default:false

Whether tool executes asynchronously

messages
Messages · object[]

Messages to play

function
Function · object | null

Function definition

server
Server · object | null

Server configuration

server_credential_id
string | null

Local server credential reference

Maximum string length: 255
config
Config · object | null

Additional configuration

tool_type
string | null
function_schema
Function Schema · object | null

Response

Successful Response

success
boolean
default:true
message
string
default:success
data
ToolResponse · object | null

Tool response schema with UUID-based identification.

Inherits from UUIDResponseBase which maps uuid → id and excludes integer PK. Integer FK fields (organization_id, created_by) are resolved to UUIDs from loaded relationships.