toggl automation
npx skills add https://github.com/composiohq/awesome-claude-skills --skill Toggl Automation
Skill 文档
Toggl Automation
Automate your Toggl Track time tracking operations directly from Claude Code. Log time, manage projects and clients, organize with tags, and control workspaces — all without leaving your terminal.
Toolkit docs: composio.dev/toolkits/toggl
Setup
- Add the Rube MCP server to your Claude Code config with URL:
https://rube.app/mcp - When prompted, authenticate your Toggl Track account through the connection link provided
- Start automating your time tracking workflows with natural language
Core Workflows
1. Create and Stop Time Entries
Log time with project, task, and tag associations, or start/stop timers.
Tools: TOGGL_CREATE_TIME_ENTRY, TOGGL_PATCH_STOP_TIME_ENTRY
Start a time entry in workspace 123456 for project 78910 tagged "meeting" and "design" with description "Design review session"
Key parameters for TOGGL_CREATE_TIME_ENTRY:
workspace_id(required) — target workspacecreated_with(required) — client application name (e.g.,"api_client")start(required) — ISO 8601 timestampstop— ISO 8601 end time; omit to leave the entry runningduration— duration in seconds; omit for running entriesproject_id— associate with a projecttask_id— associate with a tasktags— array of tag name strings (not IDs)description— description of the workbillable— billable status
Key parameters for TOGGL_PATCH_STOP_TIME_ENTRY:
workspace_id(required) andtime_entry_id(required)
2. Manage Projects
Create new projects and list existing ones with client details and pagination.
Tools: TOGGL_CREATE_PROJECT, TOGGL_GET_PROJECTS, TOGGL_GET_PROJECT_DETAILS
Create a private billable project called "Q1 Marketing Campaign" in workspace 123456 for client 78910
Key parameters for TOGGL_CREATE_PROJECT:
workspace_id(required) andname(required)client_id,billable,is_private,active,colorestimated_hours,rate,fixed_fee,currency(premium features)
Key parameters for TOGGL_GET_PROJECTS:
workspace_id(required)page/page_size(1-200) for paginationsince/until— Unix timestamps for modification filtering (last 3 months only)clients: trueto include full client details
3. Manage Clients
Create and list clients within a workspace.
Tools: TOGGL_CREATE_CLIENT, TOGGL_GET_LIST_CLIENTS
List all active clients in workspace 123456, then create a new client called "Acme Corp"
TOGGL_CREATE_CLIENTrequiresworkspace_idandname; acceptsnotes,external_referenceTOGGL_GET_LIST_CLIENTSrequiresworkspace_id; supportsstatus("active","archived","both") andname(case-insensitive search)
4. Tags and Workspace Preferences
Retrieve tags for categorization and check workspace settings.
Tools: TOGGL_GET_TAGS, TOGGL_GET_WORKSPACE_PREFERENCES
Show me all tags in workspace 123456 and the workspace preferences
TOGGL_GET_TAGSrequiresworkspace_id; returns tag IDs and namesTOGGL_GET_WORKSPACE_PREFERENCESrequiresworkspace_id; returns pricing plan and display settings
5. Workspace Discovery
List all workspaces the authenticated user belongs to.
Tool: TOGGL_GET_USER_WORKSPACES
What Toggl workspaces do I have access to?
- No parameters required
- Returns all workspaces with IDs, names, and metadata
- Use this first to discover workspace IDs for other operations
6. User Project Visibility
List projects visible to the authenticated user.
Tool: TOGGL_GET_USER_PROJECTS
Show me all projects I can see across my workspaces
- Returns projects the authenticated user has access to
- Use alongside
TOGGL_GET_PROJECTSfor workspace-scoped views
Known Pitfalls
- Tags use names, not IDs:
TOGGL_CREATE_TIME_ENTRYaccepts tag names as strings in thetagsarray, unlike many APIs that use IDs. UseTOGGL_GET_TAGSto verify available tag names. created_withis required: Every time entry must includecreated_with(e.g.,"api_client"). Missing this field causes silent failures.- Duration is in seconds: The
durationparameter on time entries is in seconds, not hours. 1 hour = 3600 seconds. sincetimestamp restriction: Thesincefilter onTOGGL_GET_PROJECTSonly allows timestamps within the last 3 months. Older queries will be rejected.- Premium features gated: Custom colors, templates, fixed fees, and hourly rates on projects require a premium Toggl plan. Non-premium accounts will get errors when using these fields.
- Workspace ID required everywhere: Nearly all Toggl tools require
workspace_id. Always callTOGGL_GET_USER_WORKSPACESfirst to resolve it.
Quick Reference
| Tool Slug | Description |
|---|---|
TOGGL_CREATE_TIME_ENTRY |
Create a time entry or running timer (requires workspace_id, created_with, start) |
TOGGL_PATCH_STOP_TIME_ENTRY |
Stop a running time entry (requires workspace_id, time_entry_id) |
TOGGL_GET_PROJECTS |
List projects in a workspace with pagination |
TOGGL_GET_PROJECT_DETAILS |
Get details for a specific project |
TOGGL_CREATE_PROJECT |
Create a new project (requires workspace_id, name) |
TOGGL_GET_LIST_CLIENTS |
List clients with status/name filters (requires workspace_id) |
TOGGL_CREATE_CLIENT |
Create a new client (requires workspace_id, name) |
TOGGL_GET_TAGS |
List all tags in a workspace (requires workspace_id) |
TOGGL_GET_WORKSPACE_PREFERENCES |
Get workspace settings (requires workspace_id) |
TOGGL_GET_USER_WORKSPACES |
List all workspaces for the authenticated user |
TOGGL_GET_USER_PROJECTS |
List projects visible to the authenticated user |
Powered by Composio