em->createQuery( "SELECT COUNT(c.id) FROM App\\Entity\\Comment c WHERE c.status = 'open'" )->getSingleScalarResult(); return new CallToolResult( content: [new TextContent( text: json_encode([ 'machines' => $this->machines->count([]), 'pieces' => $this->pieces->count([]), 'composants' => $this->composants->count([]), 'products' => $this->products->count([]), 'sites' => $this->sites->count([]), 'unresolvedComments' => $unresolvedComments, ], JSON_THROW_ON_ERROR) )], ); } }