ask-mcp-iteration-limit-is-five

IN premise

When `mcp_servers` is non-empty, `ask()` allows up to 5 tool-call iterations before forcing a final LLM response (6 total invocations), compared to the lower limit without MCP servers.

Summary

When MCP servers are configured, the ask function gives the LLM more room to work — up to 5 rounds of tool calls plus a final response, for 6 total LLM invocations. Without MCP servers, the iteration cap is lower. This matters because MCP tools often require multi-step reasoning chains, so the higher limit prevents the system from cutting off the LLM before it finishes using the tools it has available.

Dependents

These beliefs depend on this one:

Details

Sourceentries/2026/05/11/tests-test_ask_mcp.md