Skip to main content
Glama

Overview

overview
Read-onlyIdempotent

Compare a date range’s visits, identified users, conversions, revenue, failed writes, daily activity, and top pages/events against the previous period to spot trends and diagnose jumps.

Instructions

Visits, identified users, conversions, revenue and failed writes of a range against the previous period, the daily activity of both, and the top pages and events. Annotations (the annotations tool) are notes the project's people wrote on days, such as a launch, a campaign or a broken release: they often explain a jump in the daily series. revenue holds current, previous and daily: the revenue of the events counted as conversions, null when the goal counted is a page or the project has no goal. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing. A range that ends today is compared with the previous period up to the same time of day. visitors holds the unique visitors, counted without any identifier and only for a project that counts them (visitors.enabled, visitors_enabled in project_settings); when enabled is false every list is empty. The first event of each visit says whether its browser is new (first_visit), back for the first time this month (first_this_month) or today (first_today), or back again today (again_today); a visit without that mark never counts. daily holds those four counts per day: the unique visitors of a day are first_visit + first_this_month + first_today, and the new ones are first_visit. months holds, per calendar month the range touches, first_visit and first_this_month on the range's days of that month, and exact: their sum is the month's unique visitors only when exact is true, as when the range holds the whole month or runs from its 1st to today. previous_daily and previous_months hold the same for the previous period. Days do not add up to unique visitors: a browser back on two days counts on both. A visitor is a browser: two devices count as two, and a browser whose storage was cleared counts as new. Conversions count one goal: the one goal names, by its id from the goals tool, or else the first goal (goal 1), which started as the project's former conversion event; they are null when the project has no goal.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

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>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "overview"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesLast day of the range, inclusive (YYYY-MM-DD), at most the project's today.
fromYesFirst day of the range, inclusive (YYYY-MM-DD).
goalNoThe goal counted as conversions, by its id from the goals tool; without it, the first goal (goal 1).
project_idYesThe project id, from list_projects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • addedInput schema / properties / goal
      Added value: +{
      +  "description": "The goal counted as conversions, by its id from the goals tool; without it, the first goal (goal 1).",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
  2. First observedv0.4.0

TDQS

A4/5.0
Behavior5/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), yet the description still adds substantial behavior: empty lists when visitors.enabled is false, null revenue when the goal counts a page or no goal exists, no currency conversion, and same-time-of-day comparison for ranges ending today. It also discloses that daily figures do not sum to unique visitors and that months are only exact under specific range conditions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The lead sentence is well front-loaded and most content is load-bearing for an analytics report with no output schema. But it is one dense paragraph mixing metric definitions, counting caveats, and historical asides (the 'former conversion event' note), which makes it harder to scan than it needs to be.

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 no output schema, the description carries the full burden of describing return values, and it does so thoroughly: revenue, visitors, daily, months, previous_* and conversions are each explained along with their null and empty conditions. An agent can interpret the response correctly without additional documentation.

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?

Even at 100% schema coverage the description adds real meaning beyond the schema: the 400-day maximum range, that dates are interpreted in the project time zone, and that omitting goal defaults to goal 1 (the former conversion event). These constraints are not fully expressed in the schema descriptions.

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 opening sentence names the concrete metrics returned (visits, identified users, conversions, revenue, failed writes) plus the comparison period and daily breakdown, so the resource is unmistakable. It does not, however, distinguish this from near-siblings like visits, engagement, or time_of_day, which likely overlap in subject matter.

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 is implied by describing what the report contains and it points to list_projects for the project id and today, goals for the goal id, and annotations for explanatory notes. It never states when to choose this over visits, engagement, or funnel, nor does it give exclusions beyond the 400-day cap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.