The Chat Template or a Built-in Parser Decides Whether Ollama Gives You a Tool Call

You pass a tools array to /api/chat, the call fails, and nothing in the response explains why. On ollama 0.20.3 the failure is a bare HTTP 400 whose message is registry.ollama.ai/library/<model>:latest does not support tools, which names the model and points at the wrong layer. On a server old enough to have no tools field in its chat request at all — v0.2.0 and earlier — that JSON key is dropped unread, so the same call returns HTTP 200 with a prose answer and no tool_calls field, and the client reports “the model ignored the schema”. ...

November 2, 2026 · 11 min · baeseokjae