Skip to main content
Glama

Website Traffic Summary

website_summary
Read-onlyIdempotent

Traffic summary for one website over a date range.

Returns page views, unique visitors and their change vs the same number of days before, top countries, top pages, which AI bots read the site (ChatGPT, Claude, Perplexity and others), and the most clicked buttons. Use this when the user asks how a site is doing. Get the site_id from list_websites first.

Without sign-in only the public demo site works.

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": {
      "site_id": "<site_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "website_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesOne of the site_ids returned by list_websites.
end_dateYesLast day of the range, YYYY-MM-DD (included), at most 90 days after start_date.
start_dateYesFirst day of the range, YYYY-MM-DD (included).

Output Schema

NameRequiredDescriptionDefault
site_idYes
narrativeNo
top_pagesNo
trend_pctNoChange in unique visitors vs the same number of days right before, in percent.
ai_readersNo
date_rangeYes
top_clicksNo
data_statusNook
sign_in_hintNoA sign-in or setup tip. Never a paid offer.
total_visitsYesPage views: every page opened on the site in the date range.
top_countriesNo
unique_visitorsNoDistinct visitors (browser sessions) in the date range, the Visitors number on lubot.ai.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedInput schema / properties / end_date / description
      Added value: +"Last day of the range, YYYY-MM-DD (included), at most 90 days after start_date."
    • addedInput schema / properties / site_id / description
      Added value: +"One of the site_ids returned by list_websites."
    • addedInput schema / properties / start_date / description
      Added value: +"First day of the range, YYYY-MM-DD (included)."
    • changedOutput schema / $defs / AiReaderCount / description
      Previous value: -"Phase 8 T4.8 — an AI company's bots that read the site (bot_visits;\ncounted by the name each bot gives itself)."New value: +"An AI company's bots that read the site."
    • changedOutput schema / $defs / ButtonClickCount / description
      Previous value: -"Phase 8 T4.8 — a button / link people clicked (site_clicks)."New value: +"A button or link people clicked on the site."
    • changedOutput schema / $defs / DateRange / description
      Previous value: -"Inclusive start / end date range for a website summary query.\n\n`website_summary()` checks `start <= end` and the 90-day max span (so a\nrunaway MCP prompt can't scan the whole click_logs history); the model\nitself has no validators, so error answers can carry the range as sent."New value: +"First and last day of the summary, both included."
    • changedOutput schema / description
      Previous value: -"Return type for `website_summary(site_id, date_range)`.\n\nPage views (`total_visits`), unique visitors + their trend (S6-12),\ntop countries + top pages, AI readers, top clicks and a narrative\ndescribing the window. `ai_noticed` is reserved for a follow-up."New value: +"Traffic for one website over a date range."
    • removedOutput schema / properties / ai_noticed
      Removed value: -{
      -  "items": {
      -    "type": "string"
      -  },
      -  "title": "Ai Noticed",
      -  "type": "array"
      -}
    • addedOutput schema / properties / sign_in_hint
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "A sign-in or setup tip. Never a paid offer.",
      +  "title": "Sign In Hint"
      +}
    • removedOutput schema / properties / upgrade_hint
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Upgrade Hint"
      -}
  2. Changed4 schema fields changed
    • changedOutput schema / description
      Previous value: -"Return type for `website_summary(site_id, date_range)`.\n\nMVP shape: total visits + top countries + top pages + a narrative\ndescribing the window. Deep insights (trend %, AI-NOTICED cards) are\nreserved fields to be populated by a follow-up substep — clients see\nstable schema across the upgrade."New value: +"Return type for `website_summary(site_id, date_range)`.\n\nPage views (`total_visits`), unique visitors + their trend (S6-12),\ntop countries + top pages, AI readers, top clicks and a narrative\ndescribing the window. `ai_noticed` is reserved for a follow-up."
    • addedOutput schema / properties / total_visits / description
      Added value: +"Page views: every page opened on the site in the date range."
    • addedOutput schema / properties / trend_pct / description
      Added value: +"Change in unique visitors vs the same number of days right before, in percent."
    • addedOutput schema / properties / unique_visitors
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Distinct visitors (browser sessions) in the date range, the Visitors number on lubot.ai.",
      +  "title": "Unique Visitors"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "AiReaderCount": {
      +      "additionalProperties": false,
      +      "description": "Phase 8 T4.8 — an AI company's bots that read the site (bot_visits;\ncounted by the name each bot gives itself).",
      +      "properties": {
      +        "company": {
      +          "title": "Company",
      +          "type": "string"
      +        },
      +        "hits": {
      +          "title": "Hits",
      +          "type": "integer"
      +        },
      +        "product": {
      +          "title": "Product",
      +          "type": "string"
      +        },
      +        "top_page": {
      +          "title": "Top Page",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "company",
      +        "product",
      +        "hits",
      +        "top_page"
      +      ],
      +      "title": "AiReaderCount",
      +      "type": "object"
      +    },
      +    "ButtonClickCount": {
      +      "additionalProperties": false,
      +      "description": "Phase 8 T4.8 — a button / link people clicked (site_clicks).",
      +      "properties": {
      +        "button": {
      +          "title": "Button",
      +          "type": "string"
      +        },
      +        "clicks": {
      +          "title": "Clicks",
      +          "type": "integer"
      +        },
      +        "people": {
      +          "title": "People",
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "button",
      +        "clicks",
      +        "people"
      +      ],
      +      "title": "ButtonClickCount",
      +      "type": "object"
      +    },
      +    "CountryCount": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "count": {
      +          "title": "Count",
      +          "type": "integer"
      +        },
      +        "country": {
      +          "title": "Country",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "country",
      +        "count"
      +      ],
      +      "title": "CountryCount",
      +      "type": "object"
      +    },
      +    "DateRange": {
      +      "additionalProperties": false,
      +      "description": "Inclusive start / end date range for a website summary query.\n\n`website_summary()` checks `start <= end` and the 90-day max span (so a\nrunaway MCP prompt can't scan the whole click_logs history); the model\nitself has no validators, so error answers can carry the range as sent.",
      +      "properties": {
      +        "end": {
      +          "format": "date",
      +          "title": "End",
      +          "type": "string"
      +        },
      +        "start": {
      +          "format": "date",
      +          "title": "Start",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "start",
      +        "end"
      +      ],
      +      "title": "DateRange",
      +      "type": "object"
      +    },
      +    "PageCount": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "count": {
      +          "title": "Count",
      +          "type": "integer"
      +        },
      +        "page": {
      +          "title": "Page",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "page",
      +        "count"
      +      ],
      +      "title": "PageCount",
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "description": "Return type for `website_summary(site_id, date_range)`.\n\nMVP shape: total visits + top countries + top pages + a narrative\ndescribing the window. Deep insights (trend %, AI-NOTICED cards) are\nreserved fields to be populated by a follow-up substep — clients see\nstable schema across the upgrade.",
      +  "properties": {
      +    "ai_noticed": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "title": "Ai Noticed",
      +      "type": "array"
      +    },
      +    "ai_readers": {
      +      "items": {
      +        "$ref": "#/$defs/AiReaderCount"
      +      },
      +      "title": "Ai Readers",
      +      "type": "array"
      +    },
      +    "data_status": {
      +      "default": "ok",
      +      "enum": [
      +        "ok",
      +        "invalid",
      +        "not_found",
      +        "unavailable"
      +      ],
      +      "title": "Data Status",
      +      "type": "string"
      +    },
      +    "date_range": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/DateRange"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "narrative": {
      +      "default": "",
      +      "title": "Narrative",
      +      "type": "string"
      +    },
      +    "site_id": {
      +      "title": "Site Id",
      +      "type": "string"
      +    },
      +    "top_clicks": {
      +      "items": {
      +        "$ref": "#/$defs/ButtonClickCount"
      +      },
      +      "title": "Top Clicks",
      +      "type": "array"
      +    },
      +    "top_countries": {
      +      "items": {
      +        "$ref": "#/$defs/CountryCount"
      +      },
      +      "title": "Top Countries",
      +      "type": "array"
      +    },
      +    "top_pages": {
      +      "items": {
      +        "$ref": "#/$defs/PageCount"
      +      },
      +      "title": "Top Pages",
      +      "type": "array"
      +    },
      +    "total_visits": {
      +      "title": "Total Visits",
      +      "type": "integer"
      +    },
      +    "trend_pct": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Trend Pct"
      +    },
      +    "upgrade_hint": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Upgrade Hint"
      +    }
      +  },
      +  "required": [
      +    "site_id",
      +    "date_range",
      +    "total_visits"
      +  ],
      +  "title": "WebsiteSummary",
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds meaningful context beyond them: the comparison baseline ("change vs the same number of days before") and the authentication caveat that only the public demo site works without sign-in. The sign-in limitation in particular is a behavioral constraint an agent cannot get from annotations or schema, and it prevents a class of failed calls.

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?

The structure is well front-loaded: capability sentence, then returned metrics, then usage trigger and prerequisite. The metric enumeration is long but each item informs the agent about what it can answer, so it earns its space; the only minor redundancy is restating the title's "traffic summary" framing.

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 three-parameter read-only tool with a full schema and an output schema, the description covers what the agent needs: scope, returned content, prerequisites, and the sign-in constraint. Return value formatting is delegated to the output schema, which is appropriate, so nothing essential is missing.

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 coverage is 100%, so site_id, start_date, and end_date are already fully documented, including the 90-day cap and inclusive date semantics. The description only reinforces site_id provenance ("from list_websites first") and adds nothing about date handling, so the baseline of 3 applies.

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?

The description names a specific verb and resource ("Traffic summary for one website over a date range") and enumerates the exact metrics returned: page views, unique visitors, deltas, top countries, top pages, AI bot readers, and clicked buttons. This is enough for an agent to distinguish it from siblings like list_websites or stock_analysis 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?

It gives an explicit trigger ("Use this when the user asks how a site is doing") and a prerequisite chain ("Get the site_id from list_websites first"), which is concrete routing guidance. It stops short of stating when NOT to use it, e.g. that list_websites should be used for site inventory rather than traffic.

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