Canonical: https://botbento.com/blog/bfcl-leaderboard-run-it-against-your-own-bot/
Format: Markdown representation of the public HTML page.

[Home](/) / [Blog](/blog/)

FIELD NOTES / 4 MIN READ

# How to Run the Berkeley Function-Calling Leaderboard Against Your Own Bot

The Berkeley Function-Calling Leaderboard (BFCL) is an open-source benchmark, not just a scoreboard. Builders can clone the Gorilla repository, add a model handler, and run the same evaluation locally — but the public rank only covers Berkeley's fixed test set, not the tools your bot actually calls. This piece walks through what BFCL V4 measures, how to run it, and where its score stops telling you anything about your own routine.

By BotBento Editorial · Published 2026-12-02 · Updated 2026-12-02

AI-assisted editorial: researched and drafted with AI using the primary sources linked below. Check the cited evidence and any stated test scope. Illustrative examples are not measured product results. [Editorial policy](/editorial/).

## In this article

- [Direct answer](#direct-answer)
- [What BFCL V4 actually scores](#what-bfcl-measures)
- [Worked example: running BFCL locally (illustrative)](#worked-example)
- [Where BFCL stops helping — and what to do instead](#limits-and-decision)[Read as Markdown ](/text/blog/bfcl-leaderboard-run-it-against-your-own-bot/index.md)

## Key takeaways

- BFCL's public leaderboard score comes from Berkeley's own test categories (simple, multiple, parallel, multi-turn, and V4's agentic web-search and memory sets) — not from your bot's tools, so a high rank doesn't certify your specific integration.
- You can reproduce the benchmark yourself with the bfcl-eval package or an editable clone of the gorilla repo, running bfcl generate then bfcl evaluate against any publicly accessible model, including self-hosted ones via vLLM.
- Adding your own tool definitions to BFCL means writing a new model handler and test category under the project's contribution rules, not just pointing an existing run at your schema — budget for that work before treating BFCL as your bot's eval.

## Direct answer

If you want evidence about how well a model calls functions in general, BFCL's public leaderboard is a reasonable starting point, maintained by UC Berkeley's Gorilla project and updated periodically. If you want evidence about how well a model calls your bot's specific tools, the leaderboard number doesn't tell you that — you have to run the harness yourself, and even then you're testing Berkeley's test categories, not your schema, unless you add your own.

The practical move for a small team: use the public rank to shortlist two or three candidate models, then run a small, equal-condition test using your own tool definitions and tasks before switching your bot's model. BFCL is good for comparing general tool-calling competence; it is not a substitute for testing the tools you actually ship.

## What BFCL V4 actually scores

BFCL evaluates an LLM's ability to call functions (tools) accurately, and the current V4 leaderboard reports overall accuracy as the unweighted average across sub-categories, alongside estimated cost and latency for the full benchmark run. Results split models into FC (native function-calling support) and Prompt (text-generation workaround) tracks, which matters if your bot's provider only supports one mode.

The V1 through V3 releases built up single-turn, parallel, multiple, and multi-turn function calling, plus a relevance-detection category that checks whether a model correctly declines to call anything when no function fits. V4 added a dedicated agentic benchmark: 200 web-search questions designed as multihop — requiring two or more reasoning steps across sources — and a separate memory category, together forming 665 agentic test cases. The web-search tests run every model against a standardized DuckDuckGo-backed search tool so all models see the same surface.

None of this is your bot's calendar tool, your CRM lookup, or your internal ticketing API. BFCL's categories are fixed, expert-curated or community-contributed scenarios — useful as a general signal of tool-calling competence, not as a certificate that a model will handle your specific function signatures or your failure cases correctly.

Sources: [Berkeley Function Calling Leaderboard (BFCL) V4 - Gorilla](https://gorilla.cs.berkeley.edu/leaderboard.html), [BFCL V4 • Agentic Part 1: Web Search](https://gorilla.cs.berkeley.edu/blogs/15_bfcl_v4_web_search.html).

## Worked example: running BFCL locally (illustrative)

This is illustrative, not a BotBento test result. To reproduce BFCL's published numbers or run it against a new model, Berkeley's repository documents two install paths: an editable clone of the gorilla repo for making code changes, or the prebuilt bfcl-eval package from PyPI for running evaluations as-is. The project explicitly warns that there's an unrelated bfcl package on PyPI — you want bfcl-eval specifically.

A typical run looks like: clone the repository, set BFCL\_PROJECT\_ROOT so results land somewhere findable, copy the .env.example into your project root and fill in API keys for whichever proprietary models you're testing (GPT, Claude, Gemini, Mistral, Nova all require keys; open-weight models run locally via vLLM do not). Then you generate model responses for a chosen MODEL\_NAME and TEST\_CATEGORY, and run bfcl evaluate afterward to score them. A --partial-eval flag exists for scoring a subset of completed IDs, but the project notes this score may not match the official leaderboard number since it skips missing entries.

If the model you want to test isn't already supported, adding it means writing a new model handler under bfcl\_eval/model\_handler, populating a ModelConfig entry with the model's documentation link, developer, license, and handler class, and — per the contribution guide — making sure the model is publicly accessible, even if it requires auth or billing. Fully private or internal models can't be added to the public-facing leaderboard, though the maintainers say they'll still take the contribution. For a small team, this is real engineering time: expect to spend more effort wiring up a new handler than running an existing one.

Sources: [gorilla/berkeley-function-call-leaderboard/README.md at main · ShishirPatil/gorilla](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/README.md), [gorilla/berkeley-function-call-leaderboard/CONTRIBUTING.md at main · ShishirPatil/gorilla](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/CONTRIBUTING.md).

## Where BFCL stops helping — and what to do instead

BFCL's categories are Berkeley's, not yours. Running the full benchmark tells you how a model handles simple, parallel, multiple, multi-turn, and agentic web-search/memory tasks built from Berkeley's dataset and function docs — it does not touch your bot's actual tool schemas unless you write a new test category yourself, which the project supports but doesn't make trivial.

The SQL AST category is a concrete example of this gap: BFCL restricted its SQL tests to simple keyword scenarios and explicitly excluded SQL performance from the official leaderboard calculation, because there are too many syntactically different ways to construct an equivalent query. That's a reasonable methodological choice for a general leaderboard, but it means if your bot's main tool is a database query function, BFCL's SQL numbers (where they even appear) aren't the signal you need.

Decision for a small team: use the public BFCL rank to narrow your model shortlist by FC-vs-Prompt support and rough cost/latency, then stop relying on it. Build a small, equal-condition test with your own three to five tools, your own failure cases (missing arguments, irrelevant queries, multi-step chains your bot actually runs), and score it the same way across every candidate model before you migrate. BFCL answers 'can this model call functions well in general.' Your own harness has to answer 'can this model call my functions correctly, including when it should refuse.'

Sources: [Berkeley Function Calling Leaderboard (BFCL) V4 - Gorilla](https://gorilla.cs.berkeley.edu/leaderboard.html), [gorilla/berkeley-function-call-leaderboard/bfcl\_eval/data/README.md at main · ShishirPatil/gorilla](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/bfcl_eval/data/README.md).

## Primary sources

Sources checked 2026-12-02. Standards and product documentation can change; follow the linked version when implementing.

- [Berkeley Function Calling Leaderboard (BFCL) V4 - Gorilla](https://gorilla.cs.berkeley.edu/leaderboard.html) — UC Berkeley Gorilla Project
- [BFCL V4 • Agentic Part 1: Web Search](https://gorilla.cs.berkeley.edu/blogs/15_bfcl_v4_web_search.html) — UC Berkeley Gorilla Project
- [gorilla/berkeley-function-call-leaderboard/README.md at main · ShishirPatil/gorilla](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/README.md) — UC Berkeley Gorilla Project (GitHub)
- [gorilla/berkeley-function-call-leaderboard/CONTRIBUTING.md at main · ShishirPatil/gorilla](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/CONTRIBUTING.md) — UC Berkeley Gorilla Project (GitHub)
- [gorilla/berkeley-function-call-leaderboard/bfcl\_eval/data/README.md at main · ShishirPatil/gorilla](https://github.com/ShishirPatil/gorilla/blob/main/berkeley-function-call-leaderboard/bfcl_eval/data/README.md) — UC Berkeley Gorilla Project (GitHub)

BotBento is in development. [Suggest a correction](/contact/).
