---
title: "Tool Calling with Local LLMs: A Practical Evaluation"
description: "Docker benchmarked 21 local and hosted LLMs on tool calling using model-test, a harness that runs shopping-cart scenarios with multiple acceptable tool-call sequences inside a 5-round agent loop and scores invocation, tool selection and parameter accuracy as an F1 score."
url: "https://swe.quest/articles/tool-calling-with-local-llms-a-practical-evaluation-935878d43dd4eb76"
canonical: "https://www.docker.com/blog/local-llm-tool-calling-a-practical-evaluation/"
source: "Docker"
published: "2025-06-30"
difficulty: "medium"
kind: "Research"
reading_minutes: 8
tags: ["evals","llms","ai-agents","inference"]
---

# Tool Calling with Local LLMs: A Practical Evaluation

A post on [Docker](https://swe.quest/sources/docker.md), published 2025-06-30, 8 min read, Research. Original: [https://www.docker.com/blog/local-llm-tool-calling-a-practical-evaluation/](https://www.docker.com/blog/local-llm-tool-calling-a-practical-evaluation/)

## Summary

Docker benchmarked 21 local and hosted LLMs on tool calling using model-test, a harness that runs shopping-cart scenarios with multiple acceptable tool-call sequences inside a 5-round agent loop and scores invocation, tool selection and parameter accuracy as an F1 score. Over 3,570 tests on an M4 Max MacBook Pro, GPT-4 led at 0.974. Qwen3 14B was the best local model at 0.971 but took about 142 seconds per interaction, and Qwen3 8B reached 0.933 at roughly half that latency. Tool-tuned models such as watt-tool 8B and xLAM 8B scored poorly, and quantized variants performed no worse than full-precision ones.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)

## Prerequisites

- LLM function calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- F1 score

## Keywords

Docker Model Runner, model-test, Qwen3, GPT-4, Berkeley Function-Calling Leaderboard, Ollama, xLAM, watt-tool

## Related posts

- [Run, Test, and Evaluate Models and MCP Locally with Docker + Promptfoo](https://swe.quest/articles/run-test-and-evaluate-models-and-mcp-locally-with-docker-promptfoo-ad1578ad40c09850.md): Docker · 2025-09-25 · Medium · 7 min read · Evaluation, AI agents, LLMs, AI safety, Containers
  Promptfoo, Docker Model Runner and Docker MCP Toolkit can be combined to evaluate LLM apps entirely on a dev machine.
- [Run LLMs Locally with Docker: A Quickstart Guide to Model Runner](https://swe.quest/articles/run-llms-locally-with-docker-a-quickstart-guide-to-model-runner-ccfbbb71db5d1485.md): Docker · 2025-04-04 · Medium · 5 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, in beta with Docker Desktop 4.40 on Apple silicon, pulls LLMs packaged as OCI artifacts and serves them through an OpenAI-compatible API backed by llama.cpp.
- [Local Model Performance on an M5 Max](https://swe.quest/articles/local-model-performance-on-an-m5-max-25f3fd6f708977a6.md): GitButler · 2026-08-12 · Medium · 8 min read · LLMs, Evaluation, Inference & serving, Hardware, AI for coding
  Six large local models run on a 128GB M5 Max MacBook came surprisingly close to frontier cloud models (Opus 5, GPT-5.6 Sol) on a 22-problem suite covering DuckDB SQL, agentic pytest bugfixes, JSON extraction, output prediction, quick facts and long-document lookups.
- [How to Build, Run, and Package AI Models Locally with Docker Model Runner](https://swe.quest/articles/how-to-build-run-and-package-ai-models-locally-with-docker-model-runner-acbc6d65548e5373.md): Docker · 2025-06-12 · Medium · 6 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, enabled as a beta feature in Docker Desktop 4.40+, pulls GGUF-format LLMs from Docker Hub or Hugging Face and runs them locally via the \`docker model\` CLI or an OpenAI-compatible HTTP endpoint on localhost.
- [We got local models to triage the OpenClaw repo for FREE!\*](https://swe.quest/articles/we-got-local-models-to-triage-the-openclaw-repo-for-free-60bcac27d80eddae.md): Hugging Face · 2026-06-22 · Medium · 13 min read · AI agents, Inference & serving, Evaluation, LLMs, Open source
  Local open-weight models running in an agent harness on an NVIDIA GB10 (DGX Spark) can triage OpenClaw's GitHub issues and PRs in real time, routing only relevant topics to a maintainer via Discord.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
