ToolACE-MCP: Generalizing History-Aware Routing from MCP Tools to the Agent Web
Zhiyuan Yao, Zishan Xu, Yifu Guo, Zhiguang Han, Cheng Yang, Shuo Zhang, Weinan Zhang, Xingshan Zeng, Weiwen Liu
TL;DR
ToolACE-MCP introduces a history-aware router training framework to tackle the scalability and generality bottlenecks of tool-centric agent ecosystems. It builds a self-evolving candidate graph, synthesizes multi-turn trajectories via a multi-agent simulator, and trains a lightweight router that generalizes from tool routing to agent routing. The Light Routing Agent enables plug-and-play deployment, achieving strong results on MCP benchmarks and robust cross-domain generalization, including to multi-agent orchestration tasks. The work demonstrates significant improvements over embedding-based retrieval and ReAct baselines, and shows resilience to large candidate spaces and tool noise, establishing a practical foundation for universal orchestration in the Agent Web.
Abstract
With the rise of the Agent Web and Model Context Protocol (MCP), the agent ecosystem is evolving into an open collaborative network, exponentially increasing accessible tools. However, current architectures face severe scalability and generality bottlenecks. To address this, we propose ToolACE-MCP, a pipeline for training history-aware routers to empower precise navigation in large-scale ecosystems. By leveraging a dependency-rich candidate Graph to synthesize multi-turn trajectories, we effectively train routers with dynamic context understanding to create the plug-and-play Light Routing Agent. Experiments on the real-world benchmarks MCP-Universe and MCP-Mark demonstrate superior performance. Notably, ToolACE-MCP exhibits critical properties for the future Agent Web: it not only generalizes to multi-agent collaboration with minimal adaptation but also maintains exceptional robustness against noise and scales effectively to massive candidate spaces. These findings provide a strong empirical foundation for universal orchestration in open-ended ecosystems.
