Skip to main content
Glama

agent_activity_query

Retrieve and inspect recent agent activity logs for a team, including tool names, durations, and I/O summaries. Filter by agent or team to audit performance and troubleshoot workflows from a compact, timestamped record view.

Instructions

Query Agent activity records for a team.

Returns recent activity log entries sorted by timestamp descending, including tool name, duration_ms, and an I/O summary.

Default response is a COMPACT projection (view="compact" + hint - trimmed, NOT missing fields): input/output summaries are excerpted because the raw output_summary often holds a whole command transcript (a 60-row window measured 43.9k chars, right at the MCP result ceiling). Full records via fields="all". The compact window is capped at 50 rows - narrow with agent_id rather than widening limit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of records to return, default 20 (compact view caps it at 50)
fieldsNo"compact" (default, excerpted I/O) / "all" (full records)compact
team_idNoTeam ID or name (optional, auto-uses active team if empty)
agent_idNoFilter by a specific Agent ID (optional, returns all agents if empty)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses key behaviors: default COMPACT projection is trimmed (NOT missing fields), the I/O summary is excerpted due to result ceiling, windows capped at 50 rows, and sorted by timestamp descending. It adds material behavioral context beyond what the schema conveys.

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 tightly crafted, front-loaded with purpose in the first line, then organized into a compact logical flow: what's returned, default projection behavior, why (with measured evidence), and how to adjust. Every sentence earns its place; no filler or 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 an output schema exists (so return values are documented there), 4 params all with 100% schema coverage, and the description thoroughly explains the projection behavior, row caps, sorting, and the tuning strategy, the description is fully complete for an agent to select and invoke this tool appropriately.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by clarifying the relationship between fields='compact'/'all' and the excerpt semantics, explaining that the compact window caps at 50 rows while the limit parameter defaults to 20, and noting agent_id narrows rather than widens. The interplay between limit and window cap is genuinely useful beyond schema alone.

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 'Query Agent activity records for a team', specifying the verb (Query), resource (Agent activity records), and scope (for a team). It distinctively reports tool name, duration_ms, and I/O summary, differentiating it from siblings like task_run, agent_list, or meeting tools. Well-defined purpose.

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 explicitly documents the default compact projection, explains the reason (43.9k char transcript ceiling), and provides concrete guidance: narrow with agent_id rather than widening limit for narrower windows, and use fields='all' for full records. It tells the agent exactly when and how to adjust parameters for different needs.

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/CronusL-1141/AI-company'

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