Skip to main content
POST
Add a tool to a tool server

Authorizations

Authorization
string
header
required

Use JWT token for authentication

Path Parameters

toolServerId
string
required

The unique identifier of the tool server

Body

application/json
tool
object
required

Tool definition to add

Response

Tool added successfully

function
object
required
type
enum<string>

Tool type (always 'function')

Available options:
function
endpoint
string

API endpoint for the tool

method
enum<string>

HTTP method

Available options:
GET,
POST,
PUT,
DELETE,
PATCH
queryParametersKeys
string[]

Query parameter keys

pathParametersKeys
string[]

Path parameter keys

bodyPropertyKey
string

Body property key for request body

customHeaders
object[]

Custom headers for the tool

isFormDataBody
boolean

Whether the body is form data

bodyMode
enum<string>

Body mode

Available options:
simple,
advanced
bodyJsonTemplate
string

JSON body template for advanced mode

responsePostProcessingEnabled
boolean

Whether response post-processing is enabled

responsePostProcessingTemplate
string

JS expression template for response post-processing