In Jazz, diminished scales are used for adding tension to dominant chords. As with all scales, you must analyze the tones against the chord.
The diminished scale and chord are based on the scale starting with a whole step. In dominant/diminished harmony, we start on the leading tone, that is with a half step. The tones will yield a dominant 7th chord. There will also be certain tension tones.