Skip to main content
Glama

get_task_events

Fetch normalized, paginated events from a task's event log to inspect progress, tool calls, and results; filter by kind and page with sequence cursors.

Instructions

Fetch normalized events from a task's event log.

Args: task_id: Identifier of the task whose events to read. limit: Maximum number of events to return, capped at 200. Default is 50. before_seq: Exclusive upper bound — return events with seq < before_seq (older events). Cannot be used with after_seq. after_seq: Exclusive lower bound — return events with seq > after_seq (newer events). Cannot be used with before_seq. kinds: Optional filter by event kind. Must be a non-empty list of known kinds from task_started, assistant_text, assistant_delta, tool_call, tool_result, user_message, usage, notice, task_finished, undelivered. assistant_delta is excluded by default unless explicitly listed. Pass null to get all kinds except assistant_delta.

Returns events in oldest→newest order within the page, with:

  • events: list of event objects with their seq, kind, and data fields

  • has_more: true if there are more matching events in the requested direction

  • next_before_seq: the seq of the oldest event in this page (for paging older)

  • next_after_seq: the seq of the newest event in this page (for paging newer)

  • skipped_oversized: count of lines > 1 MiB that were skipped (not parsed, not counted as events)

For the complete final summary/report, use get_task_status in compact or full detail; event pages are bounded and are not a lossless final report read.

Each returned event has its long string fields truncated to 2000 chars, lists to 50 items, and dict nesting to depth 4, with "truncated": true added if anything was cut. An event still over 16 KiB after that (a very wide dict) is replaced by a stub carrying only seq, kind, observed_at, truncated: true, oversized: true and its size in bytes. A page stops early once its serialized size would pass 256 KiB (has_more remains true, cursors still valid). A page is never empty while has_more is true.

Default (no before_seq/after_seq): newest page — the most recent events. Both cursors cannot be used at once. kinds=[] or an unknown kind raises INVALID_PARAMS.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "task_id": "<task_id>"
    },
    "name": "get_task_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNo
limitNo
task_idYes
after_seqNo
before_seqNo
recovery_cursorNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: truncation rules (2000 chars, 50 items, depth 4), 16 KiB stub replacement, 256 KiB page cap, skipped_oversized counting, oldest→newest ordering, mutual exclusivity of cursors, and INVALID_PARAMS on empty/unknown kinds. This is unusually rich behavioral disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded and the Args/Returns/Defaults sections are well organized. It is long and somewhat repetitive on return values despite an output schema existing, but most sentences earn their place given the lack of annotations and schema descriptions.

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

Completeness4/5

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

For a six-parameter, zero-annotation tool this is near-complete: paging, filtering, truncation, and error behavior are all covered. The only real shortfall is the undocumented recovery_cursor parameter and some redundant return-value detail that the output schema already provides.

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 0%, so the description must compensate, and it richly documents five of six parameters (task_id, limit cap/default, before_seq, after_seq, kinds with allowed values and assistant_delta default exclusion). However, the recovery_cursor parameter present in the schema is never mentioned, leaving a meaningful gap.

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?

States a specific verb and resource ('Fetch normalized events from a task's event log') and explicitly distinguishes itself from get_task_status for the final summary/report. An agent can tell what this reads without opening the schema.

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?

Clearly routes the agent away from this tool for complete final reports (use get_task_status), and explains the default newest-page behavior plus the when-to-use paging directions via before_seq/after_seq. It lacks an explicit 'use this when you need to page raw events' framing, but the context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.