422 on a builtin slug collision, and on a code_exec config carrying
code/script/source.
Field Type Notes slugstring required — kindhttp | remote_protocol | builtin | code_exec | web_search | web_fetch | delegate | schedulerequired — descriptionstring required — scopeworkspace | organization | platform | nulloptional — display_namestring | null optional max length 200 input_schemaobject optional — configobject optional — secrets_requiredstring[] optional — concurrencyread | write | exclusiveoptional Default "read". effectread | writeoptional Default "write". criticalboolean optional Default false. client_ownedboolean optional Default false. response_max_charsinteger optional Default 100000. min 1 timeout_sinteger optional Default 120. min 1 max 3600 is_activeboolean optional Default true.
Status Description Body 201Successful Response ToolView422Validation Error HTTPValidationError
Only the success paths are declared
Any operation may also answer any status in the error catalogue , and
every failure body is the platform envelope — including the 422 this document types
as HTTPValidationError.
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.
curl -X POST https://your-deployment.example.com/tools \
-H " Authorization: Bearer $COBRE_TOKEN " \
-H " Content-Type: application/json " \
Field Type Notes idstring (uuid) required — scopeworkspace | organization | platformrequired — organization_idstring (uuid) | null required , nullable— workspace_idstring (uuid) | null required , nullable— slugstring required — kindhttp | remote_protocol | builtin | code_exec | web_search | web_fetch | delegate | schedulerequired — display_namestring | null required , nullable— descriptionstring required — input_schemaobject required — configobject required — secrets_requiredstring[] required — concurrencyread | write | exclusiverequired — effectread | writerequired — criticalboolean required — client_ownedboolean required — response_max_charsinteger required — timeout_sinteger required — is_activeboolean required — created_atstring (date-time) required — updated_atstring (date-time) required —