Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

PLAY2PROMPT: Zero-shot Tool Instruction Optimization for LLM Agents via Tool Play

About

Large language models (LLMs) are increasingly integrated with specialized external tools, yet many tasks demand zero-shot tool usage with minimal or noisy documentation. Existing solutions rely on manual rewriting or labeled data for validation, making them inapplicable in true zero-shot settings. To address these challenges, we propose PLAY2PROMPT, an automated framework that systematically "plays" with each tool to explore its input-output behaviors. Through this iterative trial-and-error process, PLAY2PROMPT refines tool documentation and generates usage examples without any labeled data. These examples not only guide LLM inference but also serve as validation to further enhance tool utilization. Extensive experiments on real-world tasks demonstrate that PLAY2PROMPT significantly improves zero-shot tool performance across both open and closed models, offering a scalable and effective solution for domain-specific tool integration.

Wei Fang, Yang Zhang, Kaizhi Qian, James Glass, Yada Zhu• 2025

Related benchmarks

TaskDatasetResultRank
Function CallingBFCL Individual Tools per Problem
Execution Accuracy79
30
Tool UseStableToolBench
I2 Category Success72.8
28
Function CallingBFCL Executable (test)
Success Rate (Simple, Python)100
12
Tool UseStableToolBench G1 Category
SL74.6
12
Documentation GenerationBFCL Opaque
Semantic Similarity70
12
Tool selectionChess Specialists: opening, midgame, endgame, late-endgame
Accuracy35.8
10
Tool UseBrowseComp Domain-specific (9) Search
Accuracy17.9
10
Tool UseBrowseComp Domains (Domain-specific (9) + Full Search)
Accuracy15.8
10
Tool selectionChess Skill: beginner, intermediate, advanced
Accuracy22.7
10
Tool UseStableToolBench G3 Instruction
SL Score66.3
6
Showing 10 of 16 rows

Other info

Code

Follow for update