> ## Documentation Index > Fetch the complete documentation index at: https://openrouter.ai/docs/llms.txt > Use this file to discover all available pages before exploring further. # StopServerToolsWhenCondition A single condition that, when met, halts the server-tool agent loop. ## Supported Types ### `components.StopServerToolsWhenFinishReasonIs` ```python theme={null} value: components.StopServerToolsWhenFinishReasonIs = /* values here */ ``` ### `components.StopServerToolsWhenHasToolCall` ```python theme={null} value: components.StopServerToolsWhenHasToolCall = /* values here */ ``` ### `components.StopServerToolsWhenMaxCost` ```python theme={null} value: components.StopServerToolsWhenMaxCost = /* values here */ ``` ### `components.StopServerToolsWhenMaxTokensUsed` ```python theme={null} value: components.StopServerToolsWhenMaxTokensUsed = /* values here */ ``` ### `components.StopServerToolsWhenStepCountIs` ```python theme={null} value: components.StopServerToolsWhenStepCountIs = /* values here */ ```