Massachusetts General Laws
Chapter 231a - Procedure for Declaratory Judgments
Section 7 - Costs

Section 7. In an action wherein a judgment or other consequential relief is sought, the costs shall not be affected by the making or refusal of any determination; but in an action for a determination only, under this chapter, costs shall be wholly in the discretion of the court.