disconnect_mcp_server_connection
Disconnect a user's active session from a Portkey-managed MCP server to immediately terminate the connection. Does not revoke future access.
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.
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 |