detect_loop
Detect if the agent is stuck in a loop using various strategies.
How to use it
detect_loop is exposed by the MCP Dual Cycle Reasoner MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the detect_loop tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL MCP DUAL CYCLE REASONER LISTINGOther tools in MCP Dual Cycle Reasoner (8)
Configure loop detection parameters and domain-specific progress indicators.
Get the current monitoring status and statistics.
Main monitoring function—processes cognitive trace updates from the agent.
Reset the dual-cycle engine state.
Retrieve similar cases using advanced semantic matching and filtering.
Initialize metacognitive monitoring of an agent's cognitive process.
Stop metacognitive monitoring and get a session summary.
Store a case for future case-based reasoning with enhanced metadata and quality scoring.