MCP Gateway
ApiMcp servers

Update tool selection

Update tool selection for a server by enabling or disabling specific tools.

PATCH
/api/v1/servers/{server_id}/tool-selection

Path Parameters

server_id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://loading/api/v1/servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/tool-selection" \  -H "Content-Type: application/json" \  -d '{    "tool_ids": [      "497f6eca-6276-4993-bfeb-53cbbbba6f08"    ],    "enabled": true  }'
{
  "updated": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}