Skip to main content
Glama

Get link stats

get_link_stats
Read-onlyIdempotent

Views and visitors (as in Insights), clicks per day, and each link's and project's clicks and click rate (clicks ÷ views) on a profile or link page. Free plans see 7 or 30 days.

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

Input Schema

NameRequiredDescriptionDefault
daysNo
slugYes

Output Schema

NameRequiredDescriptionDefault
slugYes
linksYes
rangeYes
clicksYes
seriesYes
projectsNo
visitorsYes
pageViewsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / clicks
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / links / items / properties / countingSince
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / series
      Added value: +{
      +  "type": "array"
      +}
    • addedOutput schema / properties / visitors
      Added value: +{
      +  "type": "integer"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "slug",
      -  "range",
      -  "pageViews",
      -  "links"
      -]New value: +[
      +  "slug",
      +  "range",
      +  "pageViews",
      +  "visitors",
      +  "clicks",
      +  "series",
      +  "links"
      +]
  2. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / slug / minLength
      Removed value: -1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "links": {
      +      "items": {
      +        "properties": {
      +          "clicks": {
      +            "type": "integer"
      +          },
      +          "ctr": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "label": {
      +            "type": "string"
      +          },
      +          "uniqueClicks": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "id"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "pageViews": {
      +      "type": "integer"
      +    },
      +    "projects": {
      +      "items": {
      +        "properties": {
      +          "clicks": {
      +            "type": "integer"
      +          },
      +          "ctr": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "slug": {
      +            "type": "string"
      +          },
      +          "uniqueClicks": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "range": {
      +      "properties": {
      +        "days": {
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "slug": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "slug",
      +    "range",
      +    "pageViews",
      +    "links"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world, so safety behavior is covered elsewhere. The description adds a genuinely useful behavioral fact — that free-plan data is limited to 7 or 30 days — but does not say whether an out-of-range 'days' value errors, is capped, or silently truncates. It also does not mention aggregation granularity beyond 'per day' or any latency/rate characteristics.

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?

Two sentences with no filler, and the data returned is front-loaded. The first sentence is dense and parenthetical-heavy ('as in Insights', 'clicks ÷ views'), which slightly impedes scanning but does not waste words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 structure need not be spelled out, and annotations cover the safety profile. However, for a stats tool whose only parameters are undocumented in the schema, the description should clarify what 'slug' points at and how 'days' interacts with plan limits; those gaps matter for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry both parameters, and it largely does not. 'Slug' is only hinted at via 'on a profile or link page' (unclear whether it is a profile slug, a link slug, or either), and no format or example is given. 'days' is never named; the free-plan sentence only indirectly implies a window length, leaving its 1–365 range and default undocumented in prose.

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 the specific metrics returned: views and visitors (as in Insights), clicks per day, and per-link and per-project clicks and click rate. The verb is implicit ('get/views'), but the resource and output surface are concrete enough to distinguish it from list/edit siblings. It does not clearly separate it from get_insights, which it references rather than contrasts.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no named alternative such as get_insights despite its obvious overlap. The only guidance-like statement is a plan limitation (free plans see 7 or 30 days), which is a constraint rather than a routing rule.

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