Answers for LLM inference engineers

vLLM returns the tool call in content, or tool_calls is empty: what each --tool-call-parser does with the same model output, v0.15 to v0.34, and a script to test your server

For a well-formed call, every tool parser tested returns the right tool_calls in every release from v0.15.1 to v0.34.0 (gemma4 from v0.19.1), streaming included. The failures come from four places, each measured below on vLLM's own parser code: (1) a --tool-call-parser that does not match the model's call format leaves the markup in content, or drops the call so the answer is empty (qwen3_xml reading a JSON call in every release, qwen3_coder from v0.24.0); (2) llama3_json and pythonic only read a call at the start of the output, so any text before it puts the whole call in content; (3) with --reasoning-parser qwen3, a call written inside the thinking block stays in reasoning (fixed for an unclosed block in v0.20, for a closed one in v0.24); (4) a call cut by max_tokens comes back as a complete-looking call with keys missing, and before v0.33.0 with finish_reason: "tool_calls".

Published 2026-11-26 · 10 parsers × 6 model outputs × 20 vLLM releases, non-streaming and streaming (2,352 parser runs) · toolcheck.py · how

From the measurements on this page (parser_results.json). Deep link: ?parser=qwen3_coder&vllm=v0.19.1.

Which symptom do you have?

What the response showsCauseReleasesFix
tool_calls: [], the call markup in content, finish_reason: "stop"The parser does not read the model's format (table), or the model wrote text before a llama3_json/pythonic callAll 20Pick the parser for the model's format; for llama3_json/pythonic, a prompt that makes the call the whole answer
tool_calls: [], content: "", the call in reasoningThe qwen3 reasoning parser kept the call (table)Unclosed block: v0.17.1 to v0.19.1. Call inside a closed block: up to v0.23.0v0.24.0 or later, or turn thinking off for tool turns
tool_calls: [], content empty, no reasoningqwen3_coder/qwen3_xml/glm45 consumed a <tool_call> they cannot read (a JSON call)From v0.24.0 (qwen3_xml: all)--tool-call-parser hermes for models that write JSON inside <tool_call>
A call with keys missing ({"city": "Tokyo"} without days)max_tokens cut the call (table)finish_reason: "tool_calls" up to v0.32.0; "length" from v0.33.0Check finish_reason; raise max_tokens
HTTP 400 "auto" tool choice requires --enable-auto-tool-choice and --tool-call-parser to be setThe server was started without both flagsSame text in all 20vllm serve ... --enable-auto-tool-choice --tool-call-parser <name>

What does each parser return for a well-formed call?

Each parser, in each release, given the same model output in its own family's format (written after the examples in vLLM's tests/tool_parsers/). "ok" means tool_calls hold exactly the calls in the output, with the same arguments, and content holds only the text the model wrote. A cell that is the same in non-streaming and streaming is shown once.

ParserOne callText, then the callTwo callsObject argument, non-ASCIIPlain answer
hermesokokokokok
qwen3_coderokokokokok
qwen3_xmlokokokokok
gemma4v0.15.1 to v0.18.1: no such parser
v0.19.1 to v0.34.0: ok
v0.15.1 to v0.18.1: no such parser
v0.19.1 to v0.34.0: ok
v0.15.1 to v0.18.1: no such parser
v0.19.1 to v0.34.0: ok
v0.15.1 to v0.18.1: no such parser
v0.19.1 to v0.34.0: ok
v0.15.1 to v0.18.1: no such parser
v0.19.1 to v0.34.0: ok
llama3_jsonoknon-stream: v0.15.1 to v0.33.0: call ok, text before it dropped
v0.34.0: call left in content
stream: call left in content
okokok
pythonicokcall left in contentokokok
kimi_k2okokokokok
deepseek_v31okokokokok
glm45okokokokok
minimax_m2okokokokok

The model outputs, one call each:

ParserOutput fed to it
hermes<tool_call>\n{"name": "get_weather", "arguments": {"city": "Tokyo", "days": 3}}\n</tool_call>
qwen3_coder<tool_call>\n<function=get_weather>\n<parameter=city>\nTokyo\n</parameter>\n<parameter=days>\n3\n</parameter>\n</function>\n</tool_call>
qwen3_xml<tool_call>\n<function=get_weather>\n<parameter=city>\nTokyo\n</parameter>\n<parameter=days>\n3\n</parameter>\n</function>\n</tool_call>
gemma4<|tool_call>call:get_weather{city:<|"|>Tokyo<|"|>,days:3}<tool_call|>
llama3_json{"name": "get_weather", "parameters": {"city": "Tokyo", "days": 3}}
pythonic[get_weather(city="Tokyo", days=3)]
kimi_k2<|tool_calls_section_begin|><|tool_call_begin|>functions.get_weather:0<|tool_call_argument_begin|>{"city": "Tokyo", "days": 3}<|tool_call_end|><|tool_calls_section_end|>
deepseek_v31<\uff5ctool\u2581calls\u2581begin\uff5c><\uff5ctool\u2581call\u2581begin\uff5c>get_weather<\uff5ctool\u2581sep\uff5c>{"city": "Tokyo", "days": 3}<\uff5ctool\u2581call\u2581end\uff5c><\uff5ctool\u2581calls\u2581end\uff5c>
glm45<tool_call>get_weather\n<arg_key>city</arg_key>\n<arg_value>Tokyo</arg_value>\n<arg_key>days</arg_key>\n<arg_value>3</arg_value>\n</tool_call>
minimax_m2<minimax:tool_call>\n<invoke name="get_weather">\n<parameter name="city">Tokyo</parameter>\n<parameter name="days">3</parameter>\n</invoke>\n</minimax:tool_call>

Which parser reads which format?

Six parsers that use <tool_call> or plain text, each given the other formats' one-call output (rows: the --tool-call-parser; columns: what the model wrote). "in content": tool_calls empty, the markup in content. "empty": no tool_calls and no content.

Parser \ outputhermesqwen3_coderqwen3_xmlglm45llama3_jsonpythonic
hermesits ownin contentin contentin contentin contentin content
qwen3_coderv0.15.1 to v0.23.0: in content
v0.24.0 to v0.34.0: empty
its ownreads itv0.15.1 to v0.23.0: in content
v0.24.0 to v0.34.0: empty
in contentin content
qwen3_xmlemptyreads itits ownemptyin contentin content
glm45v0.15.1 to v0.23.0: wrong call
v0.24.0 to v0.34.0: empty
v0.15.1 to v0.23.0: wrong call
v0.24.0 to v0.34.0: empty
v0.15.1 to v0.23.0: wrong call
v0.24.0 to v0.34.0: empty
its ownin contentin content
llama3_jsonv0.15.1 to v0.33.0: reads it
v0.34.0: in content
in contentin contentv0.15.1 to v0.33.0: in content
v0.34.0: empty
its ownin content
pythonicin contentin contentin contentin contentin contentits own

Does a call inside the thinking block come out (Qwen3, Qwen3.5)?

The qwen3 reasoning parser of each release, then the tool parser on the content it leaves, as vLLM's chat server chains them (non-streaming). vLLM #39056 reports the "whole call inside a closed block" case on v0.19.0; PR #35687 (in v0.20.0) makes <tool_call> end an unclosed block.

Model outputTool parserResult
<think>...</think> then the callhermesv0.15.1 to v0.34.0: call comes out
<think>...</think> then the callqwen3_coderv0.15.1 to v0.34.0: call comes out
call written before </think>, no </think>hermesv0.15.1 to v0.16.0: call comes out
v0.17.1 to v0.19.1: call stays in reasoning; tool_calls empty
v0.20.2 to v0.34.0: call comes out
call written before </think>, no </think>qwen3_coderv0.15.1 to v0.16.0: call comes out
v0.17.1 to v0.19.1: call stays in reasoning; tool_calls empty
v0.20.2 to v0.34.0: call comes out
whole call inside <think>...</think>hermesv0.15.1 to v0.23.0: call stays in reasoning; tool_calls empty
v0.24.0 to v0.34.0: call comes out
whole call inside <think>...</think>qwen3_coderv0.15.1 to v0.23.0: call stays in reasoning; tool_calls empty
v0.24.0 to v0.34.0: call comes out
<think> in the prompt, output starts with reasoninghermesv0.15.1 to v0.34.0: call comes out
<think> in the prompt, output starts with reasoningqwen3_coderv0.15.1 to v0.34.0: call comes out

What comes back when max_tokens cuts the call?

The one-call output cut at 60% of its length. "cut call returned" shows the call the parser handed back. Before v0.33.0 vLLM sets finish_reason: "tool_calls" whenever the parser returned a call; from v0.33.0 (PR #59324, read from the source) a length stop stays "length".

ParserNon-streamingStreaming (arguments as sent)
hermescall left in content <tool_call>\n{"name": "get_weather", "arguments": {"citv0.15.1 to v0.18.1: cut call returned get_weather('')
v0.19.1 to v0.34.0: cut call returned get_weather('{"cit')
qwen3_codercut call returned get_weather({"city": "Tokyo"})v0.15.1 to v0.23.0: cut call returned get_weather('{"city": "Tokyo"')
v0.24.0 to v0.34.0: cut call returned get_weather('{"city": "Tokyo')
qwen3_xmlv0.15.1 to v0.23.0: cut call returned get_weather('{"city": "Tokyo"')
v0.24.0 to v0.34.0: cut call returned get_weather({"city": "Tokyo"})
v0.15.1 to v0.23.0: cut call returned get_weather('{"city": "Tokyo"')
v0.24.0 to v0.34.0: cut call returned get_weather('{"city": "Tokyo')
gemma4v0.15.1 to v0.18.1: no such parser
v0.19.1 to v0.23.0: call left in content <|tool_call>call:get_weather{city:<|"|>To
v0.24.0 to v0.34.0: cut call returned get_weather({"city": "To"})
v0.15.1 to v0.18.1: no such parser
v0.19.1 to v0.23.0: cut call returned get_weather('{"city": "To')
v0.24.0 to v0.32.0: cut call returned get_weather('{"city": "')
v0.33.0 to v0.34.0: cut call returned get_weather('{"city": "To')
llama3_jsoncall left in content {"name": "get_weather", "parameters": {"cut call returned get_weather('')
pythoniccall left in content [get_weather(city="Tocut call returned get_weather('{"city": "To')
kimi_k2v0.15.1 to v0.24.0: call dropped (empty answer)
v0.25.1 to v0.34.0: cut call returned get_weather('{"c')
cut call returned get_weather('{"c')
deepseek_v31call dropped (empty answer)cut call returned get_weather('{"city": "Tok')
glm45v0.15.1 to v0.23.0: call left in content <tool_call>get_weather\n<arg_key>city</arg_key>\n<arg_value>To
v0.24.0 to v0.34.0: cut call returned get_weather({"city": "Tokyo"})
v0.15.1: call dropped (empty answer)
v0.16.0 to v0.17.1: cut call returned get_weather('{"city":"Tokyo"')
v0.18.1 to v0.23.0: cut call returned get_weather('{"city": "Tokyo"')
v0.24.0 to v0.34.0: cut call returned get_weather('{"city": "Tokyo')
minimax_m2v0.15.1 to v0.23.0: call left in content <minimax:tool_call>\n<invoke name="get_weather">\n<parameter n
v0.24.0 to v0.34.0: cut call returned get_weather({"city": "Tokyo"})
v0.15.1 to v0.17.1: cut call returned get_weather('{"city": "Tokyo"')
v0.18.1 to v0.23.0: call dropped (empty answer)
v0.24.0 to v0.34.0: cut call returned get_weather('{"city": "Tokyo')

How do I test my own server?

toolcheck.py sends five tool requests (auto, required, two calls, an object argument with non-ASCII text, and one cut by max_tokens), each with and without streaming, and labels every answer. It works with any OpenAI-compatible server and needs only Python 3.8+.

python3 toolcheck.py --base-url http://localhost:8000/v1 --model Qwen/Qwen3-8B
python3 toolcheck.py --base-url http://localhost:8000/v1 --model M --extra '{"chat_template_kwargs": {"enable_thinking": false}}'

Labels: ok, markup_in_content, call_in_reasoning, empty, no_call (the model chose not to call), bad_json, schema_mismatch, stream_header (a call's first chunk lacks id or name), stream_differs, finish_reason, http_<status>. The exit code is 1 when an answer points at the server rather than the model. Checked two ways: against a local server that replays what each release's parsers returned above (1,960 of 1,960 labels match this page's verdicts), and against a running llama-server (build 12733) with a small test model.

How was this measured?

The vllm/ source of each of 20 releases (the newest patch of every minor from v0.15.1 to v0.34.0, from vLLM's git tags) was loaded in Python 3.12 without a GPU: torch, the compiled extension and the model and engine code were replaced by stubs, and the tool parsers, reasoning parsers and request models ran as released. Each parser was built as vLLM's chat server builds it (parser(tokenizer, request.tools)) and given the same model outputs through extract_tool_calls and, piece by piece, extract_tool_calls_streaming. The streamed pieces were put back together the way an OpenAI client does.

The tokenizer is a stand-in, as in vLLM's own parser tests: each special token (<tool_call>, <|tool_call>, <think>, ...) is one token, and other text is split into words, spaces and single characters. A real tokenizer cuts text differently, so a streaming result here holds for this split; the non-streaming results do not depend on it. Not covered: mistral (needs the Mistral tokenizer), openai/gpt-oss (Harmony format), and the server's own code around the parser, except the reasoning chain and the finish_reason rule, which were read from each release's source.

Questions

Why does vLLM return the tool call in content with tool_calls empty?

The tool parser did not recognise the model's output. Either --tool-call-parser does not match the model's call format (hermes reads JSON inside <tool_call>, qwen3_coder reads <function=...> inside <tool_call>, gemma4 reads <|tool_call>call:...; a mismatch leaves the markup in content), or the model wrote text before the call and the parser is llama3_json or pythonic, which only read a call at the very start of the output (every release from v0.15.1 to v0.34.0). The server still answers 200 with finish_reason stop.

Why is tool_calls empty and content empty, with the call in reasoning (Qwen3, Qwen3.5)?

The qwen3 reasoning parser kept the call in reasoning, and the tool parser only reads content. Measured on vLLM's own parser code: a call written before </think> (no </think> at all) stays in reasoning in v0.17.1 to v0.19.1 and comes out from v0.20.2 (PR #35687, in v0.20.0); a whole call inside a closed <think>...</think> block stays in reasoning in every release up to v0.23.0 and comes out from v0.24.0. On an older release, turn thinking off for tool turns (chat_template_kwargs enable_thinking false) or upgrade.

Why is the answer completely empty (no content, no tool_calls, no reasoning)?

qwen3_xml in every release, and qwen3_coder and glm45 from v0.24.0, consume a <tool_call> section they cannot read: a JSON call inside <tool_call> (the hermes format, written by Qwen2.5, Qwen3 and many fine-tunes) disappears instead of landing in content. Use --tool-call-parser hermes for those models; qwen3_coder is for models that write <function=name><parameter=...>.

Why does a tool call come back with arguments missing?

max_tokens cut the model's output inside the call. In v0.34.0, qwen3_coder, qwen3_xml, glm45, minimax_m2 and gemma4 return the cut call as a complete call with valid JSON arguments (the keys after the cut are simply missing). Before v0.33.0 vLLM also reports finish_reason "tool_calls" for it; from v0.33.0 (PR #59324) finish_reason stays "length". Check finish_reason before running a call, and raise max_tokens.

What does "auto" tool choice requires --enable-auto-tool-choice and --tool-call-parser to be set mean?

vLLM answers HTTP 400 with that text when a request has tools and tool_choice auto (the default when tools are sent) but the server was started without both flags. The same text is in every release from v0.15.1 to v0.34.0. Start vllm serve with --enable-auto-tool-choice --tool-call-parser <name>.

How do I test my own server?

Run toolcheck.py (Python 3.8+, no packages): python3 toolcheck.py --base-url http://localhost:8000/v1 --model <name>. It sends five tool requests with and without streaming and labels each answer (ok, call left in content, call in reasoning, empty, invalid JSON, schema mismatch, missing stream header, finish_reason). Run it more than once: the model decides whether to call.

Sources

The results as JSON: parser_results.json, licensed CC BY 4.0. The scripts that produced them are in this site's repository under .github/tc-parsers/.

Related: "vllm serve: error: unrecognized arguments" · what each engine returns when the prompt is too long · a model that does not stop generating · speculative decoding changes the output.