When using the tree format, limit the depth to this many levels. Value 0 means that no subgroups are shown. If the limit is reached, a prop groupcount is added and it states the number of direct children.
MediaWiki:Apihelp-query+messagegroups-param-depth
From Adaptive Population based Simplex