Skip to main content
Glama
arjshiv

Local Utilities MCP Server

by arjshiv

clear_thoughts

Remove all recorded thoughts to declutter and reset your mental workspace, accessible via the Local Utilities MCP Server interface.

Instructions

Clear all recorded thoughts

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'clear_thoughts' tool. It counts the current thoughts, clears the thoughts array, and returns a confirmation message indicating how many thoughts were cleared.
    async () => { const count = thoughts.length; thoughts = []; // Reset the array return { content: [{ type: "text", text: `Cleared ${count} recorded thoughts.` }] }; }
  • The registration of the 'clear_thoughts' tool using server.tool(), including its description and inline handler.
    // Register clear_thoughts command server.tool( "clear_thoughts", "Clear all recorded thoughts", async () => { const count = thoughts.length; thoughts = []; // Reset the array return { content: [{ type: "text", text: `Cleared ${count} recorded thoughts.` }] }; } );
  • A helper method in ThinkToolInternalLogic class that clears the thoughts array, though not directly used by the tool handler.
    clearThoughts(): void { this.thoughts = []; }

Other Tools

Related Tools

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/arjshiv/localutils-mcp-server'

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