Gecko: A Simulation Environment with Stateful Feedback for Refining Agent Tool Calls

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Zeyu, Li, Guohao, Xing, Zhenchang, Apostolopoulos, Alexandros, Lee, Yu Lin, Zheng, Liang
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917286872350720
author Zhang, Zeyu
Li, Guohao
Xing, Zhenchang
Apostolopoulos, Alexandros
Lee, Yu Lin
Zheng, Liang
author_facet Zhang, Zeyu
Li, Guohao
Xing, Zhenchang
Apostolopoulos, Alexandros
Lee, Yu Lin
Zheng, Liang
contents The ability to use tools is fundamental for large language model (LLM) agents. Given a task, existing systems use LLMs to plan and generate tool calls, which are executed by real-world tools to complete the task. However, tool calls are prone to errors because they are derived merely from LLM intrinsic capabilities. What is more, while it is useful to let LLMs iteratively refine the tool-call sequence using execution results from real tools, this process can be expensive and lead to unsafe results. To improve LLM tool calls and address issues caused by using real tools for refinement, we introduce Gecko, a comprehensive environment that simulates tool responses using a combination of rules and LLMs. Specifically, Gecko checks the validity of tool calls including input arguments and tool names, synthesizes reasonable responses that adhere to the output schema, and assesses whether all task objectives have been achieved. These three types of feedback provided by Gecko allow LLMs to refine their tool calls, forming a simple yet effective test-time scaling method named GATS. On BFCLv3 and $τ^2$-bench, GATS consistently improves the tool calling performance of various LLMs including GPT-4o, GPT-5, and Gemini-3.0-pro. We further discuss working mechanisms of our method and share future possibilities.
format Preprint
id arxiv_https___arxiv_org_abs_2602_19218
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Gecko: A Simulation Environment with Stateful Feedback for Refining Agent Tool Calls
Zhang, Zeyu
Li, Guohao
Xing, Zhenchang
Apostolopoulos, Alexandros
Lee, Yu Lin
Zheng, Liang
Software Engineering
Multiagent Systems
The ability to use tools is fundamental for large language model (LLM) agents. Given a task, existing systems use LLMs to plan and generate tool calls, which are executed by real-world tools to complete the task. However, tool calls are prone to errors because they are derived merely from LLM intrinsic capabilities. What is more, while it is useful to let LLMs iteratively refine the tool-call sequence using execution results from real tools, this process can be expensive and lead to unsafe results. To improve LLM tool calls and address issues caused by using real tools for refinement, we introduce Gecko, a comprehensive environment that simulates tool responses using a combination of rules and LLMs. Specifically, Gecko checks the validity of tool calls including input arguments and tool names, synthesizes reasonable responses that adhere to the output schema, and assesses whether all task objectives have been achieved. These three types of feedback provided by Gecko allow LLMs to refine their tool calls, forming a simple yet effective test-time scaling method named GATS. On BFCLv3 and $τ^2$-bench, GATS consistently improves the tool calling performance of various LLMs including GPT-4o, GPT-5, and Gemini-3.0-pro. We further discuss working mechanisms of our method and share future possibilities.
title Gecko: A Simulation Environment with Stateful Feedback for Refining Agent Tool Calls
topic Software Engineering
Multiagent Systems
url https://arxiv.org/abs/2602.19218