mlsanityData to 14 Oct 2026

LongFuncEval: Measuring the effectiveness of long context models for function calling

arXiv 2505.10570 ↗First posted 30 Apr 2025cs.SEcited by 18

On the map: LLM agents and tool use → Tool learning and function calling

Abstract (arXiv)

Multiple recent studies have documented large language models' (LLMs) performance on calling external tools/functions. Others focused on LLMs' abilities to handle longer context lengths. At the intersection of these areas lies another interesting problem: LLMs' abilities to accurately perform function calls in long context settings. Particularly, when calling tools, LLMs are encumbered by three predominant challenges: (1) a large catalog of tools, (2) long responses from the tool APIs, and (3) long multi-turn conversations. These challenges are particularly relevant to enterprise applications of LLMs which engage in multi-turn conversations with users to complete complex tasks that require a large catalog of complex tools. The literature contains multiple investigations of long context challenges such as lost in the middle or needle in the haystack for natural language tasks. In this paper, we make the first attempt to comprehensively study the long context understanding capabilities of these models in the tool calling setup. We modify existing benchmarks for challenge 1 and 3, and create a new evaluation set for challenge 2 to enable this analysis. We gradually increase the input context length and also vary the position of the answer in the input. When evaluated with several long context models, we observe a performance drop of 7% to 85% as the number of tools increases, a 7% to 91% degradation in answer retrieval as the tool responses length increases, and 13% and 40% degradation for as multi-turn conversations get longer. Our study shows that LLMs still struggle with long context in tool calling settings, motivating future research to drive further LLM improvements.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 22 of its 29 references that are in the map. First posted on arXiv 30 Apr 2025.

Builds on

22 of 29 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation10 Mar
  2. 2025ComplexFuncBench: Exploring Multi-Step and Constrained Function Calling under Long-Context Scenario17 Jan
  3. 2024Toolshed: Scale Tool-Equipped Agents with Advanced RAG-Tool Fusion and Tool Knowledge Bases18 Oct
  4. 2024TinyAgent: Function Calling at the Edge1 Sep
  5. 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets26 Jun
  6. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedback19 Sep
  7. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
  8. 2023Gorilla: Large Language Model Connected with Massive APIs24 May
  9. 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs14 Apr

Other references · 13

  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  2. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  3. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  4. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 830
  5. 2023Identifying the Risks of LM Agents with an LM-Emulated Sandboxcited by 548
  6. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
  7. 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 202
  8. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 176
  9. 2023RestGPT: Connecting Large Language Models with Real-World RESTful APIscited by 135
  10. 2025NoLiMa: Long-Context Evaluation Beyond Literal Matchingcited by 126
  11. 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
  12. 2024Is It Really Long Context if All You Need Is Retrieval? Towards Genuinely Difficult Long Context NLPcited by 27
1 more
  1. 2024DENIAHL: In-Context Features Influence LLM Needle-In-A-Haystack Abilitiescited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 13.

18 papers.

Sort:

By area:

  1. 2025A Survey of Context Engineering for Large Language Modelscited by 126
  2. 2026Beyond Static Tools: Test-Time Tool Evolution for Scientific Reasoningcited by 15
  3. 2025From REST to MCP: An Empirical Study of API Wrapping and Automated Server Generation for LLM Agentscited by 14
  4. 2025Towards Reliable Benchmarking: A Contamination Free, Controllable Evaluation Framework for Multi-step LLM Function Callingcited by 13
  5. 2025Routine: A Structural Planning Framework for LLM Agent System in Enterprisecited by 9
  6. 2026How Many Tools Should an LLM Agent See? A Chance-Corrected Answercited by 7
  7. 2025Solving Context Window Overflow in AI Agentscited by 4
  8. 2026FinTrace: Holistic Trajectory-Level Evaluation of LLM Tool Calling for Long-Horizon Financial Taskscited by 4
  9. 2026FAMA: Failure-Aware Meta-Agentic Framework for Open-Source LLMs in Interactive Tool Use Environmentscited by 4
  10. 2026Harness Engineering in LLM Tool Use via Agent-Native Reusable Tool Primitivescited by 2
  11. 2026ReIn: Conversational Error Recovery with Reasoning Inceptioncited by 1
  12. 2026Gecko: A Simulation Environment with Stateful Feedback for Refining Agent Tool Callscited by 1
6 more
  1. 2026Don't Offer What Can't Be Done: Deterministic Executability Gating for LLM Skill Selection at Scalecited by 1
  2. 2026Exploring Weaknesses in Function Call Models via Reinforcement Learning: An Adversarial Data Augmentation Approachcited by 0
  3. 2026MCP Server Architecture Patterns for LLM-Integrated Applicationscited by 0
  4. 2026Neurosymbolics for Data Engineering: Achieving Long Context Token Reduction Without Finetuningcited by 0
  5. 2026Extending FunctionGemma for Practical On-Device Mobile Function Callingcited by 0
  6. 2026Google Earth AI Geospatial Reasoning Agent: Capabilities and a Systematic Evaluationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Small Models, Big Tasks: An Exploratory Empirical Study on Small Language Models for Function Calling
  2. 2026Benchmarking LLM Tool-Use in the Wild
  3. 2025ToolHaystack: Stress-Testing Tool-Augmented Language Models in Realistic Long-Term Interactions
  4. 2024An Effective Framework to Help Large Language Models Handle Numeric-involved Long-context Tasks
  5. 2026Beyond Ideal Instruction: A Comprehensive Framework for Evaluating LLMs in Realistic Interactions
  6. 2025LongSafety: Evaluating Long-Context Safety of Large Language Models
  7. 2026Try, Check and Retry: A Divide-and-Conquer Framework for Boosting Long-context Tool-Calling Performance of LLMs
  8. 2024FunctionChat-Bench: Comprehensive Evaluation of Language Models' Generative Capabilities in Korean Tool-use Dialogs