Skip to main content
Glama

Get link stats

get_link_stats
Read-onlyIdempotent

Show how a link is doing: total and unique clicks, new and returning visitors, clicks by day, busiest hours of the week, top countries, top referrers, visits from AI assistants such as ChatGPT or Claude, browsers, systems and devices. For a bio page it also gives views and clicks for each button, and on a paid plan the conversions. Visits from bots are reported apart and are not in the totals.

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_link_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe link's id, as returned by list_links or shorten_link. Give either id or code.
codeNoThe link's code (the part after siz.la/) or its full short address. Give either id or code.
daysNoHow many days back to report: 7, 30 or 90. The plan may keep less history than that.

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 safe-read profile (readOnly, idempotent, non-destructive), so the description earns credit for beyond-schema facts: bot visits are reported separately and excluded from totals, bio pages additionally return per-button views/clicks, and conversions only appear on a paid plan. It does not address access/ownership requirements or any rate limits, which keeps it below 5.

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?

A single front-loaded sentence opens with the purpose before listing metrics, and the closers (bio page, paid plan, bot exclusion) are ordered by relevance. The metric list is long but each item helps the agent decide whether this tool answers its question; minor tightening is possible.

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?

There is no output schema, so the description carries the burden of describing return values, and it does so thoroughly by enumerating the available metrics plus the bot-exclusion caveat. It does not describe response shape or empty/no-data behavior, leaving a small gap for a read-only analytics tool.

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 description coverage is 100% and each parameter (id, code, days) carries its own explanatory text, including the id-or-code tradeoff and the 7/30/90 window. The description adds nothing about parameters, so the baseline 3 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?

"Show how a link is doing" is a soft verb, but the following enumeration of concrete metrics (total/unique clicks, visitors, clicks by day, top countries/referrers, AI-assistant visits, devices) makes the resource and output unambiguous. It does not explicitly contrast itself with siblings such as get_conversions, so it stops short of a 5.

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: the agent can infer this is the analytical read for a known link, and the mention of bio-page and paid-plan extras hints at conditional behavior. There is no explicit when-to-use/when-not guidance, no pointer to get_conversions or list_links alternatives, and no prerequisites called out.

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.