Function createRegisteredExternalToolHandler