OwlMetry
MCP

Events

Query, retrieve, and investigate analytics events via MCP tools.

Events are the raw log records emitted by SDKs — every Owl.info(), Owl.error(), Owl.track(), etc. Use these tools to search events, inspect individual records, and investigate context around notable events.

query-events

Query analytics events with flexible filters. Defaults to the last 24 hours.

ParameterTypeRequiredDescription
project_idUUIDNoFilter by project
app_idUUIDNoFilter by app (takes precedence over project_id)
levelstringNoinfo, debug, warn, or error
user_idstringNoFilter by user ID
session_idUUIDNoFilter by session ID
environmentstringNoios, ipados, macos, android, web, or backend
screen_namestringNoFilter by screen name
sincestringNoStart time — relative (1h, 7d) or ISO 8601
untilstringNoEnd time — relative or ISO 8601
cursorstringNoPagination cursor from previous response
limitnumberNoMax results (default 50, max 1000)
data_modestringNoproduction (default), development, or all

Returns { events: [...], cursor, has_more }. Pass cursor to the next call for pagination.

Time formats

Relative — a number followed by a unit suffix:

SuffixUnit
sSeconds
mMinutes
hHours
dDays
wWeeks

Absolute — ISO 8601 timestamps: 2025-01-15T10:00:00Z

get-event

Get a single event by ID with full details including custom attributes, device info, and experiment assignments.

ParameterTypeRequiredDescription
event_idUUIDYesThe event ID

investigate-event

Retrieve a specific event and its surrounding context events from the same app and user within a time window. Use this to understand what happened before and after a notable event — like a flight recorder.

ParameterTypeRequiredDescription
event_idUUIDYesThe target event ID
window_minutesnumberNoTime window in minutes around the event (default: 5)
data_modestringNoproduction (default), development, or all — set to match the target event's mode

Returns { target, context, total_context } where target is the specified event and context is the list of surrounding events from the same app and user.

This is particularly useful for investigating errors — find the error event, then investigate to see what the user did in the minutes leading up to it.

Ready to get started?

Connect your agent via MCP or CLI and start tracking.