Skip to main content
PATCH
Update tool
Every endpoint on this page requires either a Clerk-issued JWT (Authorization: Bearer <token>) or an organization API key (x-api-key: pk_…). Anonymous calls return 401 Unauthorized. See Authentication for the full setup.
Changes to a tool’s ajvPropertiesSchema or description are picked up on the next conversation turn — already-open sessions are not affected mid-conversation.

Code examples

Sample response

Authorizations

x-api-key
string
header
required

Organization API key. Obtain from the dashboard. Format: pk_live_…

Path Parameters

id
string<uuid>
required

Body

application/json

All fields optional — only provided fields are updated.

name
string
description
string
apiTool
object
functionTool
object
ajvPropertiesSchema
object
preExecutionMessage
string

Response

Updated tool.

id
string<uuid>
name
string
Example:

"GET_ACCOUNT_BALANCE"

description
string
type
enum<string>
Available options:
API_TOOL,
FUNCTION_TOOL
ajvPropertiesSchema
object
orgId
string
createdAt
string<date-time>
updatedAt
string<date-time>