Skip to main content
Glama
flowsery

flowsery

Official

Get Visitor Profile

get_visitor
Read-onlyIdempotent

Retrieve analytics for one specific website visitor—location, device, acquisition, pageviews, goals, revenue, and activity timeline—without exposing names, emails, IPs, or billing details.

Instructions

Get the analytics for one visitor to the user's own website: country and city, device and browser, acquisition source, activity (visit and pageview counts, visited pages, completed goals), revenue totals, whether the visitor is identified, and a timeline of pageviews, goals, and purchase amounts, newest first. Names, emails, user IDs, IP addresses, and card or billing details are never returned. Call it only when the user asks about a specific visitor, and share only what answers the question. profile is null for anonymous visitors; each list is capped at the 100 most recent items. Use the aggregate get_* tools for questions about many visitors. visitorId is the visitor record ID from get_realtime_map or the dashboard visitor view, not the _fs_vid cookie value; an unknown id, or one from another website, fails with 'Visitor not found'. Requires websiteId or domain with a workspace token.

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": {
      "visitorId": "<visitorId>"
    },
    "name": "get_visitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoWebsite domain from list_websites (e.g. "example.com"). Alternative to websiteId with a workspace token.
visitorIdYesVisitor record ID from get_realtime_map or the dashboard visitor view (not the _fs_vid cookie value)
websiteIdNoWebsite ID from list_websites. Required with a workspace token unless domain is given; ignored with a website key.
workspaceIdNoWorkspace to act in: an id from list_workspaces. Omit to use the default workspace. Use the same workspaceId for every call about the same workspace, since ids from one workspace do not exist in another

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.5.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / visitorId / description
      Previous value: -"Visitor ID, the _fs_vid cookie value set by the tracking script (also shown in the dashboard visitor view)"New value: +"Visitor record ID from get_realtime_map or the dashboard visitor view (not the _fs_vid cookie value)"
    • addedInput schema / properties / workspaceId
      Added value: +{
      +  "description": "Workspace to act in: an id from list_workspaces. Omit to use the default workspace. Use the same workspaceId for every call about the same workspace, since ids from one workspace do not exist in another",
      +  "type": "string"
      +}
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedOutput schema / properties / result / additionalProperties
      Added value: +true
    • removedOutput schema / properties / result / description
      Removed value: -"Object with status and data: visitorId, identity, source, sourceIconUrl, activity, revenue, profile (null when anonymous), and activityTimeline sorted newest first."
    • addedOutput schema / properties / result / properties
      Added value: +{
      +  "data": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "activity": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "completedCustomGoals": {
      +            "items": {
      +              "additionalProperties": true,
      +              "properties": {
      +                "name": {
      +                  "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +                },
      +                "timestamp": {
      +                  "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "currentUrl": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +          },
      +          "firstVisitAt": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +          },
      +          "lastVisitAt": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +          },
      +          "pageViewCount": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/viewport/properties/width"
      +          },
      +          "visitCount": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/viewport/properties/width"
      +          },
      +          "visitedPages": {
      +            "items": {
      +              "additionalProperties": true,
      +              "properties": {
      +                "timestamp": {
      +                  "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +                },
      +                "url": {
      +                  "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "activityTimeline": {
      +        "description": "Newest first",
      +        "items": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "amount": {
      +              "$ref": "#/properties/result/properties/data/properties/identity/properties/viewport/properties/width",
      +              "description": "Payment amount; negative on a refund"
      +            },
      +            "eventName": {
      +              "$ref": "#/properties/result/properties/data/properties/identity/properties/country",
      +              "description": "Goal name, or \"refund\" on a refund entry"
      +            },
      +            "timestamp": {
      +              "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +            },
      +            "type": {
      +              "description": "pageview, goal or payment",
      +              "type": "string"
      +            },
      +            "url": {
      +              "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +            }
      +          },
      +          "required": [
      +            "type"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "identity": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "browser": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "name": {
      +                "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +              },
      +              "version": {
      +                "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "city": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +          },
      +          "country": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "countryCode": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +          },
      +          "device": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "type": {
      +                "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "os": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/browser"
      +          },
      +          "region": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +          },
      +          "viewport": {
      +            "additionalProperties": true,
      +            "properties": {
      +              "height": {
      +                "$ref": "#/properties/result/properties/data/properties/identity/properties/viewport/properties/width"
      +              },
      +              "width": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "profile": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "identified": {
      +                "const": true,
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "identified"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "{ identified: true } for identified visitors, null for anonymous ones"
      +      },
      +      "revenue": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "isCustomer": {
      +            "type": "boolean"
      +          },
      +          "timeToFirstConversion": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/viewport/properties/width",
      +            "description": "Seconds from first visit to first payment"
      +          },
      +          "totalRevenue": {
      +            "$ref": "#/properties/result/properties/data/properties/identity/properties/viewport/properties/width",
      +            "description": "Net of refunds"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "source": {
      +        "$ref": "#/properties/result/properties/data/properties/identity/properties/country",
      +        "description": "Acquisition source of the first session"
      +      },
      +      "sourceIconUrl": {
      +        "$ref": "#/properties/result/properties/data/properties/identity/properties/country"
      +      },
      +      "visitorId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "visitorId"
      +    ],
      +    "type": "object"
      +  },
      +  "status": {
      +    "description": "\"success\" on every successful call",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / result / required
      Added value: +[
      +  "status",
      +  "data"
      +]
    • addedOutput schema / properties / result / type
      Added value: +"object"
    • addedOutput schema / required
      Added value: +[
      +  "result"
      +]
  2. Changed4 schema fields changedv0.1.1
    • changedInput schema / properties / domain / description
      Previous value: -"Website domain to query. Required when using a workspace token unless websiteId is provided."New value: +"Website domain from list_websites (e.g. \"example.com\"). Alternative to websiteId with a workspace token."
    • changedInput schema / properties / visitorId / description
      Previous value: -"Visitor ID (from _fs_vid cookie)"New value: +"Visitor ID, the _fs_vid cookie value set by the tracking script (also shown in the dashboard visitor view)"
    • changedInput schema / properties / websiteId / description
      Previous value: -"Website ID to query. Required when using a workspace token unless domain is provided."New value: +"Website ID from list_websites. Required with a workspace token unless domain is given; ignored with a website key."
    • changedOutput schema / properties / result / description
      Previous value: -"Visitor profile with identity, traffic source, activity, revenue, identified profile fields, and an activity timeline."New value: +"Object with status and data: visitorId, identity, source, sourceIconUrl, activity, revenue, profile (null when anonymous), and activityTimeline sorted newest first."
  3. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses that PII (names, emails, user IDs, IPs, card details) is never returned, that profile is null for anonymous visitors, that each list is capped at the 100 most recent items, and that the response is ordered newest first. It also documents the permission model and error behavior, which annotations alone do not 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?

The response contents and the when-to-use rule are front-loaded, and every clause adds information an agent needs. It is dense and slightly redundant with the schema on visitorId sourcing and the websiteId/domain alternative, which keeps it from a 5.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, the description need not explain return structure, and it still covers field contents, redaction, null semantics, list caps, ordering, ID provenance, auth requirements, and the error case. Nothing material is left for the agent to infer.

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 100%, so all four parameters are already documented in the schema, including the _fs_vid caveat and the domain/websiteId token rule. The description's parameter remarks restate rather than extend that information, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Get the analytics for one visitor') and then enumerates exactly what is returned: geography, device/browser, acquisition source, activity counts, revenue, identification status, and a reverse-chronological timeline. It is unmistakably distinct from the aggregate get_* siblings, which it names explicitly.

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

Usage Guidelines5/5

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

It states the triggering condition ('only when the user asks about a specific visitor'), the exclusion (use aggregate get_* tools for many visitors), the correct source of visitorId (get_realtime_map or dashboard visitor view, not the _fs_vid cookie), and the auth prerequisite (websiteId or domain with a workspace token). It even specifies the failure mode, 'Visitor not found', for unknown or cross-site ids.

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