Skip to main content
Glama

Visit timeline

visit_timeline
Read-onlyIdempotent

Fetch a newest-first event timeline for a single visit or a user's visits, showing location and visitor type, 20 per page; use either session_id or user_id.

Instructions

Every event of one visit, or every visit of one identified person (the anonymous part of the visit they identified in included), newest first, 20 visits a page; each visit names its country, region and approximate city (null unless the project keeps the city). It takes exactly one of session_id (a visit id from visits or funnel_subjects) or user_id. Each visit also has its visitor kind: first_visit, first_this_month, first_today or again_today, null when the project does not count unique visitors or the visit carried none; the first three count as a unique visitor of their day, first_visit and first_this_month as one of their month, and again_today in neither. Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

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": {
      "project_id": "<project_id>"
    },
    "name": "visit_timeline"
  }
}

Input Schema

NameRequiredDescriptionDefault
beforeNoThe next_before of the previous page.
user_idNoThe id the site passed to identify().
project_idYesThe project id, from list_projects.
session_idNoA visit id, from visits or funnel_subjects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the read-only, idempotent, non-destructive annotations, the description discloses ordering, page size, city nullability, visitor-kind semantics, timezone behavior, and that reported text is visitor-supplied. This gives the agent substantial context for interpreting the response.

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 core purpose is front-loaded, but the first paragraph is a dense semicolon-heavy run-on. Much of the return-value detail earns its place, yet the visitor-kind counting rules and timezone explanation make it harder to scan than necessary.

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 does a good job explaining key response semantics such as location fields, visitor kinds, timezone offsets, and pagination. It is still slightly incomplete around the exact event shape and how the before cursor should be used across modes.

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 the baseline is 3, but the description adds meaningful constraint by stating exactly one of session_id or user_id must be used and by sourcing those IDs. It does not add much about before or project_id beyond what the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific resource and two clear modes: every event for one visit, or every visit for one identified person. It is distinguishable from general visit lists, but it does not explicitly route against siblings such as visits or funnel_subjects.

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?

It clearly explains the exactly-one-of constraint between session_id and user_id and identifies where each ID comes from. It lacks explicit when-not guidance or direct comparison with alternative sibling tools, so it stops short of full routing guidance.

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