Skip to main content
Glama

好縮 Short

Get Link Analytics

get_link_analytics
Read-onlyIdempotent

Query click analytics, top referers, and recent click logs for a specific short link.

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": {
      "code": "<code>"
    },
    "name": "get_link_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesShort code or full short URL (e.g., shgBe2 or https://s.gooo.name/shgBe2)
limitNoMaximum number of recent click events to return (default 20, max 100)

Output Schema

NameRequiredDescriptionDefault
link_idYesShort code
short_urlNoFull short URL
top_referersNoReferer count breakdown
total_clicksYesCumulative clicks
recent_clicksNoRecent click log entries

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/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 openWorldHint=false, so the safety profile is fully covered by structured data. The description adds only that three distinct datasets are returned; it says nothing about the aggregation window for analytics, retention of click logs, behavior on an unknown or expired code, or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence listing exactly what is queried and against what scope, with no filler or redundant restatement of the title.

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-value documentation is unnecessary, and the tool is low complexity. However, for an analytics tool the missing time window of the aggregated data (all-time vs. recent) is a material gap that an agent cannot recover from structured fields.

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?

With 100% schema description coverage, the schema already documents both 'code' (accepting short code or full URL) and 'limit' (default 20, max 100). The description adds no further meaning such as whether analytics params or time ranges can be scoped, 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?

Names a specific verb ('Query') and specific resources (click analytics, top referers, recent click logs) scoped to a single short link. It is distinguishable from get_link_info and list_my_links by the data it returns, though it never explicitly contrasts itself with those siblings.

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 only implied by the purpose: an agent can infer this is the tool for per-link performance data. There is no explicit when-to-use guidance, no mention of when to prefer get_link_info, and no stated prerequisites such as login or ownership of the link.

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