Skip to Content
Docs

Update a tool's names, actions, config or chat switch

POST
/api/update_tool

Update a tool by ID The tool type (name) never changes. actions are checked against the stored ones like /api/update_tool_actions: nothing is added and fixed values are the owner's. A connection-backed MCP server is moved only through /api/mcp_server/save.

Returns: {"success": true}, or 400 / 403 / 404 with a message.

Personal access token scope: tools:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
actions?array<>

Actions the tool can perform

config?

Configuration of the tool

customName?string

Custom name for the tool

description?string

Tool description

displayName?string

Display name for the tool

id*string

Tool ID

name?string

Name of the tool

status?boolean

Status of the tool

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/update_tool' \  -H 'Content-Type: application/json' \  -d '{  "id": "string"}'
Example Response200
Empty