Skip to main content
Glama

get_visit

Read-only

For a Live Visit Feed site: one visit's last feed event, read from the edge while the visit is in progress and from the store after it ends. Pass the visit_id a feed event, list_live_visits or list_agent_visits carries. It needs an API key from the developer console, which holds the visits permission, and the feed turned on for the site; a conversion site's credential is refused with not_feed_site. A visit in progress is readable from the moment it opens its feed, and the answer says live: true: the event was read from the edge, which still holds the visit. Otherwise the stored event is returned, with live: false. An event is stored at an exit signal, at a conversion and when the visit ends. So if the edge cannot be reached, a visit in progress shows a stored event that can be minutes old, or answers not_found when none was stored yet. as_of says when the event was built. A very long narrative keeps its last 2,000 characters. preview_score is a score trained on purchases, not on the site's goals, and is null unless the site turned scoring on. When a model has cleared its quality gate for the site (its own, or until then the starting model pooled across sites, model.site = pooled), interest is that model's score for the visit, 0 to 1, with model naming the model, under the same consent, and preview_score is null; interest and model are null otherwise. control_group: true marks the permanent holdout: Cromanion never acts on those visits, and the feed still describes them. A visit later judged a bot keeps the event it was sent. 60 calls an hour per key, shared with get_page_attention and list_agent_visits; every call is on the developer's record before it runs.

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": {
      "visit_id": "<visit_id>"
    },
    "name": "get_visit"
  }
}

Input Schema

NameRequiredDescriptionDefault
visit_idYesThe `vis_…` id from a feed event, from list_live_visits or from list_agent_visits.

Output Schema

NameRequiredDescriptionDefault
okYes
liveYestrue: the event was read from the edge, which still holds the visit. false: it is the stored copy.
as_ofYesISO. When the event was built, on the edge's clock.
eventYesThe feed event: type (visit.started · visit.moment · visit.converted · visit.ended), event_id, site, visit_id, elapsed_s, control_group, moment `{kind, page}`, interest, model, preview_score, visitor, narrative, attention, signals, goal.
read_meYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / visit_id / description
      Previous value: -"The `vis_…` id from a feed event or from list_live_visits."New value: +"The `vis_…` id from a feed event, from list_live_visits or from list_agent_visits."
  2. Changed3 schema fields changed
    • changedOutput schema / properties / as_of / description
      Previous value: -"ISO. When the stored event was built, on the edge's clock."New value: +"ISO. When the event was built, on the edge's clock."
    • addedOutput schema / properties / live
      Added value: +{
      +  "description": "true: the event was read from the edge, which still holds the visit. false: it is the stored copy.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "as_of",
      -  "event",
      -  "read_me"
      -]New value: +[
      +  "ok",
      +  "live",
      +  "as_of",
      +  "event",
      +  "read_me"
      +]
  3. Added

TDQS

A4.3/5.0
Behavior5/5

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

The description goes far beyond the annotations by explaining edge-vs-store reads, the `live` flag, when events are stored, possible staleness or `not_found`, `as_of` timing, narrative truncation, `preview_score` behavior, model-gated `interest` scoring, holdout behavior, bot handling, and rate limits. These details are highly relevant to correct interpretation and safe use, and they do not contradict the read-only annotation.

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?

The purpose is front-loaded and the prose is coherent, but the description is a single dense paragraph that extensively explains return-field semantics even though an output schema exists. Many sentences are useful behavioral context, but some return-value detail is likely redundant against the output schema and makes the definition longer than necessary.

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?

For a one-parameter read tool, the description is highly complete: it covers prerequisites, fallback behavior when the edge is unreachable, rate limits, scoring/model caveats, holdout behavior, and key output signals. Given the annotations and the presence of an output schema, this is more than sufficient context for an agent to invoke and interpret the tool correctly.

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?

The only parameter, `visit_id`, is already fully documented in the schema as a `vis_…` id from a feed event, `list_live_visits`, or `list_agent_visits`. The description repeats that sourcing without adding new syntax, format, or validation semantics beyond what the schema provides.

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: reading one visit's last feed event for a Live Visit Feed site. It clearly distinguishes this single-visit read from the list-oriented siblings by telling the caller to pass a `visit_id` carried by a feed event, `list_live_visits`, or `list_agent_visits`.

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 clear applicability conditions: a Live Visit Feed site, an API key with the visits permission, and the feed turned on for the site. It also states that a conversion site's credential is refused with `not_feed_site`, but it does not explicitly contrast when to use this tool versus other visit-related siblings beyond identifying where the id comes from.

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