Skip to main content
Glama

Read AI traffic for a URL

read_ai_traffic_url
Read-onlyIdempotent

Read the timeline of AI activity on one page of the project site, after read_ai_traffic_pages names it: the page's four measures (crawler requests, referral sessions, citations, Site Health findings) with their coverage and 4xx/5xx errors, then each crawler's first and last visit and request count, each AI source's first referral and sessions, and each citation by date and run. The window defaults to the last 30d. Each timeline is capped, and provenance.bounded is true when a cap was hit. The URL must be on the project's own site. unavailable url_not_joinable means the path cannot be matched (for example a redacted path); unavailable not_connected means no crawl logs, no GA4 and no completed visibility run in the window; unavailable with no reason means no activity was recorded for that page in the window.

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": {
      "project_id": "<project_id>",
      "url": "<url>"
    },
    "name": "read_ai_traffic_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA page URL on the project site, as read_ai_traffic_pages listed it.
rangeNoA preset window ending today; or pass start_date and end_date instead.
end_dateNoLast day of a custom window, inclusive.
project_idYesA project id that list_projects returned.
start_dateNoFirst day of a custom window, inclusive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / end_date / description
      Added value: +"Last day of a custom window, inclusive."
    • addedInput schema / properties / project_id / description
      Added value: +"A project id that list_projects returned."
    • addedInput schema / properties / range / description
      Added value: +"A preset window ending today; or pass start_date and end_date instead."
    • addedInput schema / properties / start_date / description
      Added value: +"First day of a custom window, inclusive."
    • addedInput schema / properties / url / description
      Added value: +"A page URL on the project site, as read_ai_traffic_pages listed it."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive, so the safety bar is met; the description goes well beyond by disclosing the 30d default window, that each timeline is capped, and that provenance.bounded signals a cap was hit. It also decodes three distinct unavailable states (url_not_joinable, not_connected, no reason) that an agent would otherwise misread as errors.

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?

Front-loads purpose, then contents, then window, then failure modes — a sensible information hierarchy with no filler sentences. It is dense and long for a single paragraph, and the four-measure enumeration could be tightened, but each clause carries operational value.

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 no output schema, the description carries the return-shape burden and does so fully: it names the measures, the per-crawler and per-source fields, citation granularity, cap signaling, and the meaning of every unavailable reason. An agent could call this correctly and interpret edge-case responses without further documentation.

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 baseline is 3, but the description adds real meaning: the range defaults to the last 30d, the url must be a page on the project site as listed by read_ai_traffic_pages, and the custom start_date/end_date alternative is framed as a window swap. The four measure names give the agent a sense of what the window affects.

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 ('Read the timeline of AI activity on one page') and immediately scopes it against its sibling by making read_ai_traffic_pages the naming prerequisite. The body enumerates the exact contents (crawler requests, referral sessions, citations, Site Health findings), so the agent knows precisely what this returns versus other read_ai_traffic_* tools.

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 an explicit call-order dependency ('after read_ai_traffic_pages names it') and a hard precondition ('The URL must be on the project's own site'). It does not state when to prefer read_ai_traffic_insights or other siblings instead, but the prerequisite chain plus site constraint covers the main invocation decision.

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