Create tool
Creates a new tool in the workspace.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The tool to create
- Function Tool
- JSON Schema Tool
- HTTP Tool
- MCP Tool
- Code Execution Tool
A custom function tool that allows the model to call predefined functions with structured parameters.
Entity storage path.
With workspace-level API keys, use the format project/folder/subfolder/.... The first element identifies the project, followed by nested folders (auto-created as needed). Example: Default/agents.
With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: agents. For backward compatibility, a leading project name is ignored when it matches the scoped project.
"Default"
Unique key of the tool as it will be displayed in the UI
1 - 64^[A-Za-z]([A-Za-z0-9]*([_-][A-Za-z0-9]+)*)?$A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the description field as accurate as possible to give enough context to the model to make the right decision.
function The name of the tool as it will be displayed in the UI. This is optional and if not provided, the key will be used.
The status of the tool. Live is the latest version of the tool. Draft is a version that is not yet published. Pending is a version that is pending approval. Published is a version that was live and has been replaced by a new version.
live, draft, pending, published Response
Successfully created the tool.
- Function Tool
- JSON Schema Tool
- HTTP Tool
- MCP Tool
- Code Execution Tool
A custom function tool that allows the model to call predefined functions with structured parameters.
Entity storage path.
With workspace-level API keys, use the format project/folder/subfolder/.... The first element identifies the project, followed by nested folders (auto-created as needed). Example: Default/agents.
With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: agents. For backward compatibility, a leading project name is ignored when it matches the scoped project.
"Default"
Unique key of the tool as it will be displayed in the UI
1 - 64^[A-Za-z]([A-Za-z0-9]*([_-][A-Za-z0-9]+)*)?$A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the description field as accurate as possible to give enough context to the model to make the right decision.
function The name of the tool as it will be displayed in the UI. This is optional and if not provided, the key will be used.
The id of the user that created the tool
The id of the user that last updated the tool
The status of the tool. Live is the latest version of the tool. Draft is a version that is not yet published. Pending is a version that is pending approval. Published is a version that was live and has been replaced by a new version.
live, draft, pending, published