I-PTC: Interactive Programmatic Tool Calling for Stateful Tool-Augmented Agents
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Large language models are increasingly capable of writing and executing code, suggesting a natural paradigm for tool-augmented agents: expressing tool use as programs rather than isolated calls. Programmatic tool calling (PTC) captures this idea through loops, batching, abstraction, and structured computation, but existing PTC approaches are largely stateless, limiting their ability to reuse intermediate results and adapt over time. This is problematic for real-world tasks, where tool environments and problem-solving processes are inherently stateful. We therefore present I-PTC, an interactive framework that executes stateful PTC: models issue code snippets that call tools, maintain reusable state, and evolve the tool interface through API corrections. To evaluate the effectiveness of I-PTC and the general PTC setting, we introduce PTC-Bench, a benchmark of long-tail, production-style user requests whose difficulty comes from large initial environments, many dependent API interactions, extended planning, and recovery across follow-ups and transient failures. Experiments on PTC-Bench show that I-PTC improves performance on complex multi-step tasks with large tool sets while substantially reducing token consumption over conventional tool-calling baselines and the original PTC baseline, highlighting stateful programmatic tool calling as a promising direction for scalable tool-augmented agents.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 5 of its 12 references that are in the map. Submitted 1 Nov 2026.
Builds on
5 of 12 references.
Closest ancestors · 4
Same direction, newest first
- 2025MCP-Bench: Benchmarking Tool-Using LLM Agents with Complex Real-World Tasks via MCP Servers28 Aug
- 2025MCP-Universe: Benchmarking Large Language Models with Real-World Model Context Protocol Servers20 Aug
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023Gorilla: Large Language Model Connected with Massive APIs24 May
Other references · 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026The Bitter Lesson of Tool Calling
- 2026AsyncTool: Evaluating the Asynchronous Function Calling Capability under Multi-Task Scenarios
- 2026OpaqueToolsBench: Learning Nuances of Tool Behavior Through Interaction
- 2026E-Bench: Benchmarking Multi-Step Tool-Use Agents in Real-World Product Scenarios
- 2026Beyond Function Calling: Benchmarking Tool-Using Agents under Tool-Environment Unreliability
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration
- 2026PeakBench: Benchmarking Resource-Aware Tool Invocation in LLM Agents
- 2026How Consistent Are LLM Agents? Measuring Behavioral Reproducibility in Multi-Step Tool-Calling Pipelines