Skip to main content
Glama

Traffic

get_analytics
Read-onlyIdempotent

Traffic for one app: visitors, pages, sources, countries, devices, goals, revenue by source. range adds the previous period, funnels, live visitors, bots, crawlers, AI assistants, buyers, cohorts, speed, 404s and paths. breakdown + rank: top lists. filter narrows the visits.

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": {
      "app": "<app>"
    },
    "name": "get_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesThe app: its slug, name, domain (shop.app), URL or id. list_apps shows them all.
daysNoThe last N days, only when range isn't passed. With breakdown, compare or filter it rounds up to 24h, 7d, 30d or 90d
rankNo
rangeNoReplaces days for every number in the answer. Longer than 90 days: totals come from daily history; breakdowns, funnels and paths cover the last 90 days
filterNoOnly visits matching all of these, with values as a breakdown shows them: { source: "Google", country: "DE", page: "/pricing", device: "mobile" }. Several values of one kind, separated by |, mean any of them: { country: "DE|FR" }; for pages, start with all: to need every page: { page: "all:/pricing|/docs" }. Narrows every visit number in the answer; detail.notFiltered lists the blocks that stay whole-app.
compareNoAlso the previous period, for trends
breakdownNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already establish this as a safe, idempotent, closed-world read, so the description only needs to add context. It does add some: range reportedly unlocks extra blocks (funnels, live visitors, bots, cohorts, speed, 404s, paths) rather than just widening a window, which is non-obvious behaviour. But the phrasing is compressed and sits uneasily with the schema, where compare is the parameter that adds the previous period, leaving the agent unsure which switch does what.

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 short sentences, front-loaded with the resource and its metric families before the parameter hints. The middle sentence decays into a long comma list (bots, crawlers, AI assistants, buyers, cohorts, speed, 404s and paths) whose relationship to the parameters is only loosely signalled, costing a little clarity for its brevity.

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?

Placeholder.

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 71%, and the description still adds meaning where the schema is thin, notably for rank, which has an enum but no description in the schema — "breakdown + rank: top lists" explains that the two work together. "filter narrows the visits" reinforces the nested filter object's purpose at a glance. It does not clarify the days-vs-range interaction beyond what the schema already states.

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 names the resource concretely ("Traffic for one app") and enumerates the metric families it returns: visitors, pages, sources, countries, devices, goals, revenue by source. That is far more specific than the title alone. It does not, however, distinguish itself from plausible siblings such as get_visitors or get_app_overview, so an agent must guess which of the traffic-flavoured tools to pick.

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 rather than stated: "breakdown + rank: top lists" and "filter narrows the visits" hint at how to shape a request, and "range adds ..." implies range unlocks more sections. There is no explicit when-to-use, when-not-to-use, or named alternative, so the agent gets orientation but no routing rule.

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