2606.19992

Total: 1

#1 Beyond Static Endpoints: Tool Programs as an Interface for Flexible Agentic Web Services [PDF] [Copy] [Kimi] [REL]

Authors: Mugeng Liu, Shuoqi Li, Yixuan Zhang, Yun Ma

In the agentic web era, LLM-based agents increasingly invoke web services as tools, yet most interfaces remain \emph{static endpoints} that poorly express long-horizon workflows with loops, conditionals, joins, and retries. We present ToolPro, which represents an agent's tool intent as an \emph{executable tool program} that compactly encodes multi-step service interactions with explicit effect types. ToolPro combines constraint-guided program construction, effect-aware replay for exactly-once state-modifying calls, and a profile-driven policy that decides when program execution outperforms stepwise calling. We instantiate ToolPro over MCP-style services with WebAssembly sandboxing and evaluate it on diverse workflows of real-world applications. ToolPro reduces end-to-end latency by up to 53.4\% and client-side traffic by up to 96.1\%, with larger gains under higher network latency and workflow complexity.

Subjects: Software Engineering , Artificial Intelligence

Publish: 2026-06-18 09:31:09 UTC