Skip to content

Is MAX_TOOL_ITERATIONS = 20 intentionally fixed for self-hosted Agent blocks? #7428

Description

@jason-w

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions