Skip to main content
Glama

Investigate one day's traffic

investigate_traffic_day
Read-onlyIdempotent

Explain why traffic on one day differed from usual for one site. Compares the day (in the site's time zone) with the same weekday in earlier weeks, says how unusual it is, whether more visitors or more pages per visitor drove it, and which sources, referring URLs, landing pages and UTM campaigns account for the change and what share each. It states plainly when the data cannot attribute the change (for example when it arrived with no referrer). Correlation is reported as correlation, never as a cause. Reaches back twelve months on Pro, ninety days otherwise.

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

Input Schema

NameRequiredDescriptionDefault
dateNoThe day to explain, YYYY-MM-DD. Defaults to today in the site's time zone.
siteNoWhich site: its domain (for example example.com) or its id from list_sites. Leave it out for the account's first site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Which site: its domain (for example example.com) or its id from list_sites. Leave it out for the account's first site.",
      +  "maxLength": 255,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover the safe read-only, idempotent, closed-world profile, and the description adds substantial behavior on top: the comparison baseline (same weekday in earlier weeks), the decomposition into visitors vs. pages-per-visitor, attribution dimensions and share reporting, explicit handling of unattributable traffic (no referrer), a correlation-not-causation caveat, and lookback limits.

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?

Three sentences, front-loaded with the core promise before the detail about what gets reported and the caveats. The middle sentence is dense with a long enumeration of dimensions, but each clause carries information an agent needs to set expectations about the answer.

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 describe the returned analysis, and it does so thoroughly — baseline used, unusualness, driver decomposition, attribution shares, and non-attributable cases. Nothing an agent needs in order to call this correctly or interpret the result 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 both parameters are already documented. The description only reiterates the site's-time-zone framing for the date default and adds no new syntax or format meaning, 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 opening sentence names a specific verb+resource ('Explain why traffic on one day differed from usual for one site') and immediately establishes this as a diagnostic/attribution tool, which is conceptually distinct from siblings like breakdown_day and compare_days that slice or juxtapose data without explaining it.

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?

Usage context is clear: reach for this when you need an explanation of a day's deviation rather than a raw breakdown. It also states an operational boundary (twelve months on Pro, ninety days otherwise), but it never names an alternative tool or says when not to use it, so it stops short of a 5.

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