You will need to know maximum rotation, the torque which the servo will need to drive, the speed at which the servo will need to drive and the input power, whether it be electric, pneumatic, hydraulic, etc.
Then you will need to consider the shape of the connector being used and determine based on the maximum torque and the piece being connected to the servo, the size required, or determine the shape based on the size.