Skip to navigation

Create tool

Create a new tool definition.

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
configmap from strings to anyRequired
descriptionstringRequired1-500 characters
namestringRequired1-100 characters
parametersSchemamap from strings to anyRequired
toolTypeenumRequired

Response

Created tool
configmap from strings to any or null
createdAtstring
descriptionstring or null
idstring
isActiveboolean
namestring
organizationIdstring or null
toolTypestring
updatedAtstring
userIdstring or null
lastModifiedSourcestring or nullOptional
parametersSchemamap from strings to anyOptional
validationobjectOptional

Non-blocking findings from a successful write. warnings also carries SESSION_PREVIEW_URL when config.url or config.serverUrl is a session sandbox preview URL, which stops working when that sandbox container stops.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error