Create a new web tool.
Documentation Index
Fetch the complete documentation index at: https://docs.tryhamsa.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '
Body
The type of the web tool.
FUNCTION, MCP "FUNCTION"
The name of the web tool.
1 - 250"Weather API Tool"
Server configuration settings for the web tool.
A description of what the web tool does.
1 - 1000"A tool that fetches current weather information for a given location."
Whether the tool should run asynchronously. Required when type is FUNCTION, not allowed when type is MCP.
true
Array of message configurations for the web tool. Each message type must be unique.
[
{
"type": "system",
"content": "You are a helpful weather assistant."
}
]Parameter schema definition for the web tool. Not allowed when type is MCP. This field is a recursive OpenAPI-style shape with 'type', 'properties', 'required', 'items', ...etc. Please refer to the OpenAPI specification for more information.
{
"type": "object",
"properties": {
"test": {
"type": "number",
"description": "Hello world from Hamsa AI!"
}
},
"required": ["test"]
}