Try this: (untested)
spawn myapp
set prompt_re {stratos> $}
expect -re $prompt_re
send -- "list-tenants\r"
expect {
timeout {error "could not match available tenants"}
-re "list-tenants(.+)$prompt_re"
}
set available_tenants [string trim $expect_out(1,string)]