Performance of the AGILE mission: application to the study of AGNs