Davinci-Tool: Scaling Agentic Tool-Use Supervision with Verifiable Executable Environments
Organizations: Tongji University · Shanghai Innovation Institute · University of Science and Technology of China · Southeast University
Abstract
Reliable agentic tool use requires training data that pair diverse multi-step workflows with executable evidence that the requested outcomes were achieved. Scaling either trajectory coverage or verification alone is insufficient as new environments introduce distinct states, rules, and dependencies that must also be reflected in the success criteria. To address this challenge, we introduce Davinci-Tool, a 30B tool-use model, and Davinci-ToolData, an execution-grounded dataset designed to scale environment coverage and outcome verification together. Davinci-ToolData preserves restorable states, execution traces, outcomes, and verifiers as a unified substrate for supervision. Two complementary pipelines populate this substrate: Execution-Grounded Task Synthesis (EGTS) derives verified demonstrations from independently authored systems, and Executable Environment Synthesis (EES) synthesizes auditable environments, state-grounded tasks, and executable verifiers across single and coordinated domains. These pipelines yield 30,395 verified trajectories spanning 2,260 invoked tool names. We first train on these demonstrations with supervised fine-tuning, then reuse EES states and verifiers to compare alternative actions and construct outcome-grounded preferences for Direct Preference Optimization. Davinci-Tool improves Qwen3-Coder-30B-A3B-Instruct from 52.4 to 88.2 on -bench, from 30.4 to 62.8 on BFCL v4 multi-turn, and from 16.9 to 56.2 on MCP-Atlas, outperforming Qwen3-Coder-480B-A35B-Instruct on all three benchmarks with only 1/16 of its total parameters. Code is available at https://github.com/MassLab-SII/Davinci-Tool.
Figures & tables
| Source | Traj. | Tokens | Calls | Tools |
|---|---|---|---|---|
| EGTS | 13,824 | 10,063.9 | 6.04 | 350 |
| EES-Single | 8,026 | 10,372.7 | 5.87 | 1,610 |
| EES-Cross | 8,545 | 20,444.7 | 7.01 | 1,683 |
| Full SFT corpus | 30,395 | 13,063.8 | 6.26 | 2,260 |
| Model | Training | -bench | BFCL v4 multi-turn | MCP-Atlas | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Retail | Telecom | Avg. | Base | Long-Context | Miss-Func | Miss-Param | Avg. | Avg. | ||
| Reference models | ||||||||||
| Qwen3-Coder-480B-A35B-Instruct | — | 77.5 | 39.5 | 58.5 | 55.5 | 54.5 | 32.0 | 32.0 | 43.5 | 28.1 |
| Kimi-K2-Instruct | — | 70.6 | 65.8 | 68.2 | 42.0 | 38.5 | 23.0 | 30.0 | 33.4 | 59.6 |
| MiniMax-M2.1 | — | 81.6 | 87.0 | 84.3 | 76.5 | 69.0 | 71.0 | 69.0 | 71.4 | 59.6 |
| GLM-4.7 | — | 79.8 | 98.2 | 89.0 | 69.5 | 67.0 | 66.0 | 59.0 | 65.4 | 55.1 |
| SFT data | Benchmarks | ||||
|---|---|---|---|---|---|
| EGTS | EES-Single | EES-Cross | -bench | BFCL v4 | MCP-Atlas |
| 78.9 | 57.4 | 28.1 | |||
| 82.0 | 54.5 | 29.2 | |||
| 83.4 | 46.6 | 47.2 | |||
| 82.9 | 55.6 | 50.6 | |||
| 79.4 | 57.6 | 31.5 | |||
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Environment family | Representative interactions | Representative adapted sources |
|---|---|---|
| Personal and business services | Contacts, messages, reminders, calendars, banking, travel, health, and other structured service operations | ToolSandbox ( Lu et al., 2025 ) , API-Bank ( Li et al., 2023 ) |
| API discovery and orchestration | API search, schema inspection, argument grounding, selection, and multi-API composition | StableToolBench ( Guo et al., 2024 ) |
| Developer and data workspaces | Filesystem operations, repositories, relational data, and browser-backed developer workflows | MCPMark ( Wu et al., 2026b ) |
| Terminal and professional production | Shell and text processing, system operations, reports, office files, PDFs, and data deliverables | Terminal-Bench ( Merrill et al., 2026 ) |
| Web interaction and commerce | Page navigation, form interaction, product search, constraint matching, and shopping workflows | MiniWoB ( Shi et al., 2017 ) , WebShop ( Yao et al., 2022 ) |
| Scientific simulation | Procedural experiments, hypothesis testing, embodied discovery, and stateful scientific interaction | ScienceWorld ( Wang et al., 2022 ) , DiscoveryWorld ( Jansen et al., 2024 ) |
| Code | Application category | ||
|---|---|---|---|
| HC | Healthcare & Clinical | 30 | 115 |
| IT | IT Infrastructure & Software Engineering | 20 | 80 |
| SOC | Social & Communication | 14 | 56 |
| ECOM | E-commerce, Retail & Marketplace | 11 | 47 |
| ENT | Enterprise, HR & Business Ops | 12 | 47 |
| PHW | Personal Health & Wellness | 13 | 47 |
| Metric | EES-Single | EES-Cross |
|---|---|---|
| Domain transitions (%) | 0.00 | 14.50 |
| Cross-domain entity reuse (%) | 0.00 | 5.23 |
| Trajectories with cross-domain transfer (%) | 0.00 | 6.39 |
| Cross-domain read write (%) | 0.00 | 0.98 |
| Tool calls (matched) | 100.0 | 100.0 |
| Interaction length (relative) | 100.0 | 99.1 |
| Domain | Selected operations | Declared requirements |
|---|---|---|
| Inventory | get_product_by_id ; update_product_stock | Non-negative prices; predefined product categories. |
| Promotions | get_product_by_sku ; get_applicable_promotions ; evaluate_customer_eligibility | Active time window, product–promotion link, and customer eligibility determine applicability. |
| Orders | get_product_by_id ; add_product_to_cart | Stock must cover the added quantity; each cart belongs to one user; repeated products use an aggregated quantity. |
| Step | Operation | Relevant observation or update |
|---|---|---|
| 1 | mobile_get_user_by_name | Resolves Maya Chen to usr-001 ; notification preference is push. |
| 2 | personal_get_note_by_id | Note content: compare service quotes and ask BioScope about January slots. |
| 3 | mobile_get_reminder_by_id | rem-001 belongs to usr-001 , with the existing message and time. |
| 4 | mobile_update_reminder_message | Sets “Call BioScope about January cryo-EM slots”; tool reports success. |
| 5 | mobile_update_reminder_time | Sets 2025-01-17 at 10:00, UTC 05:00; tool reports success. |
| 6 | mobile_get_user_notification_preference | Queries usr-001 ; result is push. |
| Source | Trajectories | Requests | Inventories | Declared tools | Invoked tools |
|---|---|---|---|---|---|
| EGTS | 13,283 | 117 | 387 | 350 | |
| EES-Single | 7,550 | 234 | 4,042 | 1,610 | |
| EES-Cross | 8,319 | 276 | 4,316 | 1,683 | |
| Full SFT corpus | 28,985 | 436 |
| Tokens | Tool calls | Assistant turns | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Source | Mean | Min. | Max. | Mean | Min. | Max. | Mean | Min. | Max. |
| EGTS | 10,063.9 | 377 | 768,427 | 6.04 | 0 | 60 | 9.80 | 1 | 45 |
| EES-Single | 10,372.7 | 2,030 | 369,175 | 5.87 | 0 | 76 | 10.42 | 1 | 33 |
| EES-Cross | 20,444.7 | 1,746 | 1,259,991 | 7.01 | 0 | 99 | 7.57 | 1 | 34 |
| Full SFT corpus | 13,063.8 | 377 | 1,259,991 | 6.26 | 0 | 99 | 9.34 | 1 | 45 |
| Source | BFCL v4 | -bench | MCP-Atlas |
|---|---|---|---|
| EGTS | 0.591 | 0.665 | 0.680 |
| EES-Single | 0.547 | 0.695 | 0.567 |
| EES-Cross | 0.575 | 0.670 | 0.589 |
| Benchmark | Matched | F S | S F | S S | F F |
|---|---|---|---|---|---|
| Retail | 114 | 23 | 10 | 68 | 13 |
| Telecom | 113 | 74 | 4 | 35 | 0 |
| BFCL v4 | 800 | 304 | 58 | 181 | 257 |
| MCP-Atlas | 89 | 40 | 6 | 9 | 34 |
| Setting | SFT (shared settings) | DPO |
|---|---|---|
| Optimizer | Fused AdamW | Fused AdamW |
| Learning rate | ||
| Epochs | 4 | 1 |
| Learning-rate schedule | Cosine | Cosine |
| Warmup fraction | 0 | 0.03 |
| Weight decay | 0.01 | 0.01 |
LLM Tool Use
Large language model tool use studies how models select, call, and coordinate external tools to extend their reasoning and take actions.
See all 295 papers