[GH-ISSUE #4315] [Issue]: roll_dice tool appears unavailable to agents #2336

Closed
opened 2026-10-21 05:47:23 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The roll_dice tool appears to be missing from the accepted tools list for agents, potentially preventing agents from generating random rolls for each prompt.

Expected behavior

Agents should be able to access and invoke the roll_dice tool when configured to provide random rolls with prompts.

Actual behavior

Based on the accepted tools list in the code, roll_dice appears not to be available to agents. It is not confirmed whether this is intentional.

Steps to reproduce

  1. Review the accepted tools list for agents in the code.
  2. Check whether roll_dice is included as an available agent tool.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video provided.

Additional context

The requested use case is an agent that supplies every prompt with a set of random rolls. The user noted that GLM often does not invoke tools.

Discord message: Discord message from Bainshie
Discord message link: https://discord.com/channels/1417099416812392641/1495493775617687775/1532497588794818613
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord message transcript (1 message)
[2026-07-30T21:18:17.597Z] Bainshie: Question: Is it correct that agents don't have access to the roll_dice tool? Wanna create a agent that basically gives every prompt a set of random rolls, because GLM has an annoying habit of not using tools, but if I'm reading the code correctly, that tool's not on the accepted tools list for agents?
[Discord message: https://discord.com/channels/1417099416812392641/1495493775617687775/1532497588794818613]

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 (Jul 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4315 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The `roll_dice` tool appears to be missing from the accepted tools list for agents, potentially preventing agents from generating random rolls for each prompt. ## Expected behavior Agents should be able to access and invoke the `roll_dice` tool when configured to provide random rolls with prompts. ## Actual behavior Based on the accepted tools list in the code, `roll_dice` appears not to be available to agents. It is not confirmed whether this is intentional. ## Steps to reproduce 1. Review the accepted tools list for agents in the code. 2. Check whether `roll_dice` is included as an available agent tool. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video provided. ## Additional context The requested use case is an agent that supplies every prompt with a set of random rolls. The user noted that GLM often does not invoke tools. Discord message: Discord message from Bainshie Discord message link: https://discord.com/channels/1417099416812392641/1495493775617687775/1532497588794818613 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord message transcript (1 message)</summary> ```text [2026-07-30T21:18:17.597Z] Bainshie: Question: Is it correct that agents don't have access to the roll_dice tool? Wanna create a agent that basically gives every prompt a set of random rolls, because GLM has an annoying habit of not using tools, but if I'm reading the code correctly, that tool's not on the accepted tools list for agents? [Discord message: https://discord.com/channels/1417099416812392641/1495493775617687775/1532497588794818613] ``` </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 05:47:23 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 30, 2026):

Claimed by @SpicyMarinara in draft PR #4322. The implementation will expose the existing roll_dice tool through the current agent allowlist without introducing a new tool path.

<!-- gh-comment-id:5137470524 --> @SpicyMarinara commented on GitHub (Jul 30, 2026): Claimed by @SpicyMarinara in draft PR #4322. The implementation will expose the existing roll_dice tool through the current agent allowlist without introducing a new tool path.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

Investigation on current staging confirmed that roll_dice is already selectable for agents, is resolved into the agent tool context, and executes through the shared tool executor. PR #4322 adds an end-to-end regression for that exact path so it cannot silently disappear; no redundant production allowlist was needed.

<!-- gh-comment-id:5137565229 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): Investigation on current staging confirmed that `roll_dice` is already selectable for agents, is resolved into the agent tool context, and executes through the shared tool executor. PR #4322 adds an end-to-end regression for that exact path so it cannot silently disappear; no redundant production allowlist was needed.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

Verified and locked in by #4322, merged into staging as 9bc60818d. Current staging already exposes and executes roll_dice for enabled agents; the new runtime regression protects that path from silently disappearing.

<!-- gh-comment-id:5137764394 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): Verified and locked in by #4322, merged into `staging` as 9bc60818d. Current staging already exposes and executes `roll_dice` for enabled agents; the new runtime regression protects that path from silently disappearing.
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#2336
No description provided.