Skip to main content
Glama

List visitors

list_people
Read-onlyIdempotent

Visitors seen in the range; sortable by name, visits, timestamps, recorded total time, revenue and profile fields: name (or a friendly name like amber-fox-4821), identity, first source, place, visits, total_time_seconds and revenue. Visits, time and revenue are all-time totals. filter=customers for payers, identified for signed-in users; q searches email or name, or matches an exact visitor id or user id (in ChatGPT, q matches only an exact visitor id or user id; sorting by person, email, user_id or location and the city and region filters are not available). filters narrows to people with at least one visit in the range that matches every filter (as on the dashboard).

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_people"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNo
toNoLast day, inclusive (YYYY-MM-DD).
fromNoFirst day (YYYY-MM-DD, site time zone). Use with to instead of period.
siteNoSite domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site.
sortNo
limitNoDefault 20.
cursorNoUse nextCursor from the preceding response with the same range, filters and sort.
filterNo
offsetNo
periodNoTime range. Default 30d. today, yesterday, 24h, 7d, 30d, 90d, 12m, wtd, mtd, ytd, all.
filtersNoOnly visits that match every filter. A value is "is": {"country": "US"}; a list is "is any of": {"country": ["PT", "ES"]}; an object picks the operator: {"page": {"contains": "/blog"}}, {"channel": {"is_not": ["Direct", "Email"]}}, {"page": {"not_contains": "/admin"}}. Operators: is, is_not, contains, not_contains (case-insensitive). "visitor" is "new" or "returning". "ad" is an ad campaign as "google:<campaign id>" or "meta:<campaign id>" (the visits that the Ads page counts for it). Use "(none)" for empty values; countries take ISO codes or English names.
sort_dirNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / filters / propertyNames / enum
      Previous value: -[
      -  "channel",
      -  "referrer",
      -  "campaign",
      -  "keyword",
      -  "source",
      -  "hostname",
      -  "entry",
      -  "exit",
      -  "country",
      -  "region",
      -  "city",
      -  "browser",
      -  "os",
      -  "device",
      -  "page",
      -  "goal",
      -  "visitor",
      -  "ad"
      -]New value: +[
      +  "channel",
      +  "referrer",
      +  "campaign",
      +  "keyword",
      +  "source",
      +  "hostname",
      +  "entry",
      +  "exit",
      +  "country",
      +  "region",
      +  "city",
      +  "browser",
      +  "os",
      +  "device",
      +  "page",
      +  "goal",
      +  "visitor",
      +  "ad",
      +  "assistant"
      +]
  2. Changed3 schema fields changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Use nextCursor from the preceding response with the same range, filters and sort.",
      +  "maxLength": 3000,
      +  "type": "string"
      +}
    • changedInput schema / properties / sort / enum
      Previous value: -[
      -  "recent",
      -  "revenue"
      -]New value: +[
      +  "recent",
      +  "person",
      +  "location",
      +  "source",
      +  "visits",
      +  "first_seen",
      +  "last_seen",
      +  "revenue",
      +  "total_time",
      +  "email",
      +  "user_id",
      +  "device",
      +  "browser",
      +  "os"
      +]
    • addedInput schema / properties / sort_dir
      Added value: +{
      +  "enum": [
      +    "asc",
      +    "desc"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds real behavioral context: visits, time and revenue are all-time totals rather than range-limited, and filters require at least one in-range matching visit. It also discloses environment-specific limitations (in ChatGPT, q matches only exact ids and several sorts/filters are unavailable), which is exactly the kind of constraint an agent cannot get from annotations.

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?

Information-dense with little filler, but it is delivered as a few very long run-on sentences with mid-sentence parentheticals (the ChatGPT caveat, the 'friendly name like amber-fox-4821' aside) that interrupt the main claim. Front-loading the scope is good; the structure makes key constraints easy to miss.

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 nested filters object and no output schema, the description covers the ambiguity that matters most: what the totals mean, how filters combine, and what q matches. The remaining gaps (pagination via cursor/offset, default range behavior beyond the schema's 'Default 30d') are minor given a fairly descriptive schema.

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 58%, and the description compensates for the highest-risk params: q matching rules, filter enum meanings, and the all-time-totals semantics of the returned metrics. However, cursor, limit, offset, period, site and from/to semantics are left entirely to the schema, so the description adds meaning beyond the schema only partially.

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?

States a specific resource and scope: 'Visitors seen in the range', then enumerates the sortable/returnable profile fields (name, identity, first source, place, visits, total_time_seconds, revenue). An agent knows exactly what it retrieves. It does not distinguish itself from siblings such as get_breakdown or get_revenue, which keeps it from a 5.

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?

Gives concrete conditional guidance: filter=customers for payers, identified for signed-in users, q for email/name search or exact id matching, and filters for narrowing to people with at least one matching visit 'as on the dashboard'. It tells the agent how to steer behavior but never says when to prefer this tool over a sibling list/report tool.

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