Berkeley Function Calling Leaderboard

Also known as: BFCL

On this page 7

The Berkeley Function Calling Leaderboard (BFCL) is a public benchmark and ranking that measures how accurately large language models call external functions, meaning how well they choose the right tool, fill in correct arguments in the required format, and decide when no tool should be used at all. In model evaluation, it became one of the most widely cited references for tool use and agentic capability after its release in 2024.

BFCL was created at the University of California, Berkeley, by the team behind the Gorilla project, which studies how language models connect to APIs. The leaderboard has grown through several versions, from single-turn function calls to multi-turn conversations and agentic tasks, and it reports accuracy alongside cost and latency so that practitioners can compare models in realistic terms.

What the Berkeley Function Calling Leaderboard measures

BFCL measures function calling, the ability of a model to turn a natural language request into a structured call such as a JSON object or a code expression that names a function and supplies its parameters. Each test item gives the model a user query and a set of function documentation, and the model must produce zero, one or several calls that would satisfy the request.

The benchmark covers several call patterns, because real applications rarely involve a single obvious tool. The table below lists the core categories used since the first version.

CategoryTask for the modelSkill tested
SimpleCall one given function onceArgument extraction and typing
MultiplePick one function from severalTool selection
ParallelCall one function several timesSplitting a compound request
Parallel multipleCall several functions, possibly repeatedlyPlanning combined calls
Relevance detectionRecognize that no function fitsAvoiding hallucinated calls
Core BFCL test categories

Test items span several programming contexts, including Python, Java, JavaScript, REST API calls and SQL, so a model must respect different type systems and syntax conventions rather than memorize one format.

How BFCL scores a function call

BFCL scores calls with two complementary methods. Abstract syntax tree evaluation parses the generated call and compares the function name, required parameters, parameter types and values against a set of acceptable answers. Executable evaluation actually runs the call against real or simulated functions and checks whether the response matches the expected result or structure.

AST evaluation scales to thousands of items and is deterministic and cheap, while executable evaluation captures errors that look syntactically correct but fail in practice. Multi-turn categories add state-based checks, which compare the final state of a simulated environment, such as a file system or a booking backend, with the expected state.

MethodWhat is checkedAdvantageLimitation
AST matchingName, parameters, types and valuesFast and reproducibleNeeds a list of valid answers
Executable checkResult of running the callCatches runtime failuresDepends on live services
State-based checkFinal environment stateFits multi-step tasksRequires a simulated backend
Response-based checkReturned output contentTolerates alternative pathsHarder to define strictly
Evaluation methods used in BFCL

Models are typically tested in two modes: native function calling, where the provider’s tool interface is used, and prompt mode, where the documentation is inserted as text and the model must write the call itself. Comparing both reveals whether accuracy comes from the model or from its API wrapper.

Versions and their focus

Each major release of BFCL added harder and more realistic scenarios, partly to counter benchmark saturation as top models approached ceiling scores on earlier categories.

VersionMain additionPurpose
Version 1Expert-curated single-turn callsEstablish a baseline across languages
Version 2User-contributed live queriesReduce contamination and reflect real use
Version 3Multi-turn and multi-step tasksTest state tracking and clarification
Version 4Agentic tasks such as web search and memoryApproach full agent workflows
Evolution of the leaderboard

Because categories and weights change between versions, overall scores from different versions are not directly comparable, and published rankings should always be read together with the version and date of evaluation.

BFCL compared with other evaluations

BFCL differs from general knowledge benchmarks such as MMLU or GPQA because it measures action correctness rather than answer correctness. It is narrower than full agent benchmarks such as SWE-bench, which test long task completion, and more structured than LLM-as-a-judge evaluations, since most of its checks are programmatic and deterministic.

As an LLM leaderboard, it complements preference rankings such as LMArena: a model can be preferred in open conversation yet weak at strict tool use, and the reverse also occurs. Teams building assistants usually consult both kinds of evidence.

Other tool-use benchmarks, such as those that simulate retail or airline customer service, emphasize policy compliance over long dialogues, whereas BFCL emphasizes breadth of call patterns and languages. Because each benchmark samples a different slice of behavior, a model that leads one ranking may trail on another, and a combined view gives a more balanced picture of real tool-use readiness.

Limitations and responsible interpretation

A high BFCL score indicates strong general tool-calling skill, not guaranteed success with a specific product’s APIs. Function schemas in production are often longer, more ambiguous and more domain-specific than benchmark items, so internal evaluation on real tool definitions remains necessary.

  • Answer sets can be incomplete, so a valid alternative call may be marked wrong.
  • Contamination risk rises once test items circulate publicly.
  • Prompt formatting and system instructions can shift scores by several points.
  • Aggregate accuracy hides weaknesses, for example poor relevance detection behind a strong overall rank.
  • Cost and latency figures depend on provider pricing at the time of testing.

The most reliable use of BFCL is therefore as a screening signal: inspect category-level results, especially relevance detection and multi-turn accuracy, then confirm the shortlist on in-house tasks.

Put simply

Many AI assistants can now use tools. They can check the weather, book a table or search a database. To do that, they must send a precise request in the right format. The Berkeley Function Calling Leaderboard is a public scoreboard for this skill.

It gives each model thousands of small tasks and checks every request it writes. Did it pick the right tool? Did it fill in the right details? Did it stay quiet when no tool fits? Think of it as a driving test for AI assistants, where the examiner watches every turn and signal, not only whether the car arrives.

In practice

A travel company plans an assistant that calls about 40 internal functions for flights, hotels, payments and cancellations. Before running its own tests, the engineering team uses BFCL to shortlist candidate models. It ignores the overall rank and compares the multi-turn and relevance detection categories, because wrong bookings and unwanted calls are the costliest errors.

Three models make the shortlist. The team then builds an internal test set of 500 real customer requests with the company’s own function schemas. One model that ranked fourth on the public leaderboard performs best on this set, mainly because it asks clarifying questions instead of guessing dates. The result is a model choice backed by both public and internal evidence, and a lower rate of incorrect bookings in the pilot.