Skip to main content
Glama

get_activity_summary

Get a structured summary of your recent activity over the last hours: per-app time-on-task, focus sessions, OCR keyword hits, and idle gaps. Use when you ask 'what have I been doing?'.

Instructions

Summarize the user's activity (apps, focus time, OCR keyword hits) over the last N hours.

Returns a structured summary: per-app time-on-task, top OCR keywords, focus sessions detected, and idle gaps.

USE WHEN: the user asks "what have I been doing" / "where did the day go" / "summarize my last hour." NOT FOR: per-event detail (use get_recent_touch_events) or app-only breakdown (use get_app_usage).

BEHAVIOR: aggregates from buffer + activity log. No side effects. Result accuracy depends on buffer coverage; check get_buffer_status if results look sparse.

PARAMETERS: hours: lookback window. Range 1-24. Default 1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Despite no annotations, the description covers behavior: aggregates from buffer + activity log, no side effects, and accuracy depends on buffer coverage with a suggestion to check get_buffer_status. This provides sufficient transparency.

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 well-structured with a concise summary followed by clearly labeled sections (USE WHEN, NOT FOR, BEHAVIOR, PARAMETERS). Every sentence adds value with no redundancy.

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 the tool has 1 parameter and an output schema, the description explains the return type (structured summary with per-app time, keywords, focus sessions, idle gaps) and dependencies (buffer coverage). It provides everything needed for correct invocation.

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?

The single parameter 'hours' is fully described: lookback window, range 1-24, default 1. Since schema coverage is 0%, the description compensates by adding semantic meaning beyond the schema's type and default.

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 it summarizes user activity over N hours, with specific verb 'summarize' and resource 'activity'. It explicitly distinguishes from sibling tools get_app_usage and get_recent_touch_events, providing purpose differentiation.

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

Usage Guidelines5/5

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

The description includes a 'USE WHEN' block with concrete user queries like 'what have I been doing' and a 'NOT FOR' block with alternatives, giving explicit guidance on appropriate usage.

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/ContextPulse/contextpulse'

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