> ## Documentation Index
> Fetch the complete documentation index at: https://docs.decimal.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Debugging

> Fix runs that failed, and automations that acted on the wrong cases.

Start from the run. Open the automation, find the run under **Runs**, and click it to see each tool call and the agent's summary. See [Run history](https://docs.decimal.app/automations/run-history.md).

## Diagnose a run

1. **Read the summary.** The agent's last one or two sentences say what it did, or why it did nothing.
2. **Find the first failed step.** The tool call that errored shows what the agent passed in and what came back.
3. **Check the inputs.** A wrong channel, team, or tag name usually comes from the instructions.
4. **Fix and test.** Change the instructions or tools, then [test](https://docs.decimal.app/automations/test-and-run.md) on the same ticket.

## Errors

| Error | What happened | What to do |
| - | - | - |
| A tool's error, like a missing Slack channel or a Linear permission | An action the agent took failed, or the last thing it tried failed | Check the step that failed. Fix the name or permission, or reconnect the integration |
| "None of this automation's tools are available…" | Every tool's integration is disconnected | Reconnect the integration or change the tools |
| "Stopped after 25 steps without finishing." | The job took more steps than a run allows | Narrow the instructions, or split the job into two automations |
| "The response was too long and was cut off." | The agent's output was too long | Ask for a shorter result, or narrow what it reads |
| "Skipped because the automation is off." | The automation was switched off before a queued or delayed run started | Switch it on if you meant to keep it running |
| "Skipped." followed by a billing message | Your workspace is out of credits or reached its spend cap, so the run didn't start | Add credits or raise the cap under **Settings → Billing**. Skipped runs don't use credits |

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.

Then [test it](https://docs.decimal.app/automations/test-and-run.md) on the same ticket again.

## 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](https://docs.decimal.app/api-reference/mcp.md), ask "Which automations failed this week, and why?"


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.