Skip to main content
Glama

Site Insights by KKV Labs

AI assistant traffic

ai_traffic
Read-onlyIdempotent

Visits from AI assistants (ChatGPT, Perplexity, Copilot, Gemini, Claude and others) from GA4: total, share of all sessions, by assistant, every landing page and the daily trend, with change against a comparison period.

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": "ai_traffic"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNotrue returns Google's response exactly as Google sent it, unchanged.
siteNoThe site's domain (example.com) or its label. Optional when the account has exactly one site switched on. An unknown name returns an error that lists the switched on sites.
offsetNoRow to start from, for the next page. Default 0.
periodNoDate range. Default last_28_days. Named ranges end when the data is complete.
compareNoWhat to compare with. Default previous_period (same length, right before).
end_dateNoCustom end date YYYY-MM-DD.
page_sizeNoRows per page, default 1000, max 5000. Every row is available through paging.
start_dateNoCustom start date YYYY-MM-DD. Overrides period.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds genuine value by disclosing the shape of what comes back — including a comparison-period delta — which is the main behavioral unknown with no output schema. It says nothing about authentication, GA4 property prerequisites, latency or limits, so it stays at a solid adequate rather than rich.

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 front-loaded sentence that names the source (GA4) early and then lists the returned dimensions, with no filler or marketing language. It is dense but every clause corresponds to something the agent gets back, though the run-on enumeration reads slightly crammed.

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 and eight optional parameters, the description does the necessary work of explaining what the response contains, including the comparison delta and daily trend. The schema covers site selection, paging and date ranges, so the remaining gaps (prerequisites, response granularity for paging) are minor. An agent has enough to call it correctly on the first try.

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 defaults, enum values, date patterns, paging and the raw flag are all documented in the schema itself. The description adds only the notion of a change against a comparison period, which loosely maps to the compare parameter but gives no extra syntax or semantics. Baseline 3 is appropriate when the schema carries the parameter burden.

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 (visits from AI assistants in GA4) and enumerates exactly what the response contains: total, session share, per-assistant breakdown, landing pages, daily trend and period comparison. An agent can tell it retrieves AI-referral traffic rather than general traffic. It does not explicitly distinguish itself from near neighbors like traffic_sources or top_pages, which keeps it from a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no alternative tool is named. The only steer is implicit in the resource named (AI-assistant visits), leaving the agent to infer that traffic_sources or top_pages would be wrong for this question. Usage is implied at best and unstated at worst.

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