disconnect_mcp_server_connection
Ends a user's active session on a Portkey-managed MCP server without revoking future access; use access update instead to remove permissions permanently.
Instructions
Disconnect one user's active session from a Portkey-managed MCP server. This immediately ends that connection but does not revoke future access; use update_mcp_server_user_access when access itself should be removed. Provide user_id with service keys (user keys derive it), and workspace_id with organisation admin keys. Inspect list_mcp_server_connections first when the target is uncertain.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "disconnect_mcp_server_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | MCP server ID or slug containing the active connection | |
| user_id | No | User UUID to disconnect; required with service keys and derived from user keys when omitted | |
| workspace_id | No | Workspace ID or slug; required with an organisation admin API key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |