Skip to content

Create Tool

POST /tools

422 on a builtin slug collision, and on a code_exec config carrying code/script/source.

FieldTypeNotes
slugstringrequired—
kindhttp | remote_protocol | builtin | code_exec | web_search | web_fetch | delegate | schedulerequired—
descriptionstringrequired—
scopeworkspace | organization | platform | nulloptional—
display_namestring | nulloptionalmax length 200
input_schemaobjectoptional—
configobjectoptional—
secrets_requiredstring[]optional—
concurrencyread | write | exclusiveoptionalDefault "read".
effectread | writeoptionalDefault "write".
criticalbooleanoptionalDefault false.
client_ownedbooleanoptionalDefault false.
response_max_charsintegeroptionalDefault 100000. min 1
timeout_sintegeroptionalDefault 120. min 1 max 3600
is_activebooleanoptionalDefault true.
StatusDescriptionBody
201Successful ResponseToolView
422Validation ErrorHTTPValidationError

The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.

Terminal window
curl -X POST https://your-deployment.example.com/tools \
-H "Authorization: Bearer $COBRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"slug": "string",
"kind": "http",
"description": "string"
}'
FieldTypeNotes
idstring (uuid)required—
scopeworkspace | organization | platformrequired—
organization_idstring (uuid) | nullrequired, nullable—
workspace_idstring (uuid) | nullrequired, nullable—
slugstringrequired—
kindhttp | remote_protocol | builtin | code_exec | web_search | web_fetch | delegate | schedulerequired—
display_namestring | nullrequired, nullable—
descriptionstringrequired—
input_schemaobjectrequired—
configobjectrequired—
secrets_requiredstring[]required—
concurrencyread | write | exclusiverequired—
effectread | writerequired—
criticalbooleanrequired—
client_ownedbooleanrequired—
response_max_charsintegerrequired—
timeout_sintegerrequired—
is_activebooleanrequired—
created_atstring (date-time)required—
updated_atstring (date-time)required—