Skip to main content
Glama

Visitor journey

get_visitor
Read-onlyIdempotent

One visitor's profile and full journey: visits, pages, goals, payments, JavaScript errors and session recordings (replays: IDs, visit, length and pages; watch them in the dashboard). 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": {
      "visitor_id": "<visitor_id>"
    },
    "name": "get_visitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
visit_atNoAn ISO time inside one visit, e.g. a funnel person's reachedAt, matchedVisitAt from search_visitors or a payment's time: the answer adds `visit` with that visit's number, start, end, source and landing page. Timeline items carry `visit` numbers, so read just that visit.
visitor_idYesVisitor ID from search_visitors or realtime.
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

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, closed-world behavior, so the safety profile is covered. The description adds genuinely new context: the required visitors scope and what the `replays` entries contain plus where to watch them, which the annotations cannot convey.

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?

A single dense sentence, front-loaded with the resource and its scope, and every clause (data categories, replay fields, scope requirement) carries information. Slightly run-on, but no 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 no output schema, the description sensibly enumerates the returned sections so an agent knows what a call yields. Missing only peripheral details such as result size limits or pagination for very long journeys.

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 description coverage is 100%, so the schema already explains visitor_id, website_id, and the visit_at narrowing behavior in detail. The description adds little parameter meaning beyond that, but nothing is lost; baseline for full coverage would be 3, nudged up because the description signals the volume of data returned per visitor.

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 names a specific resource (one visitor) and enumerates exactly what comes back: profile, visits, pages, goals, payments, JS errors, and replays with their fields. That distinguishes it in substance from narrower siblings like get_visitor_traits, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the content list – you call it once you have a visitor_id from search_visitors or realtime – and the required visitors scope is stated. There is no explicit when-to-use/when-not guidance or pointer to the traits-only sibling for cheaper lookups.

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