arXiv:2609.05395cs.AISep 2026

Manuscript Offprint

arXiv:2609.05395

Multi-Step Tool-Calling over Korean Open Public APIs: A Benchmark and a Data-Synthesis Recipe

Dain Kim, Eungi Cho, Kyumin Kim, Shinyeong Noh, Kyuseong Lim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Data-sovereignty regulations increasingly require public institutions to deploy open-source, on-premise LLM agents that chain multiple tool-calls across live government APIs. However, open-source models consistently underperform in this multi-step setting, and no existing benchmark measures the gap. We introduce the Korean Open Public API Benchmark (KOPA-BENCH), comprising 145 real-world tasks. To close this gap, we present EDGE, an Execution-grounded Dynamic Graph for tool-calling data synthEsis driven by live execution. EDGE builds a graph of how each tool's output can feed another's input, keeps only the links that succeed when actually called against the live APIs, and traverses these verified links to synthesize executable multi-step trajectories. Fine-tuned via GRPO on the resulting dataset, our 9B model nearly matches the untuned 27B model from the same family, improving substantially not only on KOPA-BENCH but also on the BFCL benchmark.¹

1 Introduction

Public institutions are increasingly adopting agents built on large language models (Tang et al., 2025; Mohammadi et al., 2025). Data-sovereignty regulations force these agencies to deploy open-source models (Qwen Team, 2026; Gemma Team, 2026) on local infrastructure rather than commercial cloud services. However, these models must operate over the laws, corporate disclosures, and transportation data that the institutions provide through open APIs, a context where open-source models consistently underperform.

We study this by examining how tool-calling agents operate over live Korean public API endpoints. Under this context, we observe two distinct challenges: (1) frequent entity code-lookups that

Figure

(a) Failure case of small models

(b) Trajectory of fine-tuned model

Figure 1: Comparison of tool-calling trajectories in Korean public APIs before and after fine-tuning. (a) Failure case (Before fine-tuning): The agent fails to retrieve the API key and, even after successfully retrieving a valid key, it answers incompletely based only on the first page of a paginated API response. (b) Success case (After fine-tuning): The agent successfully chains tool outputs, queries multiple pages, and aggregates the results to deliver an accurate answer.

transform simple queries into dependent chains, and (2) high-cardinality responses requiring data reduction or fan-out. Open-source models consistently stumble on both, either skipping prerequisite lookups or prematurely answering from partial results when facing multi-record outputs (Figure 1).

We therefore construct the Korean Open Public API Benchmark (KOPA-BENCH), 145 multi-step tasks over six domains of live Korean public APIs. Each task requires chaining dependent calls, where the output of one tool supplies the input of the next, and a lot of calls return multiple records. Improving

¹Code and data are available at: https://github.com/dneirfi/EDGE-KOPA.

on these tasks requires training data under the same constraints, yet existing tool-calling datasets target neither Korean public APIs, live endpoint failures, nor high-cardinality handoffs.

We therefore propose Execution-grounded Dynamic Graph for tool-calling data synthEsis (EDGE), a pipeline designed around these properties. EDGE builds a tool dependency graph and verifies each LLM-proposed dependency against the live APIs, keeping the graph dynamic by pruning those that repeatedly fail under execution.

From the verified graph, EDGE synthesizes executable trajectories by labeling each output-to-input handoff between tools with the number of distinct returned values. This lets EDGE turn high-cardinality responses into valid sequential trajectories through bounded fan-out or deterministic reduction.

Trained on the resulting dataset, both small Qwen3.5 models improve substantially, raising KOPA-BENCH pass@1 by +13pp (4B) and +10pp (9B), with the gains extending to the out-of-distribution BFCL benchmark (Patil et al., 2025).

Our contributions are as follows:

  • We construct KOPA-BENCH, a multi-step function-calling benchmark on live Korean public APIs, where each task chains dependent calls through code-based lookups and high-cardinality intermediate results.

  • We propose EDGE, a synthesis pipeline that verifies tool dependencies by live execution and resolves high-cardinality handoffs into sequential trajectories. GRPO training on its data substantially improves small open-source models on KOPA-BENCH and out-of-distribution benchmarks.