In the course of defining text templates or rulesets, common functionality may be discovered that should be encapsulated on the various metatypes. MDWorkbench allows TGL or MQL scripts (or even Java scripts) to be added to the metatypes, which can then be called from rulesets or text templates. These scripts can also be shared across projects and teams.