We’re currently evaluating Sim using a self-hosted instance and have an Agent block using MCP tools. The Agent consistently stops after exactly 20 completed tool calls, even when the model’s final finishReason is tool_calls and it has requested another tool call.
I found MAX_TOOL_ITERATIONS = 20 in apps/sim/providers/index.ts, described as the maximum number of iterations for tool-call loops.
Is there a supported way to increase this limit on self-hosted deployments without maintaining a custom build?
We’re currently evaluating Sim using a self-hosted instance and have an Agent block using MCP tools. The Agent consistently stops after exactly 20 completed tool calls, even when the model’s final finishReason is tool_calls and it has requested another tool call.
I found MAX_TOOL_ITERATIONS = 20 in apps/sim/providers/index.ts, described as the maximum number of iterations for tool-call loops.
Is there a supported way to increase this limit on self-hosted deployments without maintaining a custom build?