The reviewed record of science sign in
Pith

arxiv: 2504.15546 · v3 · pith:UB3TNKDB · submitted 2025-04-22 · cs.SE · cs.AI

A Framework for Testing and Adapting REST APIs as LLM Tools

Reviewed by Pithpith:UB3TNKDBopen to challenge →

classification cs.SE cs.AI
keywords apisframeworktoolsagentsenterprisecasescomplexerrors
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation

    cs.SE 2026-02 unverdicted novelty 7.0

    Agent-Diff benchmarks LLM agents on enterprise API tasks using code execution and state-diff contracts to define success, evaluated on nine models across 224 tasks with code released.

  2. Making OpenAPI Documentation Agent-Ready: Detecting Documentation and REST Smells with a Multi-Agent LLM System

    cs.SE 2026-05 unverdicted novelty 5.0

    Hermes uses multi-agent LLMs to detect 2450 documentation and REST smells across 600 OpenAPI endpoints, demonstrating that structurally valid microservice APIs are often not semantically ready for agent consumption.

  3. LLM Agents Are the Antidote to Walled Gardens

    cs.LG 2025-06 unverdicted novelty 4.0

    LLM agents enable universal interoperability by serving as automatic translators and adapters between proprietary digital services.