new tool: get layer primary key