Skip to main content
POST
Create a tool

Authorizations

X-API-Key
string
header
required

[Production] API key for production authentication

Body

application/json

The tool to create.

parameters
object[]
required

The parameters of the tool. Each parameter key must be unique within the tool.

projectId
string
required

The unique identifier for the project to create the tool in.

Example:

"507f1f77bcf86cd799439011"

type
string
required

The technical identifier of the tool type.

Example:

"action"

builtinSlug
string

The slug of the built-in tool to create the tool from. It's required when source is builtin.

Example:

"my-tool-slug"

description
string

A description of the tool.

Example:

"A tool that performs an action"

extension
string

The name of the extension that provides the tool. It's required when source is extension.

Example:

"my-extension"

name
string

The name of the tool. The name must be 1 to 200 bytes long and can't contain the characters \, /, :, *, ?, ", <, >, | or ¥. Leading and trailing spaces are trimmed. The name must be unique in the project, ignoring case.

Example:

"My Tool"

source
string

The origin of the tool. The allowed values are extension, managed and builtin. The default is extension.

Example:

"extension"

Response

Returns the created tool.

a2a
object

The remote A2A agent that this tool calls. It's present only when source is a2a.

builtinSlug
string

The slug of the built-in tool that this tool is created from. It's present only for built-in tools.

Example:

"my-tool-slug"

createdAt
integer

The time when the tool was created, as a Unix timestamp in seconds.

Example:

1694518620

createdBy
string

The unique identifier for the user who created the tool.

Example:

"507f1f77bcf86cd799439011"

description
string

A description of the tool.

Example:

"A tool that performs an action"

extension
string

The name of the extension that provides the tool.

Example:

"my-extension"

id
string

The unique identifier for the tool.

Example:

"507f1f77bcf86cd799439011"

lastChangedAt
integer

The time when the tool was last changed, as a Unix timestamp in seconds.

Example:

1694518620

lastChangedBy
string

The unique identifier for the user who last changed the tool.

Example:

"507f1f77bcf86cd799439011"

mcp
object

The MCP server and the remote tool that this tool is imported from, including the input schema of the remote tool. It's present only when source is mcp.

name
string

The name of the tool.

Example:

"My Tool"

organisationId
string

The unique identifier for the organization that the tool belongs to.

Example:

"507f1f77bcf86cd799439011"

parameters
object[]

The parameters of the tool. An MCP tool has none, because its input schema is in mcp.inputSchema.

projectId
string

The unique identifier for the project that the tool belongs to.

Example:

"507f1f77bcf86cd799439011"

referenceId
string

The UUID that agents and skills use to reference the tool. The API generates it when the tool is created.

Example:

"550e8400-e29b-41d4-a716-446655440000"

source
string

The origin of the tool. The possible values are extension, managed, builtin, mcp and a2a.

Example:

"extension"

type
string

The technical identifier of the tool type.

Example:

"action"