Skip to main content
Glama

Link analytics · 链接统计(短.在线)

get_link_analytics
Read-onlyIdempotent

汇总点击统计。period 为 7d、30d 或 90d,截至昨天。clicks 是窗口内全部已存储点击,含机器人,不是人数。qr_clicks 只计人类且带二维码标记的点击,不含机器人。少于 5 次并入 other。 Aggregate click statistics. period is 7d, 30d, or 90d, ending yesterday. clicks counts every stored click row in the window, including bots, and is not a count of people. qr_clicks counts human QR-tagged clicks only. Counts under 5 fold into other. Country data: IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0. If you show country data, show this credit.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "example",
      "period": "30d"
    },
    "name": "get_link_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesShort code of a link you own.
periodNo7d, 30d, or 90d. Free can use 7d. Pro and Business can use 7d, 30d, and 90d. Omit for the plan default.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "id": "example"
      +  }
      +]
    • addedInput schema / properties / id / description
      Added value: +"Short code / link id. get_link_analytics is not available yet; this call does not return analytics."
  4. Changed22 schema fields changed
    • removedInput schema / properties / from
      Removed value: -{
      -  "description": "Window start ISO8601 UTC (default last 7 days)",
      -  "type": "string"
      -}
    • removedInput schema / properties / granularity
      Removed value: -{
      -  "description": "Set day to include daily series",
      -  "type": "string"
      -}
    • removedInput schema / properties / id / description
      Removed value: -"Short code / link id you own"
    • removedInput schema / properties / include
      Removed value: -{
      -  "description": "Set all_traffic to add all_clicks",
      -  "type": "string"
      -}
    • removedInput schema / properties / to
      Removed value: -{
      -  "description": "Window end ISO8601 UTC",
      -  "type": "string"
      -}
    • removedOutput schema / properties / all_clicks
      Removed value: -{
      -  "type": "number"
      -}
    • addedOutput schema / properties / code / const
      Added value: +"FEATURE_NOT_AVAILABLE"
    • removedOutput schema / properties / countries
      Removed value: -{
      -  "items": {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / devices
      Removed value: -{
      -  "items": {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / error / const
      Added value: +"FEATURE_NOT_AVAILABLE"
    • addedOutput schema / properties / feature
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / human_clicks
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / link_id
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / ok / const
      Added value: +false
    • removedOutput schema / properties / qr_tagged_visits
      Removed value: -{
      -  "type": "number"
      -}
    • removedOutput schema / properties / referrers
      Removed value: -{
      -  "items": {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • addedOutput schema / properties / retryable / const
      Added value: +false
    • removedOutput schema / properties / series
      Removed value: -{
      -  "items": {
      -    "additionalProperties": {},
      -    "propertyNames": {
      -      "type": "string"
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / short_code
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / tool
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / window
      Removed value: -{
      -  "additionalProperties": {},
      -  "propertyNames": {
      -    "type": "string"
      -  },
      -  "type": "object"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "request_id"
      -]New value: +[
      +  "ok",
      +  "error",
      +  "code",
      +  "feature",
      +  "tool",
      +  "message",
      +  "request_id",
      +  "retryable"
      +]
  5. Changed22 schema fields changed
    • addedInput schema / properties / from
      Added value: +{
      +  "description": "Window start ISO8601 UTC (default last 7 days)",
      +  "type": "string"
      +}
    • addedInput schema / properties / granularity
      Added value: +{
      +  "description": "Set day to include daily series",
      +  "type": "string"
      +}
    • addedInput schema / properties / id / description
      Added value: +"Short code / link id you own"
    • addedInput schema / properties / include
      Added value: +{
      +  "description": "Set all_traffic to add all_clicks",
      +  "type": "string"
      +}
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "Window end ISO8601 UTC",
      +  "type": "string"
      +}
    • addedOutput schema / properties / all_clicks
      Added value: +{
      +  "type": "number"
      +}
    • removedOutput schema / properties / code / const
      Removed value: -"FEATURE_NOT_AVAILABLE"
    • addedOutput schema / properties / countries
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / devices
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / error / const
      Removed value: -"FEATURE_NOT_AVAILABLE"
    • removedOutput schema / properties / feature
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / human_clicks
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / link_id
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / ok / const
      Removed value: -false
    • addedOutput schema / properties / qr_tagged_visits
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / referrers
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / retryable / const
      Removed value: -false
    • addedOutput schema / properties / series
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "propertyNames": {
      +      "type": "string"
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / short_code
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / tool
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / window
      Added value: +{
      +  "additionalProperties": {},
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "error",
      -  "code",
      -  "feature",
      -  "tool",
      -  "message",
      -  "request_id",
      -  "retryable"
      -]New value: +[
      +  "ok",
      +  "request_id"
      +]
  6. Changed2 schema fields changed
    • removedOutput schema / properties / soft_c_state
      Removed value: -{
      -  "const": "not_live",
      -  "type": "string"
      -}
    • changedOutput schema / required
      Previous value: -[
      -  "ok",
      -  "error",
      -  "code",
      -  "feature",
      -  "tool",
      -  "message",
      -  "soft_c_state",
      -  "request_id",
      -  "retryable"
      -]New value: +[
      +  "ok",
      +  "error",
      +  "code",
      +  "feature",
      +  "tool",
      +  "message",
      +  "request_id",
      +  "retryable"
      +]
  7. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so safety is covered. The description adds substantial semantics beyond that: clicks includes bot rows and is explicitly not a people count, qr_clicks is human QR-tagged only, sub-5 counts are folded into 'other', the window ends yesterday, and country data carries a DB-IP CC BY 4.0 attribution requirement the agent must surface.

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 description is front-loaded with the core purpose and each sentence carries distinct information about metric semantics or attribution. The full Chinese/English duplication roughly doubles length without adding content, which keeps it from a 5.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return structure need not be described, and the remaining ambiguity an agent would face — what clicks versus qr_clicks actually measure, how small buckets behave, and the attribution obligation — is all addressed explicitly. Nothing needed to call and correctly report this tool is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: the period window is anchored to end yesterday, and small counts are bucketed into 'other'. It does not explain the required id beyond the schema's 'short code of a link you own'.

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 opens with a specific verb and resource ('Aggregate click statistics'), which is far more informative than the title or name alone and clearly separates it from retrieval siblings such as get_link or get_links. It never names an alternative tool or states that it operates on a single owned link, so it falls 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 by the verb and by the period guidance (7d/30d/90d, ending yesterday, plan-gated), so an agent can infer when aggregation is appropriate. However, there is no explicit when-to-use versus when-not, and no mention of sibling tools or prerequisites such as ownership or plan tier limits beyond what the schema already says.

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