A Framework for Testing and Adapting REST APIs as LLM Tools
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are increasingly used to build autonomous agents that perform complex tasks with external tools, often exposed through APIs in enterprise systems. Direct use of these APIs is difficult due to the complex input schema and verbose responses. Current benchmarks overlook these challenges, leaving a gap in assessing API readiness for agent-driven automation. We present a testing framework that systematically evaluates enterprise APIs when wrapped as Python tools for LLM-based agents. The framework generates data-aware test cases, translates them into natural language instructions, and evaluates whether agents can correctly invoke the tool, handle their inputs, and process its responses. We apply the framework to generate over 2400 test cases across different domains and develop a taxonomy of common errors, including input misinterpretation, output failures, and schema mismatches. We further classify errors to support debugging and tool refinement. Our framework provides a systematic approach to enabling enterprise APIs as reliable tools for agent-based applications.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 15 of its 30 references that are in the map. First posted on arXiv 22 Apr 2025.
Builds on
15 of 30 references.
References · 15
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023A Survey of Large Language Modelscited by 2,576
- 2024Mixtral of Expertscited by 1,823
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
- 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
- 2023ToolQA: A Dataset for LLM Question Answering with External Toolscited by 274
- 2024ToolACE: Winning the Points of LLM Function Callingcited by 216
- 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 184
- 2024The Landscape of Emerging AI Agent Architectures for Reasoning, Planning, and Tool Calling: A Surveycited by 168
Built on by
Citing papers per year: 2025: 3; 2026: 7.
10 papers.
- 2025Structured Uncertainty guided Clarification for LLM Agentscited by 41
- 2026Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluationcited by 13
- 2025Effective Red-Teaming of Policy-Adherent Agentscited by 10
- 2026Learning to Rewrite Tool Descriptions for Reliable LLM-Agent Tool Usecited by 4
- 2025LLM Agents Are the Antidote to Walled Gardenscited by 3
- 2026Beyond the Leaderboard: A Synthesis of Tool-Use, Planning, and Reasoning Failures in Large Language Model Agentscited by 3
- 2026LLM-Powered Workflow Optimization for Multidisciplinary Software Development: An Automotive Industry Case Studycited by 0
- 2026Making OpenAPI Documentation Agent-Ready: Detecting Documentation and REST Smells with a Multi-Agent LLM Systemcited by 0
- 2026The Rise of Verbal Reinforcement Learningcited by 0
- 2026A Decade in a Day: Synthesizing Agent-Native Interfaces from Human-Oriented Software Evolutioncited by 0
- 2026A Decade in a Day: Synthesizing Agent-Native Interfaces from Human-Oriented Software Evolution11 Oct 2026
- 2026The Rise of Verbal Reinforcement Learning1 Sep 2026
- 2026Beyond the Leaderboard: A Synthesis of Tool-Use, Planning, and Reasoning Failures in Large Language Model Agents7 Jul 2026
- 2026Making OpenAPI Documentation Agent-Ready: Detecting Documentation and REST Smells with a Multi-Agent LLM System14 May 2026
- 2026LLM-Powered Workflow Optimization for Multidisciplinary Software Development: An Automotive Industry Case Study22 Mar 2026
- 2026Learning to Rewrite Tool Descriptions for Reliable LLM-Agent Tool Use23 Feb 2026
- 2026Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation11 Feb 2026
- 2025Structured Uncertainty guided Clarification for LLM Agents11 Nov 2025
- 2025LLM Agents Are the Antidote to Walled Gardens30 Jun 2025
- 2025Effective Red-Teaming of Policy-Adherent Agents11 Jun 2025
Similar, not cited
Close in wording, no citation either way
- 2025Test Amplification for REST APIs via Single and Multi-Agent LLM Systems
- 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applications
- 2025Combining TSL and LLM to Automate REST API Testing: A Comparative Study
- 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications
- 2025AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL
- 2026Agent4Spec: An LLM-based Agentic System to Optimize API Specifications through Automated Validation and Market Analysis
- 2025Automated Creation and Enrichment Framework for Improved Invocation of Enterprise APIs as Tools
- 2024A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs