Skip to main content
Glama
8bitgentleman

ActivityWatch MCP Server

activitywatch_run_query

Query ActivityWatch time tracking data to analyze application usage, browsing history, and productivity patterns using custom time periods.

Instructions

Run a query in ActivityWatch's query language

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
timeperiodsYesTime periods to query. Format: ['2024-10-28/2024-10-29'] where dates are in ISO format and joined with a slash
queryYesMUST BE A SINGLE STRING containing all query statements separated by semicolons. DO NOT split into multiple strings.
nameNoOptional name for the query (used for caching)
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 but only states the basic action. It doesn't mention whether this is a read-only operation, if it requires specific permissions, potential side effects, rate limits, or what the output looks like (especially critical since there's no output schema). This leaves significant gaps for a query execution tool.

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 states the core purpose without any wasted words. It's appropriately sized for a tool with well-documented parameters and gets straight to the point, making it easy for an agent to parse quickly.

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

Completeness2/5

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

For a query execution tool with no annotations and no output schema, the description is insufficient. It doesn't explain what kind of results to expect, error conditions, or behavioral constraints. Given the complexity of running queries and the lack of structured output documentation, more context about the operation's nature and results is needed.

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

Parameters3/5

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

The description adds no parameter information beyond what's already in the schema (which has 100% coverage). While the schema thoroughly documents all three parameters with formats, constraints, and examples, the description doesn't provide additional context about parameter relationships or usage semantics, meeting the baseline for high schema coverage.

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 ('Run a query') and the resource ('in ActivityWatch's query language'), which is specific and unambiguous. However, it doesn't explicitly differentiate this tool from its sibling 'activitywatch_query_examples', which might cause confusion about when to use each.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'activitywatch_get_events' or 'activitywatch_query_examples'. There's no mention of prerequisites, appropriate contexts, or exclusions, leaving the agent to infer usage from the tool name alone.

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/8bitgentleman/activitywatch-mcp-server'

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