Prerequisites
- A Better Stack account that can see the monitors, incidents, and telemetry sources you want agents to read.
- Permission in Better Stack to authorize a third-party app.
Setup
1
Start the connection
Open More → Workspace settings → Connections, select Better Stack, and click Connect. CloudThinker opens Better Stack’s authorization page.
2
Authorize CloudThinker
Sign in to the Better Stack account agents should use, then approve access. If your browser is signed in to a different Better Stack account, sign out of it first.
3
Return to CloudThinker
Better Stack sends you back to CloudThinker, which stores the tokens for you.Success state: the connection shows Connected. Run the prompt in Verify the connection in a new chat to see what the account can reach.
Connection details
There are no fields to fill in.
Agent requests go from CloudThinker to that server, which reads your Better Stack account. Nothing connects into your network, so there’s no firewall rule to add.
Required permissions
Agents see what the authorizing Better Stack account sees. CloudThinker can’t narrow that grant, so limit access by authorizing with an account that only reaches the teams you want agents to use.Agent capabilities
Better Stack keys every resource by ID, so agents look up a monitor, incident, or source by name first and confirm the match before changing anything. Acknowledging an incident silences its on-call paging, so approve it only when someone is actually handling the incident. To decide which changes ask first and which are refused outright, see Rules.
Every change an agent makes goes through your workspace’s Approvals first. On the default Auto · Rules + AI · Ask me mode, AI judgment can let a safe change run without asking — and an Allow Rule can too, once CloudThinker turns on Rule enforcement for your workspace. Choose Manual to approve every change yourself.
Better Stack’s MCP server can’t pause or resume a monitor. Set maintenance windows in the Better Stack dashboard.
Verify the connection
Ask CloudThinker in a new chat:Example prompts
api-gateway above, or ask the agent to list sources first.
Troubleshooting
The OAuth flow doesn't complete
The OAuth flow doesn't complete
Your browser is probably signed in to a different Better Stack account. Sign in to the right account in Better Stack, then click Connect again.
A monitor or incident returns 404 Not Found
A monitor or incident returns 404 Not Found
The resource belongs to a team the authorizing account can’t see, or it was deleted. Ask the agent to list monitors or incidents again to get current IDs.
A log query returns a syntax error
A log query returns a syntax error
Better Stack log queries use its own query language. The agent loads Better Stack’s query syntax and retries on its own. If it still fails, ask again in plain words and name the source, for example “count 5xx errors in api-gateway over the last hour”.
Requests fail with 429 Too Many Requests
Requests fail with 429 Too Many Requests
You hit Better Stack’s rate limit. Agents back off and retry. If it keeps happening, narrow the time window or the number of monitors in your question.
Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Revoke when unused: remove CloudThinker’s authorization in Better Stack if you stop using the connection, then delete the connection in CloudThinker.
- Switching accounts: disconnect, then connect again while signed in to the other Better Stack account.
Related
Approvals
How CloudThinker asks before an incident or dashboard change runs.
PagerDuty
Incident alerting and on-call schedules.