Skip to main content
Glama

list_agent_visits

Read-only

For a Live Visit Feed site: the AI agents that visited, newest first, each with the pages it saw and the story of its visit. A visit is listed when its visitor was an AI agent (an agentic browser or an AI fetcher: visitor.kind ai_agent, as in a feed event) and the visit stored a feed event. Each row: visit_id, started_at, as_of and ended (when the stored event was built, and whether it is the visit's last), visitor.ai_agent with vendor and verification, pages, converted, reached_checkout when it was recorded, and narrative. verification says how the agent's identity was proven. web_bot_auth: it signed its requests, and the signature was checked against the key published at its own origin. cloudflare_verified_bot: Cloudflare verified it as an AI bot, which proves the kind of bot and not who runs it. null: nothing was proven, and the visit is called an agent's on its user-agent's word alone. vendor is the operator, or other when it could not be attributed. Never listed: a crawler, a browser driven by a script, a visit judged a bot when it ended, a visit marked as the site's own. Not listed either: an agent's visit that stored no feed event, because it opened no feed (a page load with no gesture and no conversion) or the feed was off; and an agent that names itself nowhere is recorded as a person. So the list is a floor on agent traffic, not its total. pages is the stored page list: without query or trailing slash, a numeric id written :id, an email or a token replaced. converted is an observed goal or a confirmed purchase. The window is the last 7 days unless you pass since and until, at most 30 days back, read on the visit's start. limit is 1 to 50, default 20; pass next back as cursor for older visits. Pass a visit_id to get_visit for the visit's whole last event. It needs an API key from the developer console and the feed turned on for the site; a conversion site's credential is refused with not_feed_site. 60 calls an hour per key, shared with get_visit and get_page_attention; every call is on the developer's record before it runs.

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

Input Schema

NameRequiredDescriptionDefault
limitNo1 to 50. Default 20. Newest first.
sinceNoISO date. Default: 7 days before `until`. At most 30 days back.
untilNoISO date. Default: now.
cursorNoThe `next` of the previous page. It carries its own window.

Output Schema

NameRequiredDescriptionDefault
okYes
nextYesPass as `cursor` for older visits. Null when there are none.
siteYesThe site's domain.
visitsYesNewest first. Each: visit_id (pass to get_visit), started_at, as_of, ended, visitor `{ kind: "ai_agent", ai_agent: { vendor, verification } }` (verification: web_bot_auth · cloudflare_verified_bot · null), pages (null when the row kept no list), pages_truncated (only when pages were left out), converted, reached_checkout (only when recorded), narrative.
windowYes`{ since, until }` as applied, on the visit's start.
read_meYes
scannedYesAgent visits examined. One that stored no feed event is examined and not listed, so a page may hold fewer than `limit` and still have a `next`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover read-only and closed-world; the description adds substantial behavioral context beyond them: a 60-calls-per-hour-per-key limit shared across get_visit and get_page_attention, an audit trail ('every call is on the developer's record before it runs'), and the crucial caveat that the list is a floor on agent traffic rather than a total. That coverage caveat is exactly the kind of thing an agent cannot infer from structured fields.

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 opening is well front-loaded and the prose is dense but readable. However, it is a single long block that spends many words unpacking row fields (vendor, verification, web_bot_auth, cloudflare_verified_bot, null) that an output schema already covers, and the credential/rate-limit notes are buried at the end.

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 filtered, paginated listing tool with an output schema, everything an agent needs is present: auth requirements, error code, rate limit, window bounds, cursor semantics, and the completeness caveat. Nothing material about calling it correctly is missing.

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 100%, so the baseline is 3; the description earns more by adding that the window is evaluated on the visit's start time and that a cursor carries its own window — neither of which appears in the schema. The limit and since/until bounds largely restate the schema.

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 verb and resource plus its scope: 'the AI agents that visited, newest first, each with the pages it saw and the story of its visit.' It also defines the filter precisely (visitor.kind ai_agent AND a stored feed event), which lets an agent distinguish this from a general visit listing without opening a 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 clear preconditions (API key from the developer console, feed turned on for the site, not_feed_site for a conversion site) and explicit exclusion criteria — crawlers, script-driven browsers, visits judged bots at end, the site's own visits. It routes to get_visit for the full event. It does not explicitly contrast with the sibling list_live_visits for non-agent traffic, so it stops short of a full when-not/alternative map.

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