Endpoint to create a new tool.
Retrieve your API Key from Dashboard API Keys Section.
Configuration for an inline Python tool. The "code" field should contain a self-contained executable Python function. Example value of "code" string could be: def add( a: float, b: float, ) -> float: return float(a + b)
Unique identifier for the tool
Reference to the tool already created in the Workflow System. If not provided, the tool config is assumed to be provided inline here.
Name for the tool
Human friendly description for the tool (not used by AI)
Category for the tool. E.g math, ehr, etc
Docstring or signature for the tool used by AI. If provided and there is a default signature already, it will override the default signature.
Schema for the arguments that the tool accepts. This should be a JSON schema dictionary. Information provided here will override any default arguments schema.
Static messages that an LLM node should emit while this tool is being invoked
Name of the runtime variable to store the result from this tool call
Type of the tool. Must be 'inline_python'
"inline_python"Python code to be executed by the tool. It should define a function with proper signature and descriptions for its parameters.
Successful Response
Response model for a single tool. Contains a ToolsModel object.
Single tool object