ObjectivesThis study aimed to validate the content of the specialized competency frameworks for pharmacists working in hospital settings (hospital and clinical pharmacists) and pilot the frameworks for practice assessment.MethodsThis online cross-sectional study was carried out between March and October 2022 among a sample of 96 Lebanese pharmacists working in hospital settings. The frameworks were distributed to full-time hospital and clinical pharmacists, who filled them out according to their role in the hospital.ResultsOverall, the competencies were distributed over five domains for hospital pharmacists (fundamental skills, safe and rational use of medicines, patient-centered care, professional skills, and preparedness for emergencies), while for clinical pharmacists, competencies were distributed over seven domains (quality improvement, clinical knowledge and skills, soft skills, ability to conduct clinical research, ability to provide effective education, use information technology to make decisions and reduce errors, and emergency preparedness). Moreover, Cronbach alpha values were appropriate, indicating sufficient to high internal consistency. Pharmacists were highly confident in most competencies, with some exceptions related to research in emergency settings (data evaluation, research, and reporting).ConclusionsThis study could validate competency frameworks for clinical and hospital pharmacists, with the competencies and their respective behaviors showing an adequate construct analysis. It also identified the domains that require further development, i.e., soft skills and research in emergency settings. Both these domains are timely and needed to overcome the current practice challenges in Lebanon.Supplementary InformationThe online version contains supplementary material available at 10.1186/s40545-023-00592-7.