The temperature and the dc magnetic field dependence of the effective surface impedance Zs of epitaxial YBa2Cu3O7-x thin films on  tilt SrTiO3 bicrystals with tilt angles of 36.8° and 24° have been investigated at 87 GHz. The effects of the grain boundaries become increasingly important with decreasing characteristic voltage IcRn and increasing unit areal normal resistance RnA. The boundaries can consistently be described with a resistively shunted Josephson transmission line model taking into account the effect of finite film thickness. Thermal or magnetic loading of the junction leads to additional losses, whereas the effective microwave penetration depth exhibits a specific extremal behavior. From the magnetic response of Zs at 4.2 K, the junction lower critical fields as well as the values of IcRn and RnA can be deduced. The data agree well with dc transport measurements.