v1
latestOpenAPI 3.0.32026-07-267015229.9 KBTools
Update Tool
Update one or more fields on a tool. Only fields present in the body are changed; omitted fields keep their stored value. System tools cannot be updated.
Secrets and the ******** placeholder. Get Tool returns secret fields scrubbed to ********. If you do a read-modify-write and PATCH that exact value back, the request is rejected - re-encrypting the placeholder would silently corrupt the stored secret. To keep the existing secret, omit the field from the auth object on PATCH.
Sending delivery: null resets delivery to the default { app_message: true }.
patch/v2/tools/{tool_id}
Request body
Example request
{
"name": "get_current_weather",
"delivery": {
"api": {
"url": "https://api.example.com/v1/weather/{city}",
"headers": {
"X-Service": "weather-bot"
},
"auth": {
"name": "X-API-Key",
"token_url": "https://auth.example.com/oauth/token"
},
"query_params": {
"units": "metric"
},
"content_type": "application/json"
}
}
}Response
Tool updated
Example response
{
"tool_id": "tabc123def456",
"owner_id": 3675,
"name": "get_weather",
"description": "Get the current weather for a city",
"parameters": {
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "City name"
}
},
"required": [
"city"
]
},
"delivery": {
"api": {
"url": "https://api.example.com/v1/weather/{city}",
"headers": {
"X-Service": "weather-bot"
},
"auth": {
"name": "X-API-Key",
"token_url": "https://auth.example.com/oauth/token"
},
"query_params": {
"units": "metric"
},
"content_type": "application/json"
}
},
"trigger_type": "in_call",
"origin": "llm",
"on_call": "generate_filler",
"on_resolve": "generate_response",
"static_filler": "Sure, let me grab that for you.",
"created_at": "2026-05-15T10:30:00",
"updated_at": "2026-05-15T10:30:00"
}