Skip to main content
Glama

Get daily visitors and pageviews

get_daily_series
Read-onlyIdempotent

One row per day for one site over a period, in the site's timezone: visitors, pageviews, and the per-visit averages, on every day whatever its size (metrics_withheld is always false). Each day's visitors figure counts every visitor once for that day, so adding days up counts a returning reader once per day. A null average means not measured. Costs ceil(days/7) × 2 units. A range can include history imported from another analytics tool: imported says whether it is included and for which days, and each day's instrument says whether Pulse measured it or it was imported.

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

Input Schema

NameRequiredDescriptionDefault
toNoLast day, inclusive, YYYY-MM-DD, in the site's timezone.
fromNoFirst day, YYYY-MM-DD, in the site's timezone. Use with to, instead of period, only for a range period cannot express. At most 366 days.
periodNo7d = today and the 6 days before it; 30d = today and the 29 days before it; month = this calendar month so far; year = this calendar year so far. All in the site's timezone. Use this rather than computing dates. Omit together with from/to for 7d.
site_idYesThe site's id, a UUID, from list_sites.

Output Schema

NameRequiredDescriptionDefault
daysYes
rangeYes
site_idYes
importedNoPresent only when the range includes days imported from another analytics tool: whether the days include them (included), which days (from, through), the tool (source), and why they were left out (reason). Absent means no imported day is involved.
min_cell_sizeYes
withheld_daysYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds real behavioral context beyond them: an explicit cost of ceil(days/7) × 2 units, the guarantee that no day is withheld (metrics_withheld always false), and a warning that summing daily visitors double-counts returning readers. It also discloses imported-data handling via the imported and instrument fields. It does not cover pagination or limits on series length beyond the schema's 366-day cap.

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 opening sentence front-loads the output grain and fields, and each subsequent sentence adds a distinct fact (dedup semantics, null meaning, cost, imported data). It is dense and mostly earns its length, though the imported/instrument sentence packs two field-level facts that could be tighter.

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 an output schema present, return shape need not be explained, and the description still covers cost, timezone, dedup behavior, null handling and imported history. Nothing material an agent needs to call this correctly 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 period and from/to already carry their own formats and timezone semantics; the description adds little parameter meaning beyond reaffirming the site timezone. The remaining description content is about output semantics (null averages, imported days) rather than input parameters, so the baseline 3 applies.

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 states a specific resource and grain: 'One row per day for one site over a period' with visitors, pageviews and per-visit averages, in the site's timezone. An agent can tell this returns a daily time series rather than a breakdown or realtime snapshot. It never names a sibling (get_breakdown, get_stats) to draw an explicit boundary, so it stops short of a 5.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: it is clearly the tool for day-by-day trends, and the schema tells the caller to prefer period over from/to. There is no explicit guidance on when to choose this over get_stats or get_breakdown, and no exclusions or prerequisites are named in the description.

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.