[GH-ISSUE #5958] Enable Tool Use silently does nothing on Claude and Grok subscription connections #3300

Closed
opened 2026-10-21 06:01:48 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @kolacheee on GitHub (Sep 8, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5958

Originally assigned to: @SpicyMarinara on GitHub.

Found while verifying #5957. Small, self-contained, and it affects anyone on a subscription connection who turns tools on.

"Enable Tool Use" works normally on Claude and Grok subscription connections — it just accomplishes nothing, and nothing says so.

Neither subscription provider overrides chatComplete, so both inherit the base implementation, which returns toolCalls: [] unconditionally (services/llm/base-provider.ts:776-814) regardless of what options.tools held. Neither class reads options.tools or options.toolChoice anywhere — zero matches in both files. The Claude subscription provider hardcodes tools: [] into its SDK call (claude-subscription.provider.ts:408) with a class comment saying built-in tools are deliberately disabled because Marinara drives its own tool layer; the Grok CLI provider builds a flat text transcript with no tool schema at all.

Downstream, the tool-round loop's guard enableChatTools && provider.chatComplete is true — the method exists, it just can't produce tool calls — so the loop runs, if (!result.toolCalls.length) break fires after round 0 every time, and the model narrates as though tools were never configured.

The user-visible result is a silent no-op: no error, no warning, no "tools aren't available on this connection" notice. The toggle in FunctionCallingSection.tsx has no provider awareness at all (no reference to claude_subscription / grok_subscription / any supports-tools flag), and neither does the server-side resolution. A player enables tools, sees the settings copy promising real dice, and gets nothing — with no way to discover why.

(The Grok connection editor does carry a disclaimer, but it's about the Grok CLI's own internal tools/web-search/memory being disabled — a different concern from Marinara's function-calling schema being ignored.)

Fix shape: a supports-tools capability on the provider (or a name list, matching how other provider quirks are handled), surfaced in the tool settings so the toggle either explains that this connection ignores tools or is visibly unavailable. Wherever the copy currently promises tool-driven behavior in Game Mode, it should say the same thing.

Note for prioritization: the dice tag path (#5923) and the GM verb channel (#5798) are parsed out of narration text and need no tools API, so those keep working for these users. It's specifically the tools-API features that go quiet.

Originally created by @kolacheee on GitHub (Sep 8, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5958 Originally assigned to: @SpicyMarinara on GitHub. Found while verifying #5957. Small, self-contained, and it affects anyone on a subscription connection who turns tools on. **"Enable Tool Use" works normally on Claude and Grok subscription connections — it just accomplishes nothing, and nothing says so.** Neither subscription provider overrides `chatComplete`, so both inherit the base implementation, which returns `toolCalls: []` unconditionally (`services/llm/base-provider.ts:776-814`) regardless of what `options.tools` held. Neither class reads `options.tools` or `options.toolChoice` anywhere — zero matches in both files. The Claude subscription provider hardcodes `tools: []` into its SDK call (`claude-subscription.provider.ts:408`) with a class comment saying built-in tools are deliberately disabled because Marinara drives its own tool layer; the Grok CLI provider builds a flat text transcript with no tool schema at all. Downstream, the tool-round loop's guard `enableChatTools && provider.chatComplete` is **true** — the method exists, it just can't produce tool calls — so the loop runs, `if (!result.toolCalls.length) break` fires after round 0 every time, and the model narrates as though tools were never configured. **The user-visible result is a silent no-op:** no error, no warning, no "tools aren't available on this connection" notice. The toggle in `FunctionCallingSection.tsx` has no provider awareness at all (no reference to `claude_subscription` / `grok_subscription` / any supports-tools flag), and neither does the server-side resolution. A player enables tools, sees the settings copy promising real dice, and gets nothing — with no way to discover why. (The Grok connection editor does carry a disclaimer, but it's about the Grok CLI's *own* internal tools/web-search/memory being disabled — a different concern from Marinara's function-calling schema being ignored.) **Fix shape:** a supports-tools capability on the provider (or a name list, matching how other provider quirks are handled), surfaced in the tool settings so the toggle either explains that this connection ignores tools or is visibly unavailable. Wherever the copy currently promises tool-driven behavior in Game Mode, it should say the same thing. Note for prioritization: the dice tag path (#5923) and the GM verb channel (#5798) are parsed out of narration text and need no tools API, so those keep working for these users. It's specifically the tools-API features that go quiet.
Author
Owner

@kolacheee commented on GitHub (Sep 8, 2026):

One more cost worth noting here, found while verifying #5957: it isn't only that nothing happens — the engine still pays for the attempt. Full tool definitions are serialized into the request for these connections and sent, where they're ignored, so the user spends prompt budget on a schema the provider was never going to read. A supportsToolCalls capability on the provider (zero hits for any such flag on staging) would fix both halves at once: skip attaching the definitions, and give the settings UI something to explain itself with.

<!-- gh-comment-id:5585018239 --> @kolacheee commented on GitHub (Sep 8, 2026): One more cost worth noting here, found while verifying #5957: it isn't only that nothing happens — **the engine still pays for the attempt.** Full tool definitions are serialized into the request for these connections and sent, where they're ignored, so the user spends prompt budget on a schema the provider was never going to read. A `supportsToolCalls` capability on the provider (zero hits for any such flag on staging) would fix both halves at once: skip attaching the definitions, and give the settings UI something to explain itself with.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 9, 2026):

@SpicyMarinara owns this sweep implementation in draft #5982. Native-tool availability will be explicit in settings and server resolution, including subscription connections; existing text-command and dice-tag behavior stays available.

<!-- gh-comment-id:5594006082 --> @SpicyMarinara commented on GitHub (Sep 9, 2026): @SpicyMarinara owns this sweep implementation in draft #5982. Native-tool availability will be explicit in settings and server resolution, including subscription connections; existing text-command and dice-tag behavior stays available.
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#3300
No description provided.