Runnig scidb queries in library function


I have a library function in SciDb which has some parameters. I am wondering if I could run some queries inside function to change those parameters value, like filtering different array and changing value according to the returned value.
Is there any way to perform query on some array inside function of plugin?