Skip to main content
Glama
bnookala
by bnookala

reset_cookies

Clear all accumulated cookies to restore the initial state for testing scenarios in the MCP Cookie Server's reinforcement system.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The switch case handler for the 'reset_cookies' tool. It calls cookieStorage.reset() to reset the collected cookies count and returns a confirmation text 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 ListToolsRequestSchema handler. Includes the tool name, description, and empty input schema (no parameters required).
    { name: "reset_cookies", description: "Reset the cookie count back to zero (for testing purposes)", inputSchema: { type: "object", properties: {}, }, },
  • Helper method 'reset()' in the CookieStorage class that resets only the collected cookies counter to zero, preserving the jar cookies. Called by the tool handler.
    reset(): void { this.collectedCookies = 0; // Note: Don't reset jar cookies, only collected cookies }

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