Berkeley Function Calling Leaderboard (BFCL) explained

Evaluate agents
HoneyHive Engineering

BFCL is a benchmark from UC Berkeley that scores how well LLMs call functions and tools. What V1 to V4 test, how the overall score is weighted and how to run it.

The Berkeley Function Calling Leaderboard (BFCL) is a benchmark from UC Berkeley’s Gorilla project that measures how accurately a language model calls functions, also called tools. The leaderboard page describes it as evaluating “the LLM’s ability to call functions (aka tools) accurately” on real-world data that is updated periodically. It has grown through four versions from single calls to multi-turn and agentic tasks. For the underlying skill, see function calling.

Where it comes from

The first BFCL post is by Fanjia Yan, Huanzhi Mao, Charlie Cheng-Jie Ji, Ion Stoica, Joseph Gonzalez, Tianjun Zhang and Shishir Patil. The leaderboard page cites the work as an ICML 2025 paper. The code and results are open: the repository says the leaderboard statistics and the data used to train its models are released under Apache 2.0.

What each version added

Version What it added Source
V1 Single-turn calls: simple, parallel and multiple, in Python, Java, JavaScript and REST API formats, scored by AST matching, plus executable checks and tests that the model withholds a call when no function fits V1 post
V2 (August 2024) “Live” data: function documentation and queries contributed by users, meant to reduce data contamination and bias V2 post
V3 (September 2024) Multi-turn and multi-step calls, checked against the state of the API system after the calls instead of by AST matching V3 post
V4 (July 2025) An agentic domain with web search and memory management, plus a format sensitivity test Changelog, format post

Multi-step means the model makes several calls to answer one user request. Multi-turn means the user and assistant alternate, so the model can ask clarifying questions.

Test categories

The repository’s category list names the groups you can run:

  • Non-live: simple_python, simple_java, simple_javascript, parallel, multiple, parallel_multiple and irrelevance.
  • Live: the user-contributed versions, such as live_simple and live_multiple, plus live_irrelevance and live_relevance.
  • Multi-turn: multi_turn_base, multi_turn_miss_func (a needed function is missing), multi_turn_miss_param (a parameter is missing) and multi_turn_long_context.
  • Agentic memory: memory_kv, memory_vector and memory_rec_sum, which read and write a key-value, vector or recursive-summarization memory backend.
  • Agentic web search: web_search_base and web_search_no_snippet, where search snippets are withheld so the model has to fetch and read pages.
  • Format sensitivity: format_sensitivity varies the system prompt format. It does not count toward the score and only works for prompting-mode models.

How the overall score works

The V4 release changed the formula. The changelog says that “as single-turn tasks approach saturation, weighting now favors complex, multi-step agentic tasks.”

Segment Before V4 V4
Live 33% 10%
Non-live 33% 10%
Irrelevance 0% 10%
Multi-turn 33% 30%
Agentic 0% 40%

Table source: changelog, entry for July 17, 2025. The leaderboard page itself still calls overall accuracy an unweighted average, but the changelog and the V4 post both give these weights. The V4 web search post lists the entry counts behind each segment, including 200 web search and 465 memory entries in the agentic part. The leaderboard also reports estimated cost and latency for each model.

Native calling versus prompting

The leaderboard separates models by how they call tools. FC means the model uses a native function calling interface. Prompt means the model is asked in plain text to produce calls, as a workaround. Format sensitivity tests apply only to the prompt models. The format sensitivity post says the premise is that a model should give the correct output whatever the input format, for example Python or JSON calls, or functions described in Python or XML.

Reading a score

  • Check the version. A V3 score and a V4 score weigh different things, so they do not compare directly.
  • Check the date. The leaderboard page shows its last update and the evaluation commit, and scores change as models are added.
  • Look at the category, not just the total. A model can do well on single calls and still miss multi-turn or memory tasks.
  • Remember the scope. BFCL tests tool selection and arguments, not whether a whole agent completes a business task. For that, see tau-bench and the wider list of agent benchmarks.

Running it

The README says to install the bfcl-eval package (not the unrelated bfcl package), add API keys to a .env file, then run:

bfcl generate --model MODEL_NAME --test-category TEST_CATEGORY --num-threads 1
bfcl evaluate --model MODEL_NAME --test-category TEST_CATEGORY

Web search tests also need a SerpAPI key. Scores are written to a score/ folder as JSON files per category, plus summary CSV files. The --partial-eval flag scores a subset of entries, and the README warns that partial scores may not match the official leaderboard.

Using the idea on your own agent

A public benchmark shows how a model does on generic tools. Your agent has its own tools and arguments, so test those too: record real tool calls, check the chosen function and arguments, and track them over time. See agent evaluation metrics for ways to score tool use. HoneyHive’s docs describe tracing agents and running evaluators over the recorded tool calls.

FAQ

What does BFCL stand for?

Berkeley Function Calling Leaderboard. It is a benchmark and live leaderboard that evaluates how accurately LLMs call functions, also called tools.

How is the BFCL overall score calculated?

Since V4 in July 2025, the changelog gives these weights: agentic 40%, multi-turn 30%, live 10%, non-live 10% and irrelevance 10%.

How does BFCL check an answer?

The V4 blog says BFCL uses AST-based or state-transition-based verification for determinism. Single-turn answers are matched structurally, and multi-turn answers are checked against the resulting state of the API system.

Can I run BFCL on my own model?

Yes. Install the bfcl-eval package, then run bfcl generate and bfcl evaluate, as the README describes.

Share