Papers › NESTFUL: A Benchmark for Evaluating LLMs on Nested Sequences of API Calls

NESTFUL: A Benchmark for Evaluating LLMs on Nested Sequences of API Calls

4 Sep 2024arXiv:2409.03797archive 2025-07-28

Kinjal Basu, Ibrahim Abdelaziz, Kiran Kate, Mayank Agarwal, Maxwell Crouse, Yara Rizk, Kelsey Bradford, Asim Munawar, Sadhana Kumaravel, Saurabh Goyal, Xin Wang, Luis A. Lastras, Pavan Kapanipathi

The resurgence of autonomous agents built using large language models (LLMs) to solve complex real-world tasks has brought increased focus on LLMs' fundamental ability of tool or function calling. At the core of these agents, an LLM must plan, execute, and respond using external tools, APIs, and custom functions. Research on tool calling has gathered momentum, but evaluation benchmarks and datasets representing the complexity of the tasks have lagged behind. In this work, we focus on one such complexity, nested sequencing, with the goal of extending existing benchmarks and evaluation. Specifically, we present NESTFUL, a benchmark to evaluate LLMs on nested sequences of API calls, i.e., sequences where the output of one API call is passed as input to a subsequent call. NESTFUL contains 1800+ nested sequences where all the function calls are executable. Experimental results on a variety of models show that the best-performing model (GPT-4o) achieves a full sequence match accuracy of 28% and a win-rate of 60%, necessitating a large scope for improvement in the nested sequencing aspect of function calling. Our analysis of these results provides possible future research directions for the community, in addition to a benchmark to track progress. We have released the NESTFUL dataset under the Apache 2.0 license at https://github.com/IBM/NESTFUL.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2409.03797")

Code

Syntology Ran 17 of 21 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 17 ran with no contract checked.

By repository: official repository: 21 samples from 1 repository, 17 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ibm/nestful officialmentioned in papermentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 17 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

17ran
4unverified

Licence: 0 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ibm/nestful. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ast_parse ibm/nestful/src/ast_utils.py official repository ran Apache-2.0 (permissive) · 9c6d8f0b3847114f · report
create_service_account ibm/nestful/data_v2/executable_functions/py_code_file_1001.py official repository ran fingerprinted Apache-2.0 (permissive) · ce18037f4b6348c6 · report
do_stuff ibm/nestful/data_v2/executable_functions/py_code_file_1002.py official repository ran fingerprinted Apache-2.0 (permissive) · 153e1cc7a8f8d341 · report
extend_num ibm/nestful/data_v2/executable_functions/py_code_file_100.py official repository ran fingerprinted Apache-2.0 (permissive) · 31c2e27c79774797 · report
find_strings_with_pattern ibm/nestful/data_v2/executable_functions/py_code_file_1.py official repository ran Apache-2.0 (permissive) · 47cc520d6946b782 · report
format_padding ibm/nestful/data_v2/executable_functions/py_code_file_10.py official repository ran fingerprinted Apache-2.0 (permissive) · fb5af146b3521b50 · report
get_deli_sep_str_list ibm/nestful/src/output_parsers.py official repository ran fingerprinted Apache-2.0 (permissive) · a58b18082fe1da3f · report
get_icl_str ibm/nestful/src/instruct_data_prep.py official repository ran Apache-2.0 (permissive) · 48207fba685d16d6 · report
listit ibm/nestful/src/scorer.py official repository ran fingerprinted Apache-2.0 (permissive) · f0a4f5a7f292a3d0 · report
permutation ibm/nestful/data_v2/executable_functions/basic_functions.py official repository ran fingerprinted Apache-2.0 (permissive) · b524a104e61bdc60 · report
power ibm/nestful/data_v2/executable_functions/basic_functions.py official repository ran fingerprinted Apache-2.0 (permissive) · 29da7d03953ecf87 · report
process_slot_value ibm/nestful/src/output_parsers.py official repository ran fingerprinted Apache-2.0 (permissive) · cd5994aa5f8341d1 · report
read_file ibm/nestful/src/utils.py official repository ran Apache-2.0 (permissive) · ba6cfefa8094dcb6 · report
resolve_ast_by_type ibm/nestful/src/ast_utils.py official repository ran Apache-2.0 (permissive) · cc91f822de63292f · report
resolve_ast_call ibm/nestful/src/ast_utils.py official repository ran Apache-2.0 (permissive) · 053e58f476c2e09c · report
simplify_slug ibm/nestful/data_v2/executable_functions/py_code_file_1000.py official repository ran fingerprinted Apache-2.0 (permissive) · 662385c90863ea91 · report
subtract ibm/nestful/data_v2/executable_functions/basic_functions.py official repository ran fingerprinted Apache-2.0 (permissive) · 7f2f2e2df15e6716 · report
calculate_ans ibm/nestful/src/scorer.py official repository unverified Apache-2.0 (permissive) · f5b3c135f40d531c · report
get_basic_func_list ibm/nestful/src/scorer.py official repository unverified Apache-2.0 (permissive) · c9fb850a9577a4d4 · report
get_granite_tokenizer ibm/nestful/src/instruct_data_prep.py official repository unverified Apache-2.0 (permissive) · 63f870a98c11420f · report
granite_3_1_prompt_input ibm/nestful/src/instruct_data_prep.py official repository unverified Apache-2.0 (permissive) · 0d5485e114c8ba34 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections