PATCH
/
v1
/
tools
/
{tool_id}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tool_id
string
required

Body

application/json
description
string | null

The description of the tool.

name
string | null

The name of the function.

tags
string[] | null

Metadata tags.

module
string | null

The source code of the function.

source_code
string | null

The source code of the function.

source_type
string | null

The type of the source code.

json_schema
object | null

The JSON schema of the function (auto-generated from source_code if not provided)

Response

200 - application/json

Representation of a tool, which is a function that can be called by the agent.

Parameters: id (str): The unique identifier of the tool. name (str): The name of the function. tags (List[str]): Metadata tags. source_code (str): The source code of the function. json_schema (Dict): The JSON schema of the function.

source_code
string
required

The source code of the function.

id
string

The human-friendly ID of the Tool

description
string | null

The description of the tool.

source_type
string | null

The type of the source code.

module
string | null

The module of the function.

organization_id
string | null

The unique identifier of the organization associated with the tool.

name
string | null

The name of the function.

tags
string[]

Metadata tags.

json_schema
object | null

The JSON schema of the function.

created_by_id
string | null

The id of the user that made this Tool.

last_updated_by_id
string | null

The id of the user that made this Tool.