An agonist activates a receptor, just like serotonin would. It may or may not activate it as much as serotonin and when its less, that's a partial agonist. An antagonist blocks the receptor from being activated, there can be different kinda of antagonists such as competitive or non competitive. Competitive antagonists compete for the same binding site as serotonin and with enough serotonin it could be displaced and activated. Non competitive cannot be displaced by serotonin.
It acts as an antagonist at 5ht7 but I don't know whether its competitive or not or what the role of 5ht7 antagonism is in terms of the pharmacological effect