Skip to main content
Glama

Get visitors over time

get_timeseries
Read-only

Visitors and pageviews over time. By default per hour (periods of 2 days or less), per day up to four months, per week up to a year, then per month; pass interval to choose (weeks start on Monday), for example a year month by month. A week or a month is its days added up. revenue gives the net revenue of the buckets that have payments, per currency, cut the same way (empty without Stripe); it starts on the site's first measured day. The last bucket may be in progress. measured_since says when the site received its first event: buckets before it are zero because Bearing was not installed, not because nobody came.

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

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD (site timezone), included.
fromNoStart date YYYY-MM-DD (site timezone), with `to`.
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
periodNoA preset period ending today: today, 7d, 30d, 90d, 1y (one year) or all (everything since the site's first visit, five years at most). Default 30d. Ignored when from/to are given.
intervalNohour, day, week or month. Default: hour for 2 days or less, day up to four months, week up to a year, month beyond.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint, and the description goes well beyond that: it discloses that the last bucket may be in progress, that week/month buckets are sums of days, that revenue only covers buckets with payments and is empty without Stripe, and that buckets before measured_since are zero due to missing instrumentation rather than zero traffic. These are exactly the interpretive caveats an agent needs to avoid misreading results.

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 core purpose, then layered caveats in decreasing priority. Dense but every clause carries information; the revenue and measured_since sentences are long but not padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 burden of explaining return semantics, and it does so for buckets, revenue, and the measured_since marker. It stops short of describing the shape of each bucket (fields returned), leaving a small gap for a data-returning tool.

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 the baseline is 3, but the description adds real meaning: the interval default thresholds are restated as a decision rule, weeks are noted to start on Monday, and revenue is described as cut the same way as the main series. It does not clarify from/to interaction beyond what the schema already says.

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?

States a specific resource and metric pair ('Visitors and pageviews over time') with a clear temporal framing, which separates it from snapshot-style siblings like get_overview or get_live. It does not explicitly name which sibling to use for non-time-series breakdowns, 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?

Gives strong guidance on interval selection and on when the automatic default applies, which is genuine usage help. However, it never says when to prefer this tool over get_breakdown, get_stats, or get_revenue, so the agent must infer the boundary from names alone.

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