Wakatime Stats
wakatime_statsFetch aggregated WakaTime coding stats for a user over a range ("last_7_days", "last_30_days", "last_6_months", "last_year", "all_time"); returns totals and rankings by language, project, editor, and OS. Keyless for public profiles; pass your OAuth token as _apiKey for private ones.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"range": "last_30_days",
"user_id": "wakatime_user_123"
},
"name": "wakatime_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | Yes | ||
| _apiKey | No | Your WakaTime personal OAuth access token (Bearer). Required for account data (current user, summaries, durations, heartbeats, goals, projects, commits); optional for public profiles and stats. | |
| project | No | ||
| timeout | No | ||
| user_id | Yes | ||
| writes_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||