Work project · incident triage
An incident-triage bot that can only read
At work I built an incident-triage bot on an in-house agent runner. It connects to 7 MCP servers, and every one of them reaches its data through credentials bound to strict read-only AWS IAM policies. This page describes the design in general terms. It leaves out the employer's systems, data and names.
Why on-call needs one
I have taken part in dozens of incidents since mid-2024 and been incident commander on a couple of major ones. The first minutes of most of them go the same way: several people open the same dashboards, logs and recent changes, and paste what they find into the incident thread. That work is useful, repetitive and easy to hand to an agent, as long as the agent can't make the incident worse.
The shape of the job
Context before anyone asks
When an incident opens, the bot checks the sources a responder would check first and posts a short summary of what it found into the incident's thread.
Questions in the thread
Responders ask follow-up questions in plain language, and the bot answers from the same read-only sources instead of someone switching tools to look it up.
One tool server per source
Each data source sits behind its own MCP server, so adding a source means adding a server and a policy, not widening an existing one.
Read-only by construction
Credentials, not tool flags
A tool described as read-only is a promise the model can be talked out of. An IAM policy that grants no write action is not: the cloud provider refuses the call whatever the model decides to send.
A prompt injection can't write
Incident data is full of text nobody on the team wrote: log lines, error messages, ticket bodies. If some of it manages to steer the model, the worst outcome is a wrong answer in the thread, not a changed system.
Least privilege per source
Each MCP server's policy is scoped to the read actions and resources that one source needs, so a server can't be used to reach data another server guards.
Tuned for signal over noise
During an incident attention is the scarcest thing in the room, and a bot that posts everything it can find gets muted. So the bot is iterated continuously against one question: did its posts help the people responding? It keeps its first post short and leaves detail to follow-up questions, and it says nothing rather than filling the thread with checks that came back normal. What it looks at and how it reports it are adjusted from what responders actually used in real incidents.
Built with
- Model Context Protocol
- AWS IAM
- LLM tool-use loops
- Agent runners
The same read-only-by-construction idea runs through the agents I run at home, where 3 of 7 MCP servers can't write by construction.