Skip to main content
Glama

toggl_get_current_entry

Retrieve the currently active time entry from Toggl Track to monitor ongoing work or manage timers in automation workflows.

Instructions

Get the currently running time entry, if any

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for the 'toggl_get_current_entry' tool call. Fetches current entry via API, hydrates with cache, handles no-entry case, returns formatted JSON.
    case 'toggl_get_current_entry': {
      const entry = await api.getCurrentTimeEntry();
      
      if (!entry) {
        return {
          content: [{
            type: 'text',
            text: JSON.stringify({ 
              running: false,
              message: 'No timer currently running' 
            })
          }]
        };
      }
      
      await ensureCache();
      const hydrated = await cache.hydrateTimeEntries([entry]);
      
      return {
        content: [{
          type: 'text',
          text: JSON.stringify({ 
            running: true,
            entry: hydrated[0] 
          }, null, 2)
        }]
      };
    }
  • Schema definition for the tool, including name, description, and empty input schema (no parameters required).
    {
      name: 'toggl_get_current_entry',
      description: 'Get the currently running time entry, if any',
      inputSchema: {
        type: 'object',
        properties: {},
        required: []
      },
    },
  • Core API method implementation that performs the HTTP GET request to Toggl's /me/time_entries/current endpoint to retrieve the running time entry.
    async getCurrentTimeEntry(): Promise<TimeEntry | null> {
      const result = await this.request<TimeEntry | null>('GET', '/me/time_entries/current');
      return result;
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool retrieves a current entry 'if any', hinting at a possible null response, but doesn't cover other aspects like authentication needs, rate limits, error conditions, or what data is returned. For a read operation with zero annotation coverage, this leaves significant gaps in understanding how the tool behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's function without unnecessary words. It is front-loaded with the core purpose ('Get the currently running time entry') and adds a clarifying condition ('if any'). Every part of the sentence contributes value, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimally adequate. It covers the basic purpose but lacks details on return format, error handling, or integration with siblings like 'toggl_stop_timer'. For a tool that interacts with time-tracking data, more context on what 'currently running' entails would be helpful, though the low complexity keeps it from being severely incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has 0 parameters, and schema description coverage is 100%, so no parameter documentation is needed. The description doesn't add parameter details, which is appropriate here. A baseline of 4 is given since the schema fully covers the absence of parameters, and the description doesn't need to compensate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and resource ('currently running time entry'), making the purpose understandable. It distinguishes from siblings like 'toggl_get_time_entries' by specifying 'current' vs. general entries, though it doesn't explicitly name alternatives. The description avoids tautology by not just repeating the tool name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when checking for an active timer, but provides no explicit guidance on when to use this tool versus alternatives like 'toggl_get_time_entries' or 'toggl_stop_timer'. It mentions 'if any' to indicate it may return nothing, which gives some context, but lacks clear when/when-not instructions or named alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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

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