Skip to main content
Glama

List raw events

list_events
Read-onlyIdempotent

Raw pageviews, goal events and engagement pings, newest first, with page, referrer, UTM tags, location and device. Use it to check exactly what was recorded or to export; for totals use get_traffic or get_breakdown. Pass nextCursor back as cursor for the next page. Requires the visitors scope.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD (inclusive).
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
nameNoOnly this goal's events, e.g. signup (implies type event).
typeNoComma list of pageview, event and engagement. Default pageview,event.
limitNoRows to return (1–200).
cursorNonextCursor from the previous answer, for the next page. Keep the other arguments the same.
periodNoPreset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set.
filtersNoUp to six visitor filters, all of which must match. op: is, is_not (exact); contains, not_contains, starts_with, ends_with (literal text, letter case ignored); regex, not_regex (case-insensitive regular expressions up to 200 characters, without lookarounds, backreferences or repeated groups like (a+)+); is_empty, is_not_empty (no values: send []; e.g. utmCampaign is_empty = visitors who never had a campaign); gt, lt and is for visits. dim urlParam also needs key, the URL parameter name (one of the site's kept parameters): {"dim":"urlParam","key":"plan","op":"is","values":["pro"]}. dim prop (event property) needs key, the property name, and optionally goal to look only at that goal's events; values match as text (numbers and true/false too), and a visitor matches with at least one such event: {"dim":"prop","key":"plan","goal":"signup","op":"is","values":["growth"]} (list_event_properties lists names and values). dim trait needs key, a person's identify trait (get_visitor_traits lists them): {"dim":"trait","key":"role","op":"is","values":["founder"]}. Other dimensions take no key or goal. A 400 filter_too_slow means the regex was too slow: simplify it.
user_idNoOnly rows with this user ID.
timezoneNoIANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC.
visitor_idNoOnly this visitor's rows.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered; the description adds ordering semantics (newest first), the pagination contract (nextCursor passed back as cursor), and an authorization requirement ('Requires the visitors scope') that annotations do not express. It stops short of describing the response envelope or default/maximum row counts, which the schema supplies instead.

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?

Four short sentences, front-loaded with what the tool returns, then usage, then pagination, then a permission prerequisite. No sentence restates the title or the schema without adding a fact.

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 12-parameter tool with a complex nested filter object and no output schema, the description compensates by enumerating the row fields and implying a cursor-bearing response object. It leaves the exact response shape implicit, but the schema's 100% coverage and the pagination sentence cover the practical gap.

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 description coverage is 100%, so the schema already documents paging, periods, filters and identifiers in detail; the baseline of 3 applies. The description only reinforces cursor reuse and does not add format or constraint detail beyond what the parameter descriptions state.

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 opening clause names the exact resource (raw pageviews, goal events, engagement pings), the ordering (newest first), and the per-row fields returned (page, referrer, UTM tags, location, device). This is a specific verb-plus-resource statement that an agent can distinguish from get_traffic and get_breakdown without opening any schema.

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?

It gives an explicit positive case ('check exactly what was recorded or to export') and names the alternatives for the aggregate case ('for totals use get_traffic or get_breakdown'). The routing decision between raw rows and totals is fully specified.

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