cs.AIMar 2, 2026

Graph-Based Self-Healing Tool Routing for Cost-Efficient LLM Agents

Authors: Neeraj Bholani

Abstract

Tool-using LLM agents face a reliability-cost tradeoff: routing every decision through the LLM improves correctness but incurs high latency and inference cost, while pre-coded workflow graphs reduce cost but become brittle under unanticipated compound tool failures. We present Self-Healing Router, a fault-tolerant orchestration architecture that treats most agent control-flow decisions as routing rather than reasoning. The system combines (i) parallel health monitors that assign priority scores to runtime conditions such as tool outages and risk signals, and (ii) a cost-weighted tool graph where Dijkstra's algorithm performs deterministic shortest-path routing. When a tool fails mid-execution, its edges are reweighted to infinity and the path is recomputed -- yielding automatic recovery without invoking the LLM. The LLM is reserved exclusively for cases where no feasible path exists, enabling goal demotion or escalation. Prior graph-based tool-use systems (ControlLLM, ToolNet, NaviAgent) focus on tool selection and planning; our contribution is runtime fault tolerance with deterministic recovery and binary observability -- every failure is either a logged reroute or an explicit escalation, never a silent skip. Across 19 scenarios spanning three graph topologies (linear pipeline, dependency DAG, parallel fan-out), Self-Healing Router matches ReAct's correctness while reducing control-plane LLM calls by 93% (9 vs 123 aggregate) and eliminating the silent-failure cases observed in a well-engineered static workflow baseline under compound failures.

Explore similar work

CardsList
  1. Self-Healing Agentic Orchestrators for Reliable Tool-Augmented Large Language Model Systems

    May 31, 2026Rahul Suresh Babu, Adarsh AgrawalLLM Agent OrchestrationLLM Agent Reliability

  2. When Tools Fail: Benchmarking Dynamic Replanning and Anomaly Recovery in LLM Agents

    Jun 4, 2026Dongsheng Zhu, Xuchen Ma, Yucheng Shen +5AI Agent ReliabilityAI Agent Benchmarks

  3. MeshHeal: Two-Timescale Self-Healing for Gray Failures in Decentralized LLM Agent Networks

    Sep 24, 2026Keru Chen, Sen Lin, Yingbin Liang +2Multi-Agent LLM SystemsMulti-Agent Systems