Skip to main content
Glama

Who took a path

get_path_visitors
Read-onlyIdempotent

Visitors who took a path from get_paths (pages, exact true for a whole path) or passed through pages at a step (at), newest first, with visitAt to pass to get_visitor as visit_at. Requires the visitors scope.

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": {
      "pages": "<pages>"
    },
    "name": "get_path_visitors"
  }
}

Input Schema

NameRequiredDescriptionDefault
atNo0-based step where pages start (0 with exact).
toNoLast day, YYYY-MM-DD (inclusive).
whoNoEveryone (default), only people who paid, or only those who didn't.
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
moreNoWith exact: the row's more flag (the path went on past its last step).
exactNotrue: the whole path is exactly pages (a get_paths row).
groupNopage (default) or section: /blog/how-to counts as /blog/*.
limitNoRows to return (1–100).
pagesYesPages as get_paths shows them, e.g. ["/", "/pricing"]. A Sankey node is one page, a link two.
stepsNoSteps per path (2–7, default 5).
fieldsNoOptional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer.
offsetNo
periodNoPreset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set.
compareNoWhat change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all.
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.
end_pageNoPaths end at the first view of this page, e.g. /checkout (visitors who never reached it are left out).
timezoneNoIANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC.
start_pageNoPaths start at the visitor's first view of this page, e.g. /pricing (visitors who never viewed it are left out).
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.2/5.0
Behavior3/5

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

Annotations already declare a safe read operation (readOnly, idempotent, non-destructive), so the bar is lower. The description still adds real context beyond them: result ordering is newest first and the call requires the visitors scope, an authorization constraint not present in the annotations. It does not discuss result size or pagination behavior despite limit/offset existing.

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?

A single front-loaded sentence with no filler; every clause (path source, exact vs at, ordering, chaining, scope) carries information an agent needs. Nothing is repeated from titles or annotations.

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 19-parameter tool with no output schema, the description covers purpose, input provenance, step semantics, ordering, auth scope, and the one output field used downstream (visitAt). Remaining gaps such as response shape and pagination are modest given the density of schema documentation.

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 95%, so the schema carries the per-parameter burden and baseline is 3. The description still adds cross-parameter meaning the schema only hints at: 'pages' comes from get_paths row format, 'exact' means the whole path rather than a prefix, and 'at' selects the step where pages start, which is the key semantic distinction an agent must get right.

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?

States a specific resource (visitors) with a precise scope: those who took a path, either an exact whole path from get_paths or a step-wise passage via 'at'. It also names the sibling it derives input from (get_paths) and the sibling it feeds (get_visitor), so an agent can place it in the workflow 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete usage context: use pages as get_paths shows them, set exact true for a whole path from get_paths, or use 'at' for a step, and hand the returned visitAt to get_visitor as visit_at. The visitors scope prerequisite is stated. It stops short of explicit when-not guidance against alternatives like search_visitors or get_funnel_people.

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