They serve to write as doctors (7)
I believe the answer is:
waiters
'they serve' is the definition.
Although both the answer and 'serve' are nouns, they are not in the same form of the noun.
'write as doctors' is the wordplay.
'doctors' indicates anagramming the letters (I've seen 'doctor' mean this).
'write'+'as'='writeas'
'writeas' with letters rearranged gives 'WAITERS'.
'to' acts as a link.
Can you help me to learn more?
(Other definitions for waiters that I've seen before include "Garcons" , "Table servers" , "Wariest kind of attendants" , "Servers at tables" .)