arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.22676

Robustness Analysis of Agentic AI to Inconsistent and Incomplete Tool Responses

Jiachen Xu, Torben Bach Pedersen, Zhongming Yao, Xiaoyu Zhang, Yushuai Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jiachen Xu

Department of Computer Science

Aalborg University

Aalborg, Denmark

jiachenxu@cs.aau.dk

Torben Bach Pedersen

Department of Computer Science

Aalborg University

Aalborg, Denmark

tbp@cs.aau.dk

Zhongming Yao

College of Computer Science and Technology

Zhejiang University

Hangzhou, China

yaozzzm@gmail.com

Xiaoyu Zhang

School of Information Science and Engineering

Northeastern University

Shenyang, China

2410400@stu.neu.edu.cn

Yushuai Li

Department of Computer Science

Aalborg University

Aalborg, Denmark

yusli@cs.aau.dk

Abstract—Tool-using agents increasingly rely on external tools to complete multi-step tasks, but tool returns can fail in different ways and require different recovery actions. Existing robustness studies often use uncertainty-based measures to detect when an agent becomes unreliable. These measures can reveal that something has gone wrong, but they do not directly identify the type of tool failure or the appropriate response. We address this limitation by analyzing tool failures at the moment a return enters the agent context. Our approach combines two complementary signals. The first compares the likelihood of the returned content under the tool schema and under the full trajectory prefix. The second measures the agent's probability distribution over its legal next actions. We evaluate the approach by injecting incomplete and inconsistent returns into a retail customer-service benchmark. The results show that likelihood-based signals clearly capture incomplete returns and some direct inconsistencies, while action-based signals reveal how strongly a failure changes the next decision. Some failures that are weak under likelihood signals can still redirect the agent toward state-changing actions. These findings show that tool failures can be recognized at the return boundary, but reliable diagnosis requires combining multiple signals.

Index Terms—language agents, tool use, robustness, noisy tool feedback, fault diagnosis, uncertainty quantification, predictive entropy

I. INTRODUCTION

A robust tool-using agent does not need to avoid every bad tool return. Instead, it should respond to each bad return in a suitable way. The right response depends on how the tool fails. Robustness therefore starts with a basic question. When a tool return arrives, can the agent identify what kind of return it has received? Tool-using language agents are brittle under realistic noise. The diagnostic reported for this brittleness is step-wise reasoning entropy [1], [2]: (i) on clean trajectories [3], entropy decreases as the agent converges on a solution, while (ii) on trajectories affected by tool noise [4], entropy increases from the middle of the episode onward. These results also show that agents with explicit reasoning can be less robust to tool noise. They may accept corrupted evidence and continue building a fluent reasoning chain from it. A rising entropy curve can therefore indicate that something has gone wrong, but it does not explain what failure has occurred.

Noise, however, can take different forms [1], [2]. A response is incomplete when some evidence is missing because the call fails or the returned payload is truncated. In this case, the problem is often visible from the return itself, such as a missing field or an error message. A response is inconsistent when it is well formed and internally coherent but conflicts with external information, such as the user's stated intent or an earlier tool return [5], [6]. Such a return may appear valid on its own, even though its content is incorrect in the current context. These two failures require different responses. Incompleteness often calls for a retry or graceful degradation, while inconsistency calls for checking the claim against an independent source.

Existing methods usually rely on uncertainty-based measures to identify unreliable generations. Predictive entropy for structured prediction [9] measures uncertainty over possible outputs, while semantic entropy [10] groups meaning-equivalent samples before measuring dispersion. These methods can identify unreliable generations from the model's own distribution. However, they mainly indicate whether uncertainty is present rather than which type of tool failure caused it. A single curve [7], [8] that summarizes a completed episode also cannot tell the agent which recovery action to take, especially when the curve remains flat. This limitation matters because different failures require different responses. Applying the wrong response can be as harmful as taking no action.

To address this problem, we examine tool returns at the moment they enter a ReAct-style loop [11]. Our goal is to identify the failure type before the agent continues reasoning. The key idea is that incomplete and inconsistent returns are abnormal with respect to different references. An incomplete return may be unlikely under the tool schema because it does not match the expected form of a valid return. In contrast, an inconsistent return may be fully schema-valid but unlikely given the preceding trajectory [12], including the user's intent and earlier tool returns. We therefore score each return from two views, once under the tool schema and once under the full interaction prefix. We also examine the agent's distribution over legal actions at the same boundary. In addition to entropy, we consider the peak probability and the tool group that receives the largest probability mass.

We evaluate these signals on the retail domain of τ2\tau^{2}-bench [13]. We construct incomplete and schema-valid inconsistent returns while keeping the preceding trajectory unchanged. For incomplete failures, we use error strings produced by the environment. For inconsistent failures, we modify one field while keeping the payload schema-valid. We further consider two forms of inconsistency. In one case, the correct value already appears explicitly in the prefix. In the other, the contradiction can only be identified through the domain policy.

The results show that the two views capture different aspects of failure. The likelihood comparison clearly responds to incomplete returns and to inconsistencies that directly conflict with values already present in the context. However, it does not reliably capture inconsistencies that require policy reasoning. The action distribution responds to all three conditions, but its change reflects how strongly the faulty return affects the next action rather than the failure type itself. In particular, some inconsistencies that are weak under the likelihood signal can still push the agent toward a state-changing tool call instead of another read operation. These results show that the failure signal is already present at the tool-return boundary, but no single quantity captures all of its aspects.

References (17)

  • AgentNoiseBench: Benchmarking robustness of tool-using LLM agents under noisy condition
  • Learning to act under noise: Enhancing agent robustness via noisy environments (opens arXiv in a new tab)
  • Compression of uncertain trajectories in road networks
  • TRACE: Real-time compression of streaming trajectories in road networks
  • Reducing tool hallucination via reliability alignment
  • ToolBeHonest: A multi-level hallucination diagnostic benchmark for tool-augmented large language models
  • Camel: Efficient compression of floating-point time series
  • TSec: An efficient and effective framework for time series classification
  • Uncertainty estimation in autoregressive structured prediction
  • Detecting hallucinations in large language models using semantic entropy
  • ReAct: Synergizing reasoning and acting in language models
  • Estimator: An effective and scalable framework for transportation mode classification over trajectories
  • $\tau^{2}$-Bench: Evaluating conversational agents in a dual-control environment
  • τ-bench: A benchmark for tool-agent-user interaction in real-world domains
  • The landscape of agentic reinforcement learning for LLMs: A survey
  • Qwen3 Technical Report
  • InjecAgent: Benchmarking indirect prompt injections in tool-integrated large language model agents