TL;DR
SynthTools is a scalable framework designed to automatically generate, simulate, and audit synthetic API ecosystems for developing LLM agents. By replacing real-world APIs with reliable synthetic replicas across 100+ domains, it frees agent training from rate limits, authentication barriers, and brittle interfaces.
What Problem Does This Paper Address?
Building capable, tool-using AI agents requires large amounts of interactive practice across complex, multi-step tasks. However, relying on real-world APIs presents a major bottleneck:
- Limited scale and diversity: Existing benchmarks cover only a handful of domains (e.g., ACEbench covers 8; $\tau$-bench covers just 2).
- Practical obstacles: Real APIs impose rate limits, require paid access keys, and frequently change or deprecate endpoints, breaking reproducibility and pipeline stability.
- Naive generation pitfalls: Prompting LLMs directly to generate tools often yields redundant, disconnected functions incapable of supporting multi-step composition.
Methods
SynthTools tackles these challenges with a three-pillar pipeline:
-
Hierarchical Tool Generation: Rather than generating tools in a single step, the framework decomposes fields top-down:
$$\text{Field} \rightarrow \text{Sub-domain} \rightarrow \text{Task Family} \rightarrow \text{Tool}$$
Each tool is specified with a parameter schema, usage instructions, downstream affordances, and explicit failure modes. -
Multi-Stage Deduplication: Exact string matching is paired with an embedding-based semantic similarity graph (adapted from SemDeDup). Redundant tools within connected components are pruned using a cosine similarity threshold ($\tau = 0.85$).
- Two-Stage Tool Simulation: An LLM simulates live API behavior in two isolated steps:
- Parameter Validation: Mimics an API gateway by verifying types, required parameters, and cross-field constraints, returning standard HTTP error codes on failure.
- Response Generation: If valid, the simulator performs data generation or logical deduction over simulated metadata.
- Tool Audit via LLM Judge: Each tool is stress-tested against four execution modes (schema failure, constraint violation, execution/state conflict, and valid execution). An LLM judge evaluates simulator responses and discards tools failing more than one test.
+-----------------------------------------------------------+
| Hierarchical Generation |
| Field --> Sub-domain --> Task --> Tool |
+-----------------------------+-----------------------------+
|
v
+-----------------------------------------------------------+
| Semantic Deduplication |
| Embedding graph clustering (tau = 0.85) |
+-----------------------------+-----------------------------+
|
v
+-----------------------------------------------------------+
| Simulation & Quality Audit |
| [Validation -> Generation] ==> [LLM Judge Stress-Test] |
+-----------------------------------------------------------+
Datasets
- SynthTools Corpus (New): Spans 100 distinct fields (such as healthcare, financial trading, e-commerce, and logistics). The authors generated 50 tools per field across all 100 domains, and scaled up to 1,000 tools within a single field (e-commerce).
- ACEBench: Used as an external deterministic ground truth to validate simulator fidelity across 20 programmatic sandbox tools.
Key Insights and Ideas
- Hierarchical decomposition prevents tool bloat: Structuring tool generation around workflows and tasks ensures tools have natural upstream dependencies and downstream consumers, enabling multi-step tool plans.
- Redundancy is localized, not global: Cross-field duplication was found to be virtually non-existent; nearly all overlap happens between neighboring tasks within the same sub-domain.
- Two-stage simulation mirrors real infrastructure: Decoupling gateway parameter validation from backend state execution significantly improves the consistency and realism of synthetic API errors.
Key Results
- High Simulation Accuracy: The LLM simulator matched ground-truth execution in 94% of cases (151/161 calls) when benchmarked against ACEBench sandbox tools, with 14 of 20 tools achieving 100% agreement. On manual verification of SynthTools, it achieved 93.6% accuracy across 200 responses.
- Judge Precision: Across 300 manually audited stress tests, the LLM judge achieved 99% accuracy and a 0% false positive rate, meaning it caught every erroneous simulator behavior without incorrectly rejecting valid executions.
- Effective Quality Filtering: Semantic deduplication removed $\approx 9\%$ of generated tools, and the audit pipeline pruned another $\approx 11\%$, leaving a clean, highly composable toolset where 89% of accepted tools made $\le 1$ error across stress runs.
Limitations and Future Work
- Downstream Agent Evaluation: While the authors demonstrate how to construct complex, multi-turn tasks with accompanying metadata, downstream fine-tuning and benchmark performance of agents trained on SynthTools were not reported in this paper.
- Minor Simulator Divergence: Mismatches with ground-truth APIs occasionally arose from arbitrary implementation differences (e.g., checking authentication before versus after parameter validation).
- Reliance on LLM Heuristics: Synthetic state tracking relies on prompting and simulated metadata rather than a persistent, deterministic database backend.
Summary updated