Skip to main content
Glama

get_link_click_analytics

Read-only

Get a dimension breakdown (geo / device) of clicks on a single link.

The window is a rolling interval ending at now, NOT a calendar-aligned period. Unions DM-attributed clicks (LinkSend) with anonymous canonical-slug clicks (AnonymousVisitor) so counts match the dashboard.

Args: link: Link identifier — slug, exact name, or partial name. group_by: One of: countries, cities, devices, browsers, os. interval: Rolling window — one of: 1h, 24h, 7d, 30d, 90d.

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": {
      "link": "<link>"
    },
    "name": "get_link_click_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkYes
group_byNocountries
intervalNo7d

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With readOnlyHint/destructiveHint already covering the safety profile, the description adds real behavioral context: rolling vs calendar windows and the union of LinkSend DM-attributed clicks with AnonymousVisitor canonical-slug clicks, which explains why totals differ from raw logs. It stops short of describing result ordering, pagination, or cardinality limits for high-volume group_bys.

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 core purpose is front-loaded in one line, followed by a short paragraph of behavioral caveats and a compact Args block mapping each parameter. The union-of-sources explanation is slightly dense but is the kind of nuance that earns its space; nothing is padding.

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 omitting return-value detail is fine, and all three parameters are fully specified. The remaining gap is ambiguity resolution: 'partial name' implies fuzzy matching but the description never says what happens when multiple links match or whether the result is a single link or an error.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the schema declares no enums, yet the description supplies all of it: link accepts a slug, exact name, or partial name; group_by enumerates countries, cities, devices, browsers, os; interval enumerates 1h, 24h, 7d, 30d, 90d. This is exactly the compensation expected when structured fields are empty.

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 first sentence names a specific verb (get a breakdown) and a precise resource (clicks on a single link), scoped to geo/device dimensions. It is clearly narrower than an aggregate overview tool, though it never names a sibling to contrast with, so an agent must infer the boundary from sibling names alone.

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?

The description usefully flags a semantic trap — the window is a rolling interval ending at now, not a calendar period — and explains the count union so results reconcile with the dashboard. However, it never states when to reach for this versus a link-level overview or performance tool, and offers no exclusions or prerequisites.

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