[GH-ISSUE #13328] Ministral Tool calling doesn't work if more than 2 tools attached #34563

Closed
opened 2026-04-22 18:15:17 -05:00 by GiteaMirror · 10 comments
Owner

Originally created by @ALIENvsROBOT on GitHub (Dec 4, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/13328

What is the issue?

I increased context length to 10000 when I increased Ministral doesn't actually call any tools it quits silently. But It does generate some output before calling the tools. then it quits with empty text.

Relevant log output

OS

Docker

GPU

Nvidia

CPU

No response

Ollama version

0.13.1

Originally created by @ALIENvsROBOT on GitHub (Dec 4, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/13328 ### What is the issue? I increased context length to 10000 when I increased Ministral doesn't actually call any tools it quits silently. But It does generate some output before calling the tools. then it quits with empty text. ### Relevant log output ### OS Docker ### GPU Nvidia ### CPU _No response_ ### Ollama version 0.13.1
GiteaMirror added the bug label 2026-04-22 18:15:17 -05:00
Author
Owner

@rick-github commented on GitHub (Dec 4, 2025):

Which client? What prompt? What tool? What size/quant of ministral? What output?

<!-- gh-comment-id:3612557988 --> @rick-github commented on GitHub (Dec 4, 2025): Which client? What prompt? What tool? What size/quant of ministral? What output?
Author
Owner

@ALIENvsROBOT commented on GitHub (Dec 4, 2025):

ministral-3:14b-instruct-2512-fp16, used in n8n with input prompt : whats the date now ?? . It called 2 tools and when I increase the context length its doesn't call any tool. output : {} in th end

<!-- gh-comment-id:3612719345 --> @ALIENvsROBOT commented on GitHub (Dec 4, 2025): ministral-3:14b-instruct-2512-fp16, used in n8n with input prompt : whats the date now ?? . It called 2 tools and when I increase the context length its doesn't call any tool. output : {} in th end
Author
Owner

@rick-github commented on GitHub (Dec 4, 2025):

$ ./ollama-run.py ministral-3:14b-instruct-2512-fp16 whats the date now --tool get_datetime --context 10000
calling get_datetime({'timezone_name': ''})
Today's date is **Thursday, December 4, 2025**. The current time is **16:20** (4:20 PM).

Server log may aid in debugging.

<!-- gh-comment-id:3612773721 --> @rick-github commented on GitHub (Dec 4, 2025): ```console $ ./ollama-run.py ministral-3:14b-instruct-2512-fp16 whats the date now --tool get_datetime --context 10000 calling get_datetime({'timezone_name': ''}) Today's date is **Thursday, December 4, 2025**. The current time is **16:20** (4:20 PM). ``` [Server log](https://docs.ollama.com/troubleshooting) may aid in debugging.
Author
Owner

@ALIENvsROBOT commented on GitHub (Dec 4, 2025):

Ahhh seems like I have some issue in my side.

<!-- gh-comment-id:3613019361 --> @ALIENvsROBOT commented on GitHub (Dec 4, 2025): Ahhh seems like I have some issue in my side.
Author
Owner

@ALIENvsROBOT commented on GitHub (Dec 4, 2025):

Can anyone confirm that ministral can call multiple tools ??? it works when I ask to execute something but when I ask LLM to execute 2 or more tools its failing.

<!-- gh-comment-id:3613261788 --> @ALIENvsROBOT commented on GitHub (Dec 4, 2025): Can anyone confirm that ministral can call multiple tools ??? it works when I ask to execute something but when I ask LLM to execute 2 or more tools its failing.
Author
Owner

@rick-github commented on GitHub (Dec 4, 2025):

$ ./ollama-run.py ministral-3:14b-instruct-2512-fp16 --tool power,get_datetime --context 10000
ministral-3:14b-instruct-2512-fp16 >>> What is 2.3 ^ 5.6 and 5.6 ^ 2.3? What is the time? What is the time in America?
calling power({'x': 2.3, 'y': 5.6})
calling power({'x': 5.6, 'y': 2.3})
calling get_datetime({'timezone_name': ''})
calling get_datetime({'timezone_name': 'America/New_York'})
Here are the results you requested:

1. **Calculations**:
   - \( 2.3^{5.6} \approx 106.09 \)
   - \( 5.6^{2.3} \approx 52.58 \)

2. **Current time (UTC+0, e.g., Paris)**:
   - December 4, 2025, at **18:17** (6:17 PM).

3. **Time in America (Eastern Time, New York)**:
   - December 4, 2025, at **12:17 PM EST** (UTC-5).
ministral-3:14b-instruct-2512-fp16 >>> /dump
[
    {
        "role": "user",
        "content": "What is 2.3 ^ 5.6 and 5.6 ^ 2.3? What is the time? What is the time in America?"
    },
    {
        "role": "assistant",
        "tool_calls": [
            "function=Function(name='power', arguments={'x': 2.3, 'y': 5.6})",
            "function=Function(name='power', arguments={'x': 5.6, 'y': 2.3})",
            "function=Function(name='get_datetime', arguments={'timezone_name': ''})",
            "function=Function(name='get_datetime', arguments={'timezone_name': 'America/New_York'})"
        ]
    },
    {
        "role": "tool",
        "content": "106.0903498817264"
    },
    {
        "role": "tool",
        "content": "52.581438372010965"
    },
    {
        "role": "tool",
        "content": "{\"fulldate\": \"Thursday, December 04, 2025 18:17 \", \"date\": \"Thursday, December 04, 2025\", \"time\": \"18:17\"}"
    },
    {
        "role": "tool",
        "content": "{\"fulldate\": \"Thursday, December 04, 2025 12:17 EST\", \"date\": \"Thursday, December 04, 2025\", \"time\": \"12:17\"}"
    },
    {
        "role": "assistant",
        "content": "Here are the results you requested:\n\n1. **Calculations**:\n   - \\( 2.3^{5.6} \\approx 106.09 \\)\n   - \\( 5.6^{2.3} \\approx 52.58 \\)\n\n2. **Current time (UTC+0, e.g., Paris)**:\n   - December 4, 2025, at **18:17** (6:17 PM).\n\n3. **Time in America (Eastern Time, New York)**:\n   - December 4, 2025, at **12:17 PM EST** (UTC-5)."
    }
]
<!-- gh-comment-id:3613366588 --> @rick-github commented on GitHub (Dec 4, 2025): ```console $ ./ollama-run.py ministral-3:14b-instruct-2512-fp16 --tool power,get_datetime --context 10000 ministral-3:14b-instruct-2512-fp16 >>> What is 2.3 ^ 5.6 and 5.6 ^ 2.3? What is the time? What is the time in America? calling power({'x': 2.3, 'y': 5.6}) calling power({'x': 5.6, 'y': 2.3}) calling get_datetime({'timezone_name': ''}) calling get_datetime({'timezone_name': 'America/New_York'}) Here are the results you requested: 1. **Calculations**: - \( 2.3^{5.6} \approx 106.09 \) - \( 5.6^{2.3} \approx 52.58 \) 2. **Current time (UTC+0, e.g., Paris)**: - December 4, 2025, at **18:17** (6:17 PM). 3. **Time in America (Eastern Time, New York)**: - December 4, 2025, at **12:17 PM EST** (UTC-5). ministral-3:14b-instruct-2512-fp16 >>> /dump [ { "role": "user", "content": "What is 2.3 ^ 5.6 and 5.6 ^ 2.3? What is the time? What is the time in America?" }, { "role": "assistant", "tool_calls": [ "function=Function(name='power', arguments={'x': 2.3, 'y': 5.6})", "function=Function(name='power', arguments={'x': 5.6, 'y': 2.3})", "function=Function(name='get_datetime', arguments={'timezone_name': ''})", "function=Function(name='get_datetime', arguments={'timezone_name': 'America/New_York'})" ] }, { "role": "tool", "content": "106.0903498817264" }, { "role": "tool", "content": "52.581438372010965" }, { "role": "tool", "content": "{\"fulldate\": \"Thursday, December 04, 2025 18:17 \", \"date\": \"Thursday, December 04, 2025\", \"time\": \"18:17\"}" }, { "role": "tool", "content": "{\"fulldate\": \"Thursday, December 04, 2025 12:17 EST\", \"date\": \"Thursday, December 04, 2025\", \"time\": \"12:17\"}" }, { "role": "assistant", "content": "Here are the results you requested:\n\n1. **Calculations**:\n - \\( 2.3^{5.6} \\approx 106.09 \\)\n - \\( 5.6^{2.3} \\approx 52.58 \\)\n\n2. **Current time (UTC+0, e.g., Paris)**:\n - December 4, 2025, at **18:17** (6:17 PM).\n\n3. **Time in America (Eastern Time, New York)**:\n - December 4, 2025, at **12:17 PM EST** (UTC-5)." } ] ```
Author
Owner

@Bottlecap202 commented on GitHub (Dec 4, 2025):

Awesome, thanks for the update!

On Thu, Dec 4, 2025, 11:40 AM Gowtham Sridhar @.***>
wrote:

Closed #13328 https://github.com/ollama/ollama/issues/13328 as
completed.


Reply to this email directly, view it on GitHub
https://github.com/ollama/ollama/issues/13328#event-21365846122, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BDHQPUMWFR2B6LI6G5JIEL34ABWZRAVCNFSM6AAAAACOBIQDVGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRRGM3DKOBUGYYTEMQ
.
You are receiving this because you commented.Message ID:
@.***>

<!-- gh-comment-id:3613630733 --> @Bottlecap202 commented on GitHub (Dec 4, 2025): Awesome, thanks for the update! On Thu, Dec 4, 2025, 11:40 AM Gowtham Sridhar ***@***.***> wrote: > Closed #13328 <https://github.com/ollama/ollama/issues/13328> as > completed. > > — > Reply to this email directly, view it on GitHub > <https://github.com/ollama/ollama/issues/13328#event-21365846122>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/BDHQPUMWFR2B6LI6G5JIEL34ABWZRAVCNFSM6AAAAACOBIQDVGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRRGM3DKOBUGYYTEMQ> > . > You are receiving this because you commented.Message ID: > ***@***.***> >
Author
Owner

@ALIENvsROBOT commented on GitHub (Dec 5, 2025):

Probably issue is from ollama. !! Please see this issue #13334

<!-- gh-comment-id:3616853090 --> @ALIENvsROBOT commented on GitHub (Dec 5, 2025): Probably issue is from ollama. !! Please see this issue #13334
Author
Owner

@rick-github commented on GitHub (Dec 5, 2025):

#13334 concerns chained tool calling. Your use case is not clear so it may or may not be related.

<!-- gh-comment-id:3616885972 --> @rick-github commented on GitHub (Dec 5, 2025): #13334 concerns chained tool calling. Your use case is not clear so it may or may not be related.
Author
Owner

@ALIENvsROBOT commented on GitHub (Dec 5, 2025):

Its failing because it doesnt call 2nd tool. I confirmed from you post

<!-- gh-comment-id:3616913670 --> @ALIENvsROBOT commented on GitHub (Dec 5, 2025): Its failing because it doesnt call 2nd tool. I confirmed from you post
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#34563