Tools
Create a new tool
Authorizations
Body
idstring · uuidOptionalExample:
Unique identifier for the tool
cfd531e0-82fc-11e9-bc42-526af7764f64
namestringOptionalExample:
Name of the tool
date_time_tool
descriptionstringOptionalExample:
Description of the tool
A tool used for date and time operations
colorstringOptionalExample:
Color associated with the tool
#FF5733
iconSrcstring | nullableOptionalExample:
Source URL for the tool's icon
https://example.com/icons/date.png
schemastring | nullableOptional
JSON schema associated with the tool
funcstring | nullableOptional
Functionality description or code associated with the tool
createdDatestring · date-timeOptionalExample:
Date and time when the tool was created
2024-08-24T14:15:22Z
updatedDatestring · date-timeOptionalExample:
Date and time when the tool was last updated
2024-08-24T14:15:22Z
Responses
200
Tool created successfully
application/json
400
Invalid request body
422
Validation error
500
Internal server error
post
POST /tools HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 295
{
"id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
"name": "date_time_tool",
"description": "A tool used for date and time operations",
"color": "#FF5733",
"iconSrc": "https://example.com/icons/date.png",
"schema": "text",
"func": "text",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
{
"id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
"name": "date_time_tool",
"description": "A tool used for date and time operations",
"color": "#FF5733",
"iconSrc": "https://example.com/icons/date.png",
"schema": "text",
"func": "text",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
Retrieve a list of all tools
Authorizations
Responses
200
Successful operation
application/json
500
Internal server error
get
GET /tools HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
[
{
"id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
"name": "date_time_tool",
"description": "A tool used for date and time operations",
"color": "#FF5733",
"iconSrc": "https://example.com/icons/date.png",
"schema": "text",
"func": "text",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
]
Retrieve a specific tool by ID
Authorizations
Path parameters
idstringRequired
Tool ID
Responses
200
Successful operation
application/json
400
Invalid ID provided
404
Tool not found
500
Internal server error
get
GET /tools/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Accept: */*
{
"id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
"name": "date_time_tool",
"description": "A tool used for date and time operations",
"color": "#FF5733",
"iconSrc": "https://example.com/icons/date.png",
"schema": "text",
"func": "text",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
Update a specific tool by ID
Authorizations
Path parameters
idstringRequired
Tool ID
Body
idstring · uuidOptionalExample:
Unique identifier for the tool
cfd531e0-82fc-11e9-bc42-526af7764f64
namestringOptionalExample:
Name of the tool
date_time_tool
descriptionstringOptionalExample:
Description of the tool
A tool used for date and time operations
colorstringOptionalExample:
Color associated with the tool
#FF5733
iconSrcstring | nullableOptionalExample:
Source URL for the tool's icon
https://example.com/icons/date.png
schemastring | nullableOptional
JSON schema associated with the tool
funcstring | nullableOptional
Functionality description or code associated with the tool
createdDatestring · date-timeOptionalExample:
Date and time when the tool was created
2024-08-24T14:15:22Z
updatedDatestring · date-timeOptionalExample:
Date and time when the tool was last updated
2024-08-24T14:15:22Z
Responses
200
Tool updated successfully
application/json
400
Invalid ID or request body provided
404
Tool not found
500
Internal server error
put
PUT /tools/{id} HTTP/1.1
Host:
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 295
{
"id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
"name": "date_time_tool",
"description": "A tool used for date and time operations",
"color": "#FF5733",
"iconSrc": "https://example.com/icons/date.png",
"schema": "text",
"func": "text",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
{
"id": "cfd531e0-82fc-11e9-bc42-526af7764f64",
"name": "date_time_tool",
"description": "A tool used for date and time operations",
"color": "#FF5733",
"iconSrc": "https://example.com/icons/date.png",
"schema": "text",
"func": "text",
"createdDate": "2024-08-24T14:15:22Z",
"updatedDate": "2024-08-24T14:15:22Z"
}
Last updated