TRACER: Trajectory-Aware Tool Retrieval for LLM Agents
Tanish Kher, Sarvesh DK, Abedelkadir Asi, Sparsha Chennarayapatna Sundaresh, Dezhi Hong
Abstract
Modern agents select tools from registries, but exposing entire registries incurs high token costs and can impair selection as they grow. We present TRACER, a retrieval front-end that indexes observed tool-call sequences in a trie and ranks continuations using a learned blend of empirical and contextual priors. On a mixed retail-and-telecom environment, TRACER improves GPT-5.4's tool-selection accuracy by 4.7 points while reducing input tokens per step by 80%, exposing just 5 of 128 tools. In autonomous full-turn execution, it matches GPT-5.4's full-registry task success with 61% fewer input tokens per step. Across six environments and four models, TRACER improves tool-selection accuracy over full-registry selection in 21 of 24 model-environment pairs, with average gains of 6 to 10 points; the three exceptions trail by at most 2.2. We analyze failures in both regimes to identify directions for future work.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI, cs.IR
- Comments
- 21 pages, 7 figures, 23 tables
Related papers
Before Retrieval Begins: Safety and Tool-Use Decisions in LLM Agents
Shared title terminologycs.CLAditya Nawal, Manit Baser, Mohan Gurusamy
Trajectory-Level Speculation with Semantic Verification for Tool-Using Agents
Shared title terminologycs.CLZilin Wang, Yinhong Liu, Chao Chen et al.
ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents
Shared title terminologycs.CLRui Sun, Junhua Huang, Luca Zancato et al.
Retrieval-Augmented Generation in the Agentic Era: Tradition, Present, and Prospect
Shared title terminologycs.CLChenming Tang, Haolin Li, Yiran Li et al.
Do Conversational Agents Need Explicit Memory? A Controlled Comparison with Raw-History Retrieval
Shared title terminologycs.CLYongjie Zhou, Shuai Wang, Bevan Koopman et al.
Write Once, Check Many: Reusable Ledgers for Post-Hoc Policy Compliance Auditing of Agent Trajectories
Shared title terminologycs.CLAshwin Nagarajan, Gursimran Panesar, Alicia Yang et al.