Skip to main content
Glama

get_link_stats

Read-only

Retrieve click statistics for a single shortened link, including breakdowns by country, device, referrer, and day, with an optional date range.

Instructions

Click statistics for one link, with breakdowns by country, device, referrer and day. Optionally limit the date range. For all links at once use get_analytics. Read-only.

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": {
      "id": "<id>"
    },
    "name": "get_link_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesLink id (UUID) as returned by shorten_url, shorten_urls or list_links.
toNoEnd date, YYYY-MM-DD.
fromNoStart date, YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.5
    • addedInput schema / properties / from / description
      Added value: +"Start date, YYYY-MM-DD."
    • addedInput schema / properties / id / description
      Added value: +"Link id (UUID) as returned by shorten_url, shorten_urls or list_links."
    • addedInput schema / properties / to / description
      Added value: +"End date, YYYY-MM-DD."
  2. First observedv1.0.4

TDQS

A3.9/5.0
Behavior3/5

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

'Read-only' merely restates readOnlyHint=true, so it earns no credit. What the description does add beyond the annotations is the shape of the payload — breakdowns by country, device, referrer and day — which is genuinely useful given there is no output schema. It still says nothing about pagination, default date window, or rate limits on an openWorldHint tool.

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 with the resource and breakdown scope front-loaded, followed by the alternative and the safety note. Every sentence carries information; the only slack is the redundant 'Read-only' trailing clause.

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 usefully enumerates the return dimensions, and with 100% schema coverage the parameters need no further explanation. The remaining gap is the absence of default date-range behavior, which an agent would need to interpret results correctly.

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%, so the schema already documents id, from and to, including that id comes from shorten_url/shorten_urls/list_links. The description only reinforces that from/to optionally bound the range; it adds no format or semantic detail the schema lacks. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Click statistics for one link') and immediately scopes it against the sibling that aggregates across links ('For all links at once use get_analytics'). An agent can distinguish it from get_analytics, list_links and the mutation siblings without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides an explicit alternative and the condition that selects it ('For all links at once use get_analytics'), plus a note that the date range is optional. It does not say what happens when from/to are omitted (default window) or any other when-not condition, so it falls short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.