Here it is:
if ( get_post_type $id ) == 'tools-in-2019' {
Basically what your doing in this line makes no sense at all – you try to compare if conditions with some string… And you try to call a function, but you’re ignoring all PHP syntax.
It should be like this:
if ( get_post_type( $id ) == 'tools-in-2019' ) {