Skip to main content
Glama

reset_thinking

Clear the current thinking session to start fresh, enabling structured sequential problem-solving by resetting reasoning paths for complex analysis.

Instructions

Clear the current thinking session and start fresh

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The complete implementation of the reset_thinking tool, including registration via server.tool and the inline async handler function that resets the thinkingSession state, saves it, and returns a confirmation message.
    server.tool(
      "reset_thinking", 
      "Clear the current thinking session and start fresh",
      {},
      async () => {
        try {
          const previousSteps = thinkingSession.currentSteps.length;
          thinkingSession = {
            currentSteps: [],
            totalSteps: 0,
            isComplete: false
          };
          
          await saveThinkingState();
          
          return {
            content: [{
              type: "text",
              text: `🗑️ **Thinking Reset**\n\nPrevious session cleared (${previousSteps} steps removed).\nReady for fresh sequential thinking.`
            }]
          };
        } catch (error) {
          return {
            content: [{
              type: "text",
              text: `❌ **Error resetting thinking**: ${error instanceof Error ? error.message : String(error)}`
            }]
          };
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/multiluca2020/visum-thinker-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server