Skip to main content
Glama

Get page stats

get_page_stats
Read-only

Visits of the user's pages over the last days days, per page: views, daily views, channels (where visitors came from), top referrers and countries, clicks on its links with click_channels and destinations (no query strings), and automations: its instagram_dm views and clicks by the automation whose DM sent them (since November 2026). Plus site-wide channels.

Channels: instagram_dm (the automations' DM links, tagged ?source=instagram), instagram_bio (untagged, from Instagram: almost always the bio link), saypage (from another of the user's pages), other_sites, direct (typed, bookmarked, or an app that hides it), or a link shared elsewhere with ?source= tiktok, facebook, youtube, linkedin, pinterest, x, threads, email, newsletter, website or qr; a click with none is other. Never suggest ?source=instagram on a bio link: it would count as DM visits.

Every page load counts, link-preview bots included. Clicks are taps, not people or sales, and a few are missed.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With readOnlyHint=true and destructiveHint=false already covering the safety profile, the description adds genuinely non-obvious behavioral context: every page load counts including link-preview bots, clicks are taps not people or sales, and a few clicks are missed. These data-quality caveats materially affect how an agent should interpret and report results, which annotations cannot convey. It omits operational traits such as result size or pagination, keeping it short of a 5.

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 core payload is front-loaded in the first sentence, which is good, but the paragraph then spends substantial length enumerating fields that an output schema already covers and exhaustively listing every possible `source` value. The channel taxonomy is useful for interpretation yet is verbose and formatted with backticks and hard line breaks that read as documentation fragments rather than guidance.

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?

An output schema exists, so return values did not need spelling out, yet the description's caveats about bots, taps-not-people, and missed clicks are exactly the interpretive context an agent needs and would not get from schema alone. Combined with the scoped look-back window, it is sufficient to call and interpret the tool correctly; only explicit sibling routing 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?

There is a single parameter and the schema already documents it fully ('Look-back window in days', default 30, min 1, max 90). The description restates it as 'over the last `days` days' without adding format or boundary information, so the schema is doing the heavy lifting — the baseline 3 for 100% coverage 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 names a specific resource (the user's pages) and a specific measurement (visits over the last `days` days) and enumerates exactly what is returned per page: views, daily views, channels, referrers, countries, clicks, click_channels, destinations, automations, plus site-wide channels. That is far more specific than the title 'Get page stats'. It does not, however, contrast itself with siblings such as get_instagram_insights or get_automation_activity, so an agent must infer which analytics tool covers which surface.

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 only implied: the presence of an `days` look-back window and the per-page breakdown signal 'use this for page traffic analytics', but there is no explicit when-to-use versus when-to-use-a-sibling statement. The one directive present ('Never suggest ?source=instagram on a bio link') is about tagging conventions, not tool selection. An agent gets useful domain framing but no routing rules.

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.