sn_mcp_unregister_external_server
Unregisters an external MCP server from the ServiceNow MCP client registry, optionally removing its connection alias, HTTP connection, and credential; fails if AI agent tools still reference it.
Instructions
Remove an external MCP server from the instance's MCP client registry (sn_mcp_server) and, unless keep_connection is true, the connection alias, HTTP connection and credential created for it. Refused while AI agent tools still use the server. REQUIRES WRITE_ENABLED=true.
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": {
"server": "<server>"
},
"name": "sn_mcp_unregister_external_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | sn_mcp_server name or sys_id | |
| keep_connection | No | Keep the connection alias, connection and credential (default false) |