Аннотация:In this paper, Jordan–Kronecker invariants are calculated for all nilpotent 6- and 7-dimensionalLie algebras. We consider the Poisson bracket family, depending on the lambda parameter on a Liecoalgebra, i.e., on the linear space dual to a Lie algebra. For some space g proposed in the paper, twoskew-symmetric matrices are defined for all points x on this linear space. To understand the behaviourof the matrix pencil (A − λB)(x), we consider Jordan–Kronecker invariants for this pencil and how theychange with x (the latter is done for 6-dimensional Lie algebras).