Skip to main content
Glama

Read real AI use on your site

get_ai_traffic
Read-onlyIdempotent

Real AI use counted on your own site by the Goppa plugin: pages an assistant opened to answer a person, clicks from inside AI answers, and crawler visits, kept separate and never added together. Also which source the counts come from: the plugin or a server log (Vercel, Cloudflare or an uploaded file), with the last event and the 30-day count of each.

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

Input Schema

NameRequiredDescriptionDefault
siteNoOne of your sites in Goppa, by domain (example.com). Required when the account has more than one site: without it, the answer lists the sites to choose from. With a single site it can be left out.
cursorNonext_cursor from the previous page, to read the next 10 items.

Output Schema

NameRequiredDescriptionDefault
ga4No
noteNo
pageNo
readNo
siteNo
as_ofNo
errorNo
pagesNo
savedNo
stateNo
marketNo
periodNo
reasonNo
sampleNo
missingNo
partialNo
summaryNo
languageNo
availableNo
by_engineNo
data_statusNo
next_actionNo
evidence_idsNo
people_askedNo
count_sourcesNo
site_requiredNo
workspace_urlNo
crawler_visitsNo
sites_in_accountNo
untrusted_fieldsNo
counted_by_pluginNo
clicks_from_ai_answersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / count_sources
      Added value: +{
      +  "additionalProperties": true,
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • addedOutput schema / properties / ga4
      Added value: +{
      +  "additionalProperties": true,
      +  "type": [
      +    "object",
      +    "null"
      +  ]
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent read, so the description's job is to add context, and it does: it names the provenance of the counts (plugin vs. Vercel/Cloudflare/uploaded server log) and states that the three traffic categories are kept separate and never summed. That data-provenance and non-aggregation detail is behavior an agent cannot get from the annotations.

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?

Two sentences, front-loaded with what the tool returns before the source detail, and no filler. The second sentence is dense but each clause (source types, last event, 30-day count) earns its place.

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?

An output schema exists, so return shapes need not be spelled out, and the read-only annotations cover the safety profile. What remains — what is measured, what is deliberately not aggregated, and where counts originate — is all stated, leaving nothing an agent needs to call this 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?

Schema description coverage is 100%, so both the site fallback behavior and the cursor pagination are already fully documented in the schema. The description adds no parameter-level meaning beyond that, which is the correct baseline of 3 when the schema carries the load.

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 and scope: real AI use on the user's own site, broken into three distinct signals (pages an assistant opened, clicks inside AI answers, crawler visits). This clearly separates it from siblings like get_ai_answers or get_ai_visibility in substance, 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 Guidelines2/5

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

There is no when-to-use guidance, no exclusions, and no routing to alternatives such as get_ai_visibility or get_ai_sources. The agent must infer the choice purely from the described payload, which is the same gap seen in mediocre update-style definitions.

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