Skip to main content
Glama

Get a run's events

get_run_events
Read-onlyIdempotent

Read a run's recorded events, oldest first, to see what it did and why it failed: worker_started, tool_start and tool_end (each tool the agent called, its arguments and result), text_delta (the agent's text), usage (each model call: authorized_micros when it is authorized, then actual_micros once the provider reports its cost; a call the provider refused is reconciled to 0), model_call_failed and model_call_refused (with the reason), web_request, web_search and web_refused, output_file (a file the run saved), worker_error (why the worker failed), status, and microvm_* (the sandbox starting and stopping). Long strings are cut to max_string_bytes (default 2000). Page with after: while has_more is true, call again with after set to next_after. Filter with types, for example ["worker_error", "model_call_failed", "usage"]. A zero-data-retention run keeps its events only briefly after it finishes.

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": {
      "id": "<id>"
    },
    "name": "get_run_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe run's id, as returned by create_run.
afterNoReturn events after this event id: next_after from the previous page (default 0, from the start).
limitNoAt most this many events (default 50).
typesNoOnly events of these types.
max_string_bytesNoCut every longer string in an event to this many bytes (default 2000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing return semantics: ordering (oldest first), string truncation, usage reconciliation to 0 for provider-refused calls, and the retention caveat that zero-data-retention runs keep events only briefly. It doesn't mention authorization requirements or rate limits, so not a 5.

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

Conciseness3/5

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

The opening is well front-loaded, but the long mid-sentence inventory of event types is a dense run-on that is hard to scan; it earns its place as documentation, but could have been structured as a list rather than one comma-chained clause.

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?

With no output schema, the description carries the burden of describing return content, and it does — event types, ordering, truncation, paging. It's complete enough to call correctly; the main residual gap is that has_more/next_after fields (part of the response) are only implicitly introduced.

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?

Schema coverage is 100%, so the schema already documents all five parameters; the description's paging recipe and default value (max_string_bytes default 2000) largely restate what the schema says. The filtering example adds a little practical meaning but not much beyond the structured fields.

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?

Specific verb+resource: 'Read a run's recorded events, oldest first, to see what it did and why it failed' — plus it enumerates the event vocabulary, so an agent can tell it apart from get_run (which returns run metadata).

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?

Explicitly tells the agent how to page (while has_more, call again with after=next_after) and how to filter with types alongside a concrete example. It doesn't name a sibling alternative such as get_run for status-only queries, so usage differentiation is somewhat implied rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources