---
title: List the main ways tool-using agents fail in production and the mitigation for each.
url: https://gurkanozkan.ai/learn/questions/applied-llm-agt-06/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-agt-06.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-agt-06.json
robots: noindex
---

# List the main ways tool-using agents fail in production and the mitigation for each.

Applied LLM · Technical · Medium

## Answer

*Model answer, written in a candidate's voice*

### In short

- Loops/stalls: step/time/token limits, repetition detection, progress checks
- Wrong tool/bad arguments: typed schemas, validation, examples, tool retrieval
- Claimed success without effect: verify state; ground final answers in tool outputs
- Cost/latency blow-ups: budgets, cheaper sub-models, caching, early stop
- Long-horizon drift: plan-then-execute, checkpoints, intermediate verification
- Injection/irreversible actions: untrusted outputs, confirmations, idempotency/dry-run/rollback

### In full

The main failure modes are control failures, not just model failures: agents can loop or stall, call the wrong tool with malformed arguments, report success without changing anything, blow budgets, drift over long horizons, and act on untrusted or irreversible inputs. I mitigate loops with step/time/token limits, repetition detection, and explicit progress checks; wrong tools and bad arguments with typed schemas, argument validation, few-shot examples, and retrieval of only relevant tools. I prevent false success by verifying state after actions and grounding the final answer in actual tool outputs rather than the model's narrative. For cost and latency I set budgets, route easy subtasks to cheaper models, cache repeated calls, and stop early when marginal value is low. Over long horizons I plan before executing, checkpoint progress, and verify intermediate results before continuing. Finally, I treat tool outputs as untrusted data, separate instructions from observations, and require confirmations, idempotency keys, dry-runs, or rollback for irreversible actions.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Loops → step limits, repetition detection, progress checks
- Wrong tool / bad arguments → schemas, validation, examples, tool retrieval
- Claimed success without effect → verify state; ground final answers in tool outputs
- Cost/latency blow-ups → budgets, cheaper sub-models, caching
- Compounding errors over long horizons → plan-then-execute, checkpoints, verification
- Injection via tool outputs and irreversible actions → treat outputs as untrusted; confirmations and idempotency

## Common mistakes

- Only describing the happy path
- relying on the system prompt alone to stop dangerous actions

## Topic guides

- [Agents and tool use](https://gurkanozkan.ai/learn/topics/agents.md)
- [Reliability engineering for ML and LLM systems](https://gurkanozkan.ai/learn/topics/systems-reliability.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
