diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ba19298f22d748c4f3132d499f3893ded92a68f4..c25f065a2f8938021b67eb76efd040d4f42a5ec8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -109,6 +109,12 @@ losoto_reset:
   script:
     - cwl-runner --no-container steps/LoSoTo.Reset.cwl test_jobs/losoto_reset.json
 
+losoto_structure:
+  stage: test_steps
+  allow_failure: true
+  script:
+    - cwl-runner --no-container steps/LoSoTo.Structure.cwl test_jobs/losoto_structure.json
+
 losoto_smooth:
   stage: test_steps
   allow_failure: true
diff --git a/steps/LoSoTo.Structure.cwl b/steps/LoSoTo.Structure.cwl
new file mode 100644
index 0000000000000000000000000000000000000000..cdf29c2f61d88dfad58c78ed5c5ada0993ccb121
--- /dev/null
+++ b/steps/LoSoTo.Structure.cwl
@@ -0,0 +1,62 @@
+#!/usr/bin/env cwl-runner
+
+class: CommandLineTool
+cwlVersion: v1.0
+id: losoto_structure
+
+$namespaces:
+  lofar: https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
+doc: |
+  Find the structure function from phase solutions of core stations.
+  WEIGHT: compliant
+
+
+requirements:
+  InlineJavascriptRequirement:
+    expressionLib:
+      - { $include: utils.js}
+  InitialWorkDirRequirement:
+    listing:
+      - entryname: 'parset.config'
+        entry: $(get_losoto_config('STRUCTURE').join('\n'))
+
+      - entryname: $(inputs.input_h5parm.basename)
+        entry: $(inputs.input_h5parm)
+        writable: true
+
+baseCommand: "losoto"
+
+arguments:
+  - $(inputs.input_h5parm.basename)
+  - parset.config
+
+hints:
+  DockerRequirement:
+    dockerPull: lofareosc/lofar-pipeline-ci:latest
+
+inputs:
+  - id: input_h5parm
+    type: File
+    format: lofar:#H5Parm
+  - id: soltab
+    type: string
+    doc: "Solution table"
+  - id: doUnwrap
+    type: boolean?
+  - id: refAnt
+    type: string?
+    doc: Reference antenna, by default the first.
+  - id: plotName
+    type: string?
+    doc: Plot file name, by default no plot.
+  - id: ndiv
+    type: int?
+
+outputs:
+  - id: output_h5parm
+    type: File
+    format: lofar:#H5Parm
+    outputBinding:
+      glob: $(inputs.input_h5parm.basename)
+$schema:
+  - https://git.astron.nl/eosc/ontologies/raw/master/schema/lofar.owl
diff --git a/test_jobs/losoto_structure.json b/test_jobs/losoto_structure.json
new file mode 100644
index 0000000000000000000000000000000000000000..6f4f9bc6456e05248f43cc12434c261da2a3f3fb
--- /dev/null
+++ b/test_jobs/losoto_structure.json
@@ -0,0 +1,4 @@
+{
+  "input_h5parm": {"class": "File", "path": "/data/example.h5", "format": "lofar:#H5Parm"},
+  "soltab":  "sol000/phase000",
+}