Tool-Genesis: A Task-Driven Tool Creation Benchmark for Self-Evolving Language Agent

Bowei Xia, Mengkang Hu, Shijian Wang, Jiarui Jin, Wenxiang Jiao, Yuan Lu, Kexin Li, Ping Luo · DOI

TL;DR

Tool-Genesis is a new diagnostic benchmark that shifts the focus from how LLMs use tools to how they create them from scratch. By requiring agents to generate both the interface (schema) and the executable logic from abstract requirements, it reveals a "utility bottleneck": even small errors in tool synthesis cascade into massive failures in downstream task performance.

What Problem Does This Paper Address?

The current "reason–call–execute" paradigm for AI agents assumes that tools—like APIs or functions—already exist with perfect documentation. In reality, a truly autonomous, self-evolving agent needs to be able to build its own tools when existing ones fall short.

Existing benchmarks are usually "spec-first," meaning they provide the model with the tool's definition. Furthermore, most evaluations are "black-box" outcomes; if an agent fails a task, it’s hard to tell if the fault lies in a poorly designed tool interface, buggy code logic, or just bad planning. Tool-Genesis addresses this by decoupling tool creation from tool utilization and providing a multi-layered diagnostic framework to pinpoint exactly where the "evolution" breaks down.

Methods

The authors formalize tool creation as a two-phase conditional generation problem:

  1. Tool Interface Prediction: Generating a structured schema (using the Model Context Protocol, or MCP) that defines what the tool does and what arguments it takes.
  2. Tool Materialization: Writing the actual executable code that implements that logic.

To evaluate these, they introduce a four-level metric suite:

  • L1 (Surface Compliance): Does the code run and return a valid tool registry?
  • L2 (Semantic Interface Fidelity): Does the generated schema actually match the intended functionality?
  • L3 (Functional Correctness): Does the tool pass a rigorous battery of unit tests (including edge cases)?
  • L4 (Downstream Task Utility): Can a separate "proxy agent" use this generated tool to solve a real-world problem?

They also compare two inference strategies: Direct (one-shot generation) and Code-Agent (an iterative ReAct-style loop where the model can see execution errors and repair its own code).

Datasets

The researchers introduced the Tool-Genesis Dataset, which is significantly more comprehensive than previous efforts:

  • Source: 86 compliant MCP servers (filtered down from over 5,800 candidates).
  • Scale: 508 unique tools spanning 24 domains (from financial services to browser automation).
  • Tasks: 2,150 realistic natural language tasks.
  • Verification: 9,441 unit tests, including "negative" tests to check for robust error handling.
  • Quality Control: The dataset underwent a rigorous manual inspection process with high inter-annotator agreement (Cohen’s $\kappa$ of 0.85).

Key Insights and Ideas

  • The Cascade Effect: The most striking finding is that minor flaws in the initial tool design (like a slightly off JSON schema) are amplified through the execution pipeline. A small L2 error often leads to a "precipitous drop" in L4 utility.
  • Feedback is Essential: Models perform significantly better when they can "think, act, and observe." The closed-loop repair mechanism in the "Code-Agent" strategy led to "step-changes" in performance, particularly for models like Gemini-3-Flash.
  • Compliance $\neq$ Correctness: Many models can generate code that looks like a valid tool (high L1/L2) but fails to actually perform the logic correctly (low L3). This highlights a "utility-conversion bottleneck" where models struggle to translate a good plan into working code.
  • Internalizing Capability: The authors show that Tool-Genesis isn't just for evaluation; it can be used for training. Finetuning a smaller model (Qwen3-8B) on Tool-Genesis trajectories significantly improved its one-shot tool creation abilities.

Key Results

  • SOTA Performance: Top-tier models like GPT-5.1 and Claude-3.5-Sonnet lead the pack, but even they show a significant "utility gap" compared to ground-truth tools.
  • The Power of Repair: For Gemini-3-Flash, moving from "Direct" to "Code-Agent" evaluation saw the Success Rate (SR) jump from 0.103 to 0.581.
  • Finetuning Gains: Finetuning Qwen3-8B improved its surface compliance from 0.686 to 0.826 and its server execution rate from 0.012 to 0.047 in a one-shot setting.
  • Oracle-Normalized Success: By comparing generated tools against "perfect" reference tools, the benchmark provides a clear "upper bound" for how well an agent could have performed, making the evaluation much more objective.

Limitations and Future Work

The authors acknowledge a few areas for growth:

  • Language Support: The current benchmark focuses on Python-based implementations within the MCP framework.
  • Requirement Complexity: While the tasks are realistic, real-world requirements are often even more underspecified or contradictory than the "abstract requirements" used here.
  • Self-Correction Limits: While iterative repair helps, models still get stuck in "loops of failure" if they lack the underlying reasoning to understand why a unit test is failing.

Future work will likely focus on steering models toward synthesizing more persistent, general-purpose tools that can be maintained over long periods, rather than just solving a single task.

Summary updated

BibTeX
@misc{xia2026tool,
  author = {Bowei Xia and Mengkang Hu and Shijian Wang and Jiarui Jin and Wenxiang Jiao and Yuan Lu and Kexin Li and Ping Luo},
  title = {{Tool-Genesis: A Task-Driven Tool Creation Benchmark for Self-Evolving Language Agent}},
  year = {2026},
  eprint = {2603.05578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.05578},
}
Figure