Skip to main content
Glama

Individual visits

list_visits
Read-onlyIdempotent

Drill below the aggregates: the visits that started in a window, newest first, with where they landed and left, their source, country and device; or, with visit_id, one visit step by step (pages, events, referrer), at any age. For questions like "what did people from X actually do". Pass next_cursor back as cursor for older visits.

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": {
      "site_id": "<site_id>"
    },
    "name": "list_visits"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, inclusive, YYYY-MM-DD; default today
fromNoFirst day, YYYY-MM-DD; overrides period
limitNo
cursorNonext_cursor from a previous list
periodNoWindow ending now; days are whole days in the timezone. Ignored when from is set.30d
filtersNoKeep only matching traffic; values of one dimension are OR-ed, dimensions AND-ed
site_idYessite_id from list_sites; a site name, slug or domain also resolves
timezoneNoIANA zone for day boundaries; default the user's
visit_idNoOne visit, from a previous list
engaged_onlyNoKeep only engaged visits, the ones with something to read

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description still adds useful behavior beyond that: result ordering ('newest first'), the fact that the visit_id mode works 'at any age' outside the window, and the next_cursor pagination loop.

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?

The core purpose and the two modes are front-loaded in the first sentence, and the closing sentence on cursor is actionable. It is dense and slightly run-on with semicolons, but no sentence is redundant filler.

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 10 parameters and no output schema, the description compensates by enumerating the returned fields for both modes ('where they landed and left, their source, country and device' and 'pages, events, referrer'). Filtering and date-window semantics are left to the well-documented schema, which is reasonable at 90% coverage.

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 90%, so the schema already documents nearly every parameter, including cursor ('next_cursor from a previous list') and visit_id ('One visit, from a previous list'). The description largely restates those and only adds the 'at any age' nuance for visit_id, so it does not meaningfully exceed the baseline.

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 uses a specific verb and resource ('the visits that started in a window') and distinguishes two modes: a paginated list and a single-visit drill-down selected by visit_id. It also implicitly contrasts itself with the aggregate tools ('Drill below the aggregates'), though it never names a specific sibling like get_breakdown.

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 gives a concrete use-case framing ('For questions like "what did people from X actually do"') and states the pagination workflow ('Pass next_cursor back as cursor for older visits'), which tells the agent how to continue. It stops short of explicit when-not-to-use guidance or naming an alternative tool for aggregate questions.

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