HackerPapers

arXiv:2506.01056cs.AI

MCP-Zero: Active Tool Discovery for Autonomous LLM Agents

Xiang Fei, Xiawu Zheng, Hao Feng

HN submission. Found in a submission link or body. Submitters do not count as commenters in the main ranking; a submission is not an endorsement.

Abstract

True intelligence requires active capability acquisition, yet current LLM agents inject pre-defined tool schemas into prompts, reducing models to passive selectors and falling short of robust general-purpose agency. We introduce MCP-Zero, an active agent framework that restores tool discovery autonomy to LLMs themselves. Instead of overwhelming models with all available tools, MCP-Zero enables agents to actively identify capability gaps, and request specific tools on-demand, transforming them from large-scale retrievers into genuine autonomous agents. The framework operates through three core mechanisms: (1) Active Tool Request, where models autonomously generate structured requests specifying their exact tool requirements; (2) Hierarchical Semantic Routing, a two-stage algorithm that matches requests to relevant servers and tools through improved semantic alignment; (3) Iterative Capability Extension, enabling agents to progressively build cross-domain toolchains while maintaining minimal context footprint. We construct MCP-tools, a comprehensive dataset of 308 MCP servers and 2,797 tools from the official Model-Context-Protocol repository. Experiments demonstrate that MCP-Zero preserves agent autonomy while achieving substantial efficiency gains: (i) accurate tool selection from nearly 3k candidates across 248.1k tokens; (ii) 98\% reduction in token consumption on APIBank while maintaining high accuracy; and (iii) consistent multi-turn performance that scales with tool ecosystem growth. This work establishes active tool discovery as a fundamental design pattern for scalable autonomous agent systems.

arXiv comments
Journal reference
DOI
Subjects
cs.AIArtificial Intelligence cs.SESoftware Engineering

On Hacker News

No comments linking this paper were found in the collected sources. Found in 1 HN submission from Aug 2025 to Aug 2025. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments0 threads

No comments linking this paper were found in the collected sources. Open submission discussions.

Submitted to Hacker News

  • Ask HN: Is manually discovering and configuring MCP servers the only way?

    After reading this paper on autonomous tool invocation (https://arxiv.org/pdf/2506.01056), I'm wondering if others share my frustration with the current MCP (Model Context Protocol) workflow. My typical process for adding a new capability to my agent: 1) Search for MCP servers that might have the functionality I need 2) Read through documentation to verify it actually does what I want 3) Install the MCP server and manually add it to my agent's tool list This feels incredibly time-consuming and…

Connected through shared HN threads, not inferred similarity or a recommendation.