Looking at the current PN composition, many ships including smaller craft carry AShM. There are larger units with ASW capability but no smaller units with such capability. The planned CSTC 1500 Ton Offshore Patrol Ship does not appear to have ASW weapons (rockets, light torpedoes). That means inshore (armed) ASW is conducted by ASW helicopter (Sea Kings, Harbin Z-9s) and/or MPA (P-3 Orions, possibly F-27, and in future possibly also ATR-72), if at all. As for MCM capability, there are just 3 minehunters (Dutch/Belgian/French trii-partite MH) and they are by now 35 years old and in need of at least modernization.
Military defence of Gwadar (or Karachi for that matter) should really start with land-based cover i.e. PAF naval strike capability, coastal missile battery (
C-602, the export version of the YJ-62) and some air defence capability (layered LY-80, Spada Aspide 2000, Manpads, AAA). In addition, monitoring and C4I systems, possibly coupled to shore dual purpose guns, ASW and anti-diver weapons e.g. ATLAS Security for Coastal Areas (
https://www.atlas-elektronik.com/what-we-do/maritime-security-systems/)
Complementing this, three types of ships might be usefull:
Inshore MW(minelaying)/MCM(sweeping/hunting)/Patrol, with cannon and some light ASW/anti-diver armament e.g. rockets (ASW cued from shore or ASW helicopter).
Anti-ship units (FAC-M), with AShM and good AA self-defence (AAA and/or SAM) as well as reasonable anti-surface firepower (20-30mm cannon + ATGW like weapon, or heavier 35mm-76mm gun)
Anti-piracy / Fishery protection / Customs/ Coast Guard vessel, with helideck, 35-76mm cannon, interceptor boat(s) and very good range, endurance and seakeeping.
Pakistan appears to have or to be working on the latter two types ships, respectively Navy and MSA ships. There appears no effort on the first type. Unclear what the status is regarding shore/shore-based equipment and facilities.