Parliament House officials have installed alarms and fake hawks to stop "incredibly aggressive" magpies from attacking politicians and staff.

The nation's senators turned their attention to the problem on Monday while grilling Department of Parliamentary Services staff.

Labor's Kimberley Kitching said several people had raised "the incidents of magpie attacks" in the building's gardens.

"And what happened to the fake hawk?" she asked.