Skip to main content
Glama

Link Stats

link_stats
Read-onlyIdempotent

Clicks for one of your links: totals (people, QR scans, unique visitors, bots), and on Pro+ daily counts, referrers, countries, cities, devices, OS, browsers, a weekday-by-hour heatmap, week over week and the latest 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": {
      "ref": "<ref>"
    },
    "name": "link_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNoIANA time zone for the heatmap, e.g. America/New_York. Default UTC.
refYesThe link id, its code, or the whole short URL.
daysNo
sourceNoOnly QR scans, or only plain clicks.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely new behavior: metric availability is plan-gated to Pro+ and the heatmap is timezone-sensitive. It doesn't say what happens when 'days' is omitted or whether totals always return, but the plan-gating disclosure is real value beyond structured fields.

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?

One front-loaded sentence: the resource comes first, then the metric inventory. The long parenthetical list of dimensions is dense but every item is a real return field, so little is wasted. Minor cost: the enumeration makes the sentence hard to scan at a glance.

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 describing returns, and it does so comprehensively across both free and Pro+ tiers. Remaining gap is the behavior of 'days' (default window, effect on which breakdowns appear), which an agent would want before calling.

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?

Schema coverage is 75%, near the high band, so the schema already explains ref, tz, and source. The description's references to timezone-dependent heatmap and QR-scan filtering largely restate those fields, and 'days' is never explained in either place (window vs. granularity is left to inference). Baseline 3 is appropriate.

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?

Specific verb+resource ('Clicks for one of your links') plus an enumerated list of returned metrics (totals, referrers, countries, heatmap). An agent knows exactly what data comes back. It stops short of distinguishing this from the sibling qr_code_stats, even though QR scans appear here as a metric/filter, so a boundary ambiguity remains.

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 'for one of your links' and by the note that daily counts and breakdowns are 'on Pro+', which tells the agent to expect diluted results on free plans. There is no explicit when-to-use vs. qr_code_stats, nor any stated 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