Skip to main content
Glama

toggl_clear_cache

Clear cached Toggl Track data to ensure reports and timers reflect current information. Use this tool to refresh time tracking data when encountering outdated or inconsistent results.

Instructions

Clear all cached data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for 'toggl_clear_cache' tool. Clears the cache via CacheManager.clearCache(), resets the cacheWarmed flag, and returns a JSON success message.
    case 'toggl_clear_cache': { cache.clearCache(); cacheWarmed = false; return { content: [{ type: 'text', text: JSON.stringify({ success: true, message: 'Cache cleared successfully' }) }] }; }
  • src/index.ts:374-382 (registration)
    Registers the 'toggl_clear_cache' tool in the tools array used for tool listing (ListToolsRequestSchema). Includes name, description, and empty input schema.
    { name: 'toggl_clear_cache', description: 'Clear all cached data', inputSchema: { type: 'object', properties: {}, required: [] }, }
  • CacheManager.clearCache() method implementation that clears all internal cache Maps (workspaces, projects, etc.) and resets performance statistics.
    clearCache(): void { this.workspaces.clear(); this.projects.clear(); this.clients.clear(); this.tasks.clear(); this.users.clear(); this.tags.clear(); this.stats = { hits: 0, misses: 0, lastReset: new Date() }; }

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/verygoodplugins/mcp-toggl'

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