Skip to main content
Glama
bnookala
by bnookala

reset_cookies

Restore the cookie count to zero for testing purposes within the MCP Cookie Server, enabling users to reset the jar-based economy system and evaluate response quality reinforcement mechanisms.

Instructions

Reset the cookie count back to zero (for testing purposes)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'reset_cookies' tool. It calls the reset() method on the cookieStorage instance and returns a confirmation message.
    case "reset_cookies": { cookieStorage.reset(); return { content: [ { type: "text", text: "🔄 Cookie count has been reset to 0. Time to start earning cookies again!", }, ], }; }
  • src/index.ts:177-184 (registration)
    Registration of the 'reset_cookies' tool in the ListTools response, including its name, description, and empty input schema.
    { name: "reset_cookies", description: "Reset the cookie count back to zero (for testing purposes)", inputSchema: { type: "object", properties: {}, }, },
  • The reset() helper method in the CookieStorage class that resets the collected cookies to zero without affecting the jar.
    reset(): void { this.collectedCookies = 0; // Note: Don't reset jar cookies, only collected cookies }

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/bnookala/mcp-cookiejar'

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