Ollama

registry.ollama.ai/library/… does not support tools

The error

registry.ollama.ai/library/llama3:latest does not support tools

Your model name will differ. Common models that trigger this: llama3, gemma3, gemma2, dolphin3, phi4, llava, moondream, qwen2.5vl, tinyllama, codestral, deepseek-coder, llama2-uncensored.

The Ollama error "registry.ollama.ai/library/[model] does not support tools" means the model has no tool-calling template, so it can chat but cannot call tools. Switch to a tool-capable model such as qwen3.5:9b, qwen3.8:27b, gemma4, hermes3 or mistral, and make sure your baseUrl uses the native API with no /v1 suffix. Then restart your agent.

Quick check: does your model support tools?

ollama show qwen3.5:9b | grep -i tool

Swap in your own model name. If "tools" prints under Capabilities, the model supports tool calling. If nothing prints, it does not. To check before you pull, look for the "tools" tag on the model's page, or browse every tool-capable model at ollama.com/search?c=tools.

Likely cause

Cause 1: the model's Ollama build has no tool-calling template, so Ollama refuses any request that includes tools. That covers older and specialised models such as llama3, gemma3, dolphin3, phi4 and vision models like llava, even when the underlying weights can follow instructions. Cause 2: even a tool-capable model fails silently if your baseUrl ends in /v1, because the /v1 streaming path drops tool-call chunks.

The fix

  1. 1 Switch to a tool-capable model: qwen3.5:9b on a 16GB machine, qwen3.8:27b with 24GB or more, or gemma4:12b, hermes3:8b, llama3.1:8b or mistral:7b.
  2. 2 Pull it with Ollama and confirm the tools capability with ollama show.
  3. 3 Make sure your Ollama baseUrl has no /v1 suffix (use the native http://127.0.0.1:11434).
  4. 4 Point your app at the new model name (see the per-app fixes below) and restart it.
ollama pull qwen3.5:9b

Does your model support tools?

Models that support tools include qwen3.8, qwen3.5, gemma4, hermes3, llama3.1 and mistral. Models that don't include llama3, gemma3, gemma2, dolphin3, phi4 and llava. Find the model name from your error below.

ModelSupports tools?Why / fix
llama3:latest, llama3:8bNoNo tool template. Use llama3.1:8b, the direct upgrade.
llama3.1:8bYesWorks out of the box.
llama3.2:3bYesWorks. Small, so tool calls are less reliable than 8B+.
llama3.3:70bYesWorks. llama3.3 only ships as 70b, there is no 8b.
gemma3:1b, gemma3:4bNoVision only, no tool template. Use gemma4:e4b.
gemma3:12b, gemma3:27bNoSame. Use gemma4:12b, or gemma4:31b for the larger size.
gemma4 (e2b, e4b, 12b, 26b, 31b)YesWorks, plus image and audio input.
gemma2:2b, gemma2:9b, gemma2:27bNoNo tool template. Use gemma4:e4b or gemma4:12b.
dolphin3:latest, dolphin3:8bNoNo tool template in the Ollama build. Use hermes3:8b or llama3.1:8b.
dolphin-llama3:latestNoSame. Use hermes3:8b.
dolphin-mistral:latestNoSame. Use mistral:7b.
phi4:latest, phi4:14bNoNo tool template. Use phi4-mini or qwen3.5:9b.
phi4-miniYesWorks. Note phi4-mini-reasoning does not.
phi3:miniNoNo tool template. Use phi4-mini.
llava:7b, llava:latestNoVision only. For vision plus tools, use qwen3-vl:8b or gemma4.
moondream:latestNoVision only. Same swap as llava.
qwen2.5vl:3b, qwen2.5vl:7bNoVision only. Use qwen3-vl:4b or qwen3-vl:8b, which add tools.
qwen2.5 (all sizes, incl. 3b)YesWorks. Only the qwen2.5vl vision variant lacks tools.
tinyllama:latestNoNo tool template, and too small for agents. Use qwen3.5:4b or llama3.2:3b.
codestral:latestNoCode completion model, no tool template. Use qwen3-coder:30b.
deepseek-coder:6.7bNoNo tool template. Use qwen3.5:9b, or qwen3-coder:30b with 24GB+.
llama2:latest, llama2-uncensored:7bNoLegacy, no tool template. Use llama3.1:8b.
ornith-1.5:35bNoThe Ollama library build is tagged vision only. Use ornith:35b, which has tools.
hermes3:8bYesWorks, trained specifically for function calling.
qwen3.5:9bYesWorks. The comfortable pick for a 16GB machine.
qwen3.8:27bYesWorks. Best local model for agents, plan on 24GB+.
qwen3-coder:30bYesWorks. Coding plus tools.
mistral:7bYesWorks.

Checked against each model's capability tags on ollama.com in September 2026. Tags change as models are updated, so confirm locally with ollama show.

Cause 3: your custom Modelfile dropped the tool template

Still getting the error on a model from the "Yes" list? If you built a custom variant with ollama create (to raise the context window or set a system prompt), check its template. Ollama only enables tools when the template references .Tools. Importing a raw GGUF, or writing your own TEMPLATE line, can leave that block out, so the custom model loses tools even though the base model has them.

# 1. Check the custom model's template for a .Tools block
ollama show mymodel --template | grep -i tools

# 2. If nothing prints, start from the base model's full Modelfile
ollama show qwen3.5:9b --modelfile > Modelfile

# 3. Edit only the PARAMETER / SYSTEM lines you need, e.g.
#    PARAMETER num_ctx 32768

# 4. Recreate the model
ollama create mymodel -f Modelfile

Copy the template from the same model family you are customising. Templates are model-specific, so a template from a different model will produce broken tool calls.

Fix for your specific app

The error always comes from Ollama, but where you change the model depends on which app sent the request.

OpenClaw
Set a tool-capable model as your primary in the gateway config, or switch in chat with /model, then restart the gateway.
primary: "ollama/qwen3.5:9b"
Hermes Agent
Set the default model, or run hermes model to pick one interactively.
hermes config set model.default qwen3.5:9b
Open WebUI
Pick a tool-capable model in the model selector at the top of the chat. To change the default for everyone, use Admin Panel → Settings → Models.
n8n
Open the Ollama Chat Model sub-node attached to your AI Agent node and change the Model field to one from the "Yes" rows above.
LangChain / LlamaIndex
Change the model argument where you construct the client, then bind your tools as before.
llm = ChatOllama(model="qwen3.5:9b")
Any other app
Find where the model name is configured and swap it for a model from the "Yes" rows above.
Full guideFix: OpenClaw "Model Does Not Support Tools"

Hit a different error?

Paste any agent error and get the cause and fix in seconds.

Open the decoder

Frequently asked questions

How do I check if an Ollama model supports tools?

Run ollama show followed by the model name and look for "tools" under Capabilities, for example ollama show qwen3.5:9b | grep -i tool. Before pulling, check for the "tools" tag on the model's ollama.com page, or browse ollama.com/search?c=tools for every tool-capable model.

Is this a bug in Ollama, OpenClaw or my model?

Neither is broken. Ollama checks whether the model's template supports tool calls and refuses the request if it doesn't. Switching to a tool-capable model fixes it.

I switched to a tool-capable model and still get the error. Why?

Usually one of two things. Your app is still sending the old model name (restart it after changing config), or you are running a custom model built with ollama create whose template has no .Tools block. Rebuild it from the base model's Modelfile, as shown in Cause 3.

Tools fail silently with no error at all. Why?

Your baseUrl probably ends in /v1. Ollama's /v1 streaming path drops tool-call delta chunks, so even a tool-capable model fails. Use the native http://127.0.0.1:11434 instead.

Which local model is best for tool calling?

qwen3.8:27b if you have 24GB or more of VRAM, qwen3.5:9b on a 16GB machine, and gemma4:12b if you also need image input. hermes3:8b and llama3.1:8b are reliable smaller fallbacks.

Stop firefighting agent errors

Decoding errors one at a time is the manual version of what BetterClaw automates. Run your agents on a no-code AI agent platform with managed models, retries and config validation built in.

Free plan available · Pro $49/mo · BYOK · 7-day money-back guarantee