Skip to main content
Glama

Read AI traffic by page

read_ai_traffic_pages
Read-onlyIdempotent

Rank the project's own pages by AI activity, to find which pages AI crawlers fetch, AI assistants send visitors to and AI answers cite. Each row is one page (URL, path, folder, resource class) with four measures, each carrying its own coverage: AI crawler requests (server logs), AI referral sessions and key events (GA4), citations in AI answers, and Site Health findings, plus its last crawl. The window defaults to the last 30d; rows come 10 per page (up to 100); pass next_cursor for more. observed_crawl_coverage says how complete the logs are, and a measure without a connected source is missing, not zero. unavailable not_connected means no crawl logs, no GA4 and no completed visibility run in the window. Use read_ai_traffic_url for one page's timeline, read_crawl_logs for crawler-level detail, read_ai_referrals for site-wide referral totals, and read_site_pages for crawl data such as titles and scores.

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>"
    },
    "name": "read_ai_traffic_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoRow order by one measure, highest first, or by URL; omit for the default. Filters (folder, resource_class, verification) apply first.
limitNoHow many rows to return; omit for the default page size.
rangeNoA preset window ending today; or pass start_date and end_date instead.
cursorNoThe next_cursor a previous page returned.
folderNoA site path prefix such as /blog/ to read only pages under it.
end_dateNoLast day of a custom window, inclusive.
project_idYesA project id that list_projects returned.
start_dateNoFirst day of a custom window, inclusive.
verificationNoKeep only crawler requests whose claimed identity was verified, could not be verified, or failed verification.
resource_classNoA resource_class a previous row returned, such as page, to read only that kind.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • addedInput schema / properties / cursor / description
      Added value: +"The next_cursor a previous page returned."
    • changedInput schema / properties / cursor / type
      Previous value: -[
      -  "string",
      -  "null"
      -]New value: +"string"
    • addedInput schema / properties / end_date / description
      Added value: +"Last day of a custom window, inclusive."
    • addedInput schema / properties / folder / description
      Added value: +"A site path prefix such as /blog/ to read only pages under it."
    • addedInput schema / properties / limit / description
      Added value: +"How many rows to return; omit for the default page size."
    • 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 / resource_class / description
      Added value: +"A resource_class a previous row returned, such as page, to read only that kind."
    • addedInput schema / properties / sort / description
      Added value: +"Row order by one measure, highest first, or by URL; omit for the default. Filters (folder, resource_class, verification) apply first."
    • addedInput schema / properties / start_date / description
      Added value: +"First day of a custom window, inclusive."
    • addedInput schema / properties / verification / description
      Added value: +"Keep only crawler requests whose claimed identity was verified, could not be verified, or failed verification."
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds non-obvious behavior the annotations cannot: pagination of 10 per page up to 100, the next_cursor contract, the 30d default window, and the critical semantic that a measure without a connected source is missing rather than zero, plus the meaning of unavailable/not_connected and observed_crawl_coverage. It stops short of describing how the 'coverage' value is formatted or how ties are broken in ranking.

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-loaded with the purpose before any mechanics, and every sentence carries operational weight. The middle sentence is heavily clause-stacked (four measures each with its own coverage source) which slows parsing slightly, but nothing is redundant.

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?

There is no output schema, so the description must carry the return shape itself, and it does: one row per page with URL, path, folder, resource class, four measures with per-measure coverage, and last crawl. Combined with the pagination and null-semantics notes, an agent has everything needed to call this correctly on first attempt.

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; the description earns an extra point by supplying defaults the schema leaves silent — the window defaults to the last 30d, the page size defaults to 10, and passing next_cursor fetches further rows. It still does not explain cursor expiry or the interplay when both range and start_date/end_date are supplied.

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 — 'Rank the project's own pages by AI activity' — and immediately enumerates what the ranking exposes (crawler fetches, referrals, citations, Site Health). The fourth sentence explicitly contrasts it with read_ai_traffic_url, read_crawl_logs, read_ai_referrals and read_site_pages, so the agent can distinguish it without opening any schema.

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

Usage Guidelines5/5

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

Gives both the selection condition ('to find which pages AI crawlers fetch...') and explicit routing to four alternative tools with the specific case each covers: one page's timeline, crawler-level detail, site-wide referral totals, crawl data like titles and scores. No inference is required about when to pick this tool over a sibling.

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