[GH-ISSUE #6945] [Issue]: Function Calling tools are not exposed or handled in Roleplay #3893

Closed
opened 2026-10-21 06:08:30 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6945

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Roleplay, adding a tool such as roll_dice under Function Calling does not appear to make it available to the model or let Marinara Engine receive its call. The same tool works when configured under Agents > Commands.

Expected behavior

When Function Calling is enabled and a function is added, the tool should be made available to the model and valid tool calls should be received by Marinara Engine.

Actual behavior

With only Function Calling enabled, roll_dice is not provided in the prompt, and Marinara Engine does not receive the call even when the model is forced to output the expected format.

Steps to reproduce

  1. In Roleplay, add roll_dice under Agents > Commands, enable the Commands toggle, and confirm the tool call is accepted by Marinara Engine.
  2. Disable Commands, enable Function Calling, and add roll_dice under Add Function.
  3. Attempt to invoke roll_dice; observe that it is not provided in the prompt and that Marinara Engine does not receive a forced tool call.

Environment

  • Marinara Engine version: 2.4.6 (build 2.4.6+12a0acd5b782, commit 12a0acd5b7)
  • Install type: Not provided
  • OS + version: Windows 10.0
  • Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0)

Logs, screenshots, or video

An image is attached showing the tool-call format. The reporter notes it uses </tool_call> rather than <|tool_call>.

Additional context

Active connection: KoboldCPP (Gemma Custom); provider: custom. The reporter says the issue may affect custom agents or other modes, but this is unconfirmed. Agent version was not provided.

Discord thread: Redundant Tool Call Options Bug Custom Agent Tools
Discord thread link: https://discord.com/channels/1417099416812392641/1555238394421059644
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-10-01T15:22:08.162Z] Mazu: In Roleplay (and perhaps other modes), there are two tool-calling options:  

1) Agents > Commands (Enable Toggle) > roll_dice (for example)
2) Function Calling (Enable Toggle) > Add Function > roll_dice (for example)

#1 is enabled as above, roll_dice is provided in the prompt, and tool calling is accepted by ME. 
If only #2 is enabled, roll_dice isn't provided in the prompt, and even if you force the LLM to output the correct format (pictured), ME doesn't receive it. 
-# Note: Pictured, the format is in </tool_call> instead of <|tool_call> format. I did a lot of provider config testing, and the result seemed the same. But maybe more testing is needed.

Basically, #2 is pointless. Because of this, if a custom agent (or any agent?) is set up similarly to use a tool call such as roll_dice, they don't see it as an option and can't use it.

If #1 is enabled, and #2 is disabled. 

` ` `
Marinara Engine diagnostics
Version: 2.4.6
Build: 2.4.6+12a0acd5b782
Commit: 12a0acd5b782
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) 
Active connection: KoboldCPP (Gemma Custom)
Connection provider: custom
` ` `

-# Moved this from #»🆘-questions-and-help

[attached image 1: https://cdn.discordapp.com/attachments/1555238394421059644/1555238394622255297/image.png?backend=b2&ex=6abfcc20&is=6abe7aa0&hm=8d2d21e90e14f27dd82a9b90fa2f8dcb767b87065684a133189fd702505844c3&]
[Discord message: https://discord.com/channels/1417099416812392641/1555238394421059644/1555238394421059644]

[2026-10-01T15:22:09.328Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1555238394421059644/1555238399311351979]

[2026-10-01T19:14:14.934Z] Marinara: Hm, they should work.
[Discord message: https://discord.com/channels/1417099416812392641/1555238394421059644/1555296807536558281]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6945 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Roleplay, adding a tool such as `roll_dice` under Function Calling does not appear to make it available to the model or let Marinara Engine receive its call. The same tool works when configured under Agents > Commands. ## Expected behavior When Function Calling is enabled and a function is added, the tool should be made available to the model and valid tool calls should be received by Marinara Engine. ## Actual behavior With only Function Calling enabled, `roll_dice` is not provided in the prompt, and Marinara Engine does not receive the call even when the model is forced to output the expected format. ## Steps to reproduce 1. In Roleplay, add `roll_dice` under Agents > Commands, enable the Commands toggle, and confirm the tool call is accepted by Marinara Engine. 2. Disable Commands, enable Function Calling, and add `roll_dice` under Add Function. 3. Attempt to invoke `roll_dice`; observe that it is not provided in the prompt and that Marinara Engine does not receive a forced tool call. ## Environment - Marinara Engine version: 2.4.6 (build 2.4.6+12a0acd5b782, commit 12a0acd5b782) - Install type: Not provided - OS + version: Windows 10.0 - Browser or app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) ## Logs, screenshots, or video An image is attached showing the tool-call format. The reporter notes it uses `</tool_call>` rather than `<|tool_call>`. ## Additional context Active connection: KoboldCPP (Gemma Custom); provider: custom. The reporter says the issue may affect custom agents or other modes, but this is unconfirmed. Agent version was not provided. Discord thread: Redundant Tool Call Options Bug Custom Agent Tools Discord thread link: https://discord.com/channels/1417099416812392641/1555238394421059644 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-10-01T15:22:08.162Z] Mazu: In Roleplay (and perhaps other modes), there are two tool-calling options: 1) Agents > Commands (Enable Toggle) > roll_dice (for example) 2) Function Calling (Enable Toggle) > Add Function > roll_dice (for example) #1 is enabled as above, roll_dice is provided in the prompt, and tool calling is accepted by ME. If only #2 is enabled, roll_dice isn't provided in the prompt, and even if you force the LLM to output the correct format (pictured), ME doesn't receive it. -# Note: Pictured, the format is in </tool_call> instead of <|tool_call> format. I did a lot of provider config testing, and the result seemed the same. But maybe more testing is needed. Basically, #2 is pointless. Because of this, if a custom agent (or any agent?) is set up similarly to use a tool call such as roll_dice, they don't see it as an option and can't use it. If #1 is enabled, and #2 is disabled. ` ` ` Marinara Engine diagnostics Version: 2.4.6 Build: 2.4.6+12a0acd5b782 Commit: 12a0acd5b782 Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:156.0) Active connection: KoboldCPP (Gemma Custom) Connection provider: custom ` ` ` -# Moved this from #»🆘-questions-and-help [attached image 1: https://cdn.discordapp.com/attachments/1555238394421059644/1555238394622255297/image.png?backend=b2&ex=6abfcc20&is=6abe7aa0&hm=8d2d21e90e14f27dd82a9b90fa2f8dcb767b87065684a133189fd702505844c3&] [Discord message: https://discord.com/channels/1417099416812392641/1555238394421059644/1555238394421059644] [2026-10-01T15:22:09.328Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1555238394421059644/1555238399311351979] [2026-10-01T19:14:14.934Z] Marinara: Hm, they should work. [Discord message: https://discord.com/channels/1417099416812392641/1555238394421059644/1555296807536558281] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:08:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3893
No description provided.