Batch Update Tool Approval
This method allows you to approve or unapprove a batch of tools from an MCP server.
You can either specify a list of tool IDs or apply the action to all tools of the MCP server.
The operation is atomic: either all specified tools are updated, or none are. If any tool cannot be unapproved because it is in use by an agent, the entire operation will fail.
mcp_server_id
Show optional properties
{
"is_approved": false
}
{
"is_approved": false,
"tool_ids": [
"string"
],
"all_tools": false
}
Whether to approve or unapprove the tools.
A list of tool IDs to approve or unapprove. Mutually exclusive with all_tools.
Whether to apply the approval to all tools of the MCP server. Mutually exclusive with tool_ids.
Successful Response
Invalid request body.
Invalid MCP server ID.
One or more tools cannot be unapproved because they are in use.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"is_approved":"boolean"}' https://{api_host}/api/v1/control/mcp-servers/{mcp_server_id}/tools/batch-approval