paper-with-me

Papers

A Framework for Testing and Adapting REST APIs as LLM Tools

2025-04-22 · Jayachandu Bandlamudi, Ritwik Chaudhuri, Neelamadhav Gantayat, Kushal Mukherjee, Prerna Agarwal, Renuka Sindhgatta, Sameep Mehta

Large Language Models (LLMs) are enabling autonomous agents to perform complex workflows using external tools or functions, often provided via REST APIs in enterprise systems. However, directly utilizing these APIs as tools poses challenges due to their complex input schemas, elaborate responses, and often ambiguous documentation. Current benchmarks for tool testing do not adequately address these complexities, leading to a critical gap in evaluating API readiness for agent-driven automation. In this work, we present a novel testing framework aimed at evaluating and enhancing the readiness of REST APIs to function as tools for LLM-based agents. Our framework transforms apis as tools, generates comprehensive test cases for the APIs, translates tests cases into natural language instructions suitable for agents, enriches tool definitions and evaluates the agent's ability t correctly invoke the API and process its inputs and responses. To provide actionable insights, we analyze the outcomes of 750 test cases, presenting a detailed taxonomy of errors, including input misinterpretation, output handling inconsistencies, and schema mismatches. Additionally, we classify these test cases to streamline debugging and refinement of tool integrations. This work offers a foundational step toward enabling enterprise APIs as tools, improving their usability in agent-based applications.

📄 PDF Abstract BibTeX arXiv:2504.15546

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Doc2Agent: Scalable Generation of Tool-Using Agents from API Documentation

2025-06-24 · Xinyi Ni, Haonan Jian, Qiuyang Wang, Vedanshi Chetan Shah 외

REST APIs play important roles in enriching the action space of web agents, yet most API-based agents rely on curated and uniform toolsets that do not reflect the complexity of real-world APIs. Building tool-using agents…

A Multi-Agent Approach for REST API Testing with Semantic Graphs and LLM-Driven Inputs

2024-11-11 · Myeongsoo Kim, Tyler Stennett, Saurabh Sinha, Alessandro Orso

As modern web services increasingly rely on REST APIs, their thorough testing has become crucial. Furthermore, the advent of REST API documentation languages, such as the OpenAPI Specification, has led to the emergence o…

Fault DetectionMulti-agent Reinforcement Learning

AutoRestTest: A Tool for Automated REST API Testing Using LLMs and MARL

2025-01-15 · Tyler Stennett, Myeongsoo Kim, Saurabh Sinha, Alessandro Orso

As REST APIs have become widespread in modern web services, comprehensive testing of these APIs is increasingly crucial. Because of the vast search space of operations, parameters, and parameter values, along with their …

Fault DetectionMulti-agent Reinforcement Learning

LlamaRestTest: Effective REST API Testing with Small Language Models

2025-01-15 · Myeongsoo Kim, Saurabh Sinha, Alessandro Orso

Modern web services rely heavily on REST APIs, typically documented using the OpenAPI specification. The widespread adoption of this standard has resulted in the development of many black-box testing tools that generate …

Multi-Agent LLM-based Metamorphic Testing for REST APIs

2026-05-27 · Shehroz Khan, Abdullah Mughees, Gaadha Sudheerbabu, Tanwir Ahmad 외 arxiv

As REST APIs become an increasingly significant part of software systems, their validation is becoming more critical. Hence, testing and uncovering underlying issues are of utmost importance for improving software qualit…