mlsanityData to 14 Oct 2026

A Framework for Testing and Adapting REST APIs as LLM Tools

arXiv 2504.15546 ↗First posted 22 Apr 2025cs.SE cs.AIcited by 10

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

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  4. 2023A Survey of Large Language Modelscited by 2,576
  5. 2024Mixtral of Expertscited by 1,823
  6. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
  7. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,332
  8. 2020It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learnerscited by 669
  9. 2023ToolQA: A Dataset for LLM Question Answering with External Toolscited by 274
  10. 2024ToolACE: Winning the Points of LLM Function Callingcited by 216
  11. 2023ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Modelscited by 184
  12. 2024The Landscape of Emerging AI Agent Architectures for Reasoning, Planning, and Tool Calling: A Surveycited by 168
3 more
  1. 2024EASYTOOL: Enhancing LLM-based Agents with Concise Tool Instructioncited by 154
  2. 2023T-Eval: Evaluating the Tool Utilization Capability of Large Language Models Step by Stepcited by 93
  3. 2023Leveraging Large Language Models to Improve REST API Testingcited by 20

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 7.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Test Amplification for REST APIs via Single and Multi-Agent LLM Systems
  2. 2025Agentic LLMs for REST API Test Amplification: A Comparative Study Across Cloud Applications
  3. 2025Combining TSL and LLM to Automate REST API Testing: A Comparative Study
  4. 2026Tangent: An Empirical Study of Testing Practices for LLM-Based Agent Applications
  5. 2025AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL
  6. 2026Agent4Spec: An LLM-based Agentic System to Optimize API Specifications through Automated Validation and Market Analysis
  7. 2025Automated Creation and Enrichment Framework for Improved Invocation of Enterprise APIs as Tools
  8. 2024A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs