Diagnose a run
- Read the summary. The agent’s last one or two sentences say what it did, or why it did nothing.
- Find the first failed step. The tool call that errored shows what the agent passed in and what came back.
- Check the inputs. A wrong channel, team, or tag name usually comes from the instructions.
- Fix and test. Change the instructions or tools, then test on the same ticket.
Errors
A run only fails when something breaks. If an earlier action failed but the agent retried it and succeeded, the run succeeds.
When it did the wrong thing
A run that succeeded but acted wrongly is an instructions problem. Open the run and read the summary and the tool calls:- It acted when it shouldn’t have: add the condition up front, like “Only act if…”, and say what to do otherwise.
- It didn’t act when it should have: the summary says why. Usually the instructions were narrower than you meant, or it couldn’t find something it needed.
- It wrote the wrong thing: say what the message should include and how it should start.
- It said a tool was missing: add that tool, or reword the instructions so they don’t need it.
Tips
- Check integrations first. Many failures are a disconnected integration or a missing permission, not the instructions.
- Compare a good run with a bad one. The difference in what the agent read usually explains the difference in what it did.
- Ask about failures from your AI tools. With the Decimal MCP server, ask “Which automations failed this week, and why?”