Tools
Create a new tool
Unique identifier for the tool
cfd531e0-82fc-11e9-bc42-526af7764f64
Name of the tool
date_time_tool
Description of the tool
A tool used for date and time operations
Color associated with the tool
#FF5733
Source URL for the tool's icon
https://example.com/icons/date.png
JSON schema associated with the tool
Functionality description or code associated with the tool
Date and time when the tool was created
2024-08-24T14:15:22Z
Date and time when the tool was last updated
2024-08-24T14:15:22Z
Tool created successfully
Invalid request body
Validation error
Internal server error
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
Successful operation
Internal server error
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
Tool ID
Successful operation
Invalid ID provided
Tool not found
Internal server error
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
Tool ID
Unique identifier for the tool
cfd531e0-82fc-11e9-bc42-526af7764f64
Name of the tool
date_time_tool
Description of the tool
A tool used for date and time operations
Color associated with the tool
#FF5733
Source URL for the tool's icon
https://example.com/icons/date.png
JSON schema associated with the tool
Functionality description or code associated with the tool
Date and time when the tool was created
2024-08-24T14:15:22Z
Date and time when the tool was last updated
2024-08-24T14:15:22Z
Tool updated successfully
Invalid ID or request body provided
Tool not found
Internal server error
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