Skip to main content
Glama

get_focus_stats

Retrieve focus and pomodoro statistics for a specified date range. Choose between daily duration heatmaps or per-tag breakdowns.

Instructions

Get focus/pomodoro statistics for a date range.

[Category: Focus / Pomodoro]  [Auth: V2]
[Related: get_productivity_stats]

Args:
    from_date: Start date YYYYMMDD, e.g. "20260101".
    to_date: End date YYYYMMDD, e.g. "20260306".
    stat_type: "heatmap" (daily durations) or "distribution" (per-tag breakdown).

Returns:
    heatmap: List of {date, duration} entries.
    distribution: {"tagDurations": {"tag_name": seconds, ...}}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_dateYes
to_dateYes
stat_typeNoheatmap
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the two possible output types (heatmap and distribution) with their formats, which adds behavioral transparency. It also mentions auth V2. It doesn't describe side effects or rate limits, but the tool is inherently read-only, making this omission minor.

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 concise: a single sentence introducing purpose, followed by structured Args and Returns sections. Every sentence adds value, and the use of bold headers improves readability without unnecessary length.

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

Completeness5/5

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

Given no output schema, the description provides complete return type structures for both stat_type options. It also includes category, auth requirement, and a related tool. For a simple stats retrieval tool, this covers all necessary context.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must and does compensate fully. It explains from_date and to_date with format examples (YYYYMMDD) and specifies that stat_type accepts 'heatmap' or 'distribution', adding meaning beyond the schema's property names and types.

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

Purpose5/5

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

The description clearly states 'Get focus/pomodoro statistics for a date range.' It specifies the resource (focus/pomodoro statistics) and action (get), and distinguishes from sibling get_productivity_stats by explicitly naming it as a related tool.

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

Usage Guidelines4/5

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

The description provides clear context for when to use the tool (retrieving focus stats for a date range) and mentions a related alternative (get_productivity_stats). However, it does not explicitly state when not to use it or provide exclusion criteria, but the context is sufficient for most use cases.

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/KpihX/tick-mcp'

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