Title: Is MAX_TOOL_ITERATIONS = 20 intentionally fixed for self-hosted Agent blocks? · Issue #7428 · simstudioai/sim · GitHub
Open Graph Title: Is MAX_TOOL_ITERATIONS = 20 intentionally fixed for self-hosted Agent blocks? · Issue #7428 · simstudioai/sim
X Title: Is MAX_TOOL_ITERATIONS = 20 intentionally fixed for self-hosted Agent blocks? · Issue #7428 · simstudioai/sim
Description: 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 re...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/simstudioai/sim/issues/7428
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Is MAX_TOOL_ITERATIONS = 20 intentionally fixed for self-hosted Agent blocks?","articleBody":"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.\n\nI found MAX_TOOL_ITERATIONS = 20 in apps/sim/providers/index.ts, described as the maximum number of iterations for tool-call loops.\n\nIs there a supported way to increase this limit on self-hosted deployments without maintaining a custom build? ","author":{"url":"https://github.com/jason-w","@type":"Person","name":"jason-w"},"datePublished":"2026-09-03T02:21:23Z","url":"https://github.com/simstudioai/sim/issues/7428"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c6fef485-00ab-c2c9-4b7d-0ae91161620d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB4C:E886B:55F04F:7B3491:6AFB3DF7 |
| html-safe-nonce | ad3a43aa66e08633b596324b88a92d6308ac9bf40f804a55256581fe38da23bf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjRDOkU4ODZCOjU1RjA0Rjo3QjM0OTE6NkFGQjNERjciLCJ2aXNpdG9yX2lkIjoiMjU5MjQwMjg1MDAxNDMyNTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5a7a73417d9e71c8493068d784981c3003d7d1ff02ab850de884c0f066491970 |
| hovercard-subject-tag | issue:5331417674 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/simstudioai/sim/7428/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d699e365ee3bb7832d04dff89c6fdc0a07bbf0398dd00a4c387ecfc97ce92ed3/simstudioai/sim/issues/7428 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d699e365ee3bb7832d04dff89c6fdc0a07bbf0398dd00a4c387ecfc97ce92ed3/simstudioai/sim/issues/7428 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jason-w |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2169b0dfbef67ed6b128074a5ed45bb7d5d1859783b10178b09a7765ad5f3693 |
| turbo-cache-control | no-preview |
| go-import | github.com/simstudioai/sim git https://github.com/simstudioai/sim.git |
| octolytics-dimension-user_id | 199344406 |
| octolytics-dimension-user_login | simstudioai |
| octolytics-dimension-repository_id | 912559512 |
| octolytics-dimension-repository_nwo | simstudioai/sim |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 912559512 |
| octolytics-dimension-repository_network_root_nwo | simstudioai/sim |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b4fc8df5ef1c6757e733a23e6b81b6725021823 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width