Skip to main content
Glama

Get click stats

get_link_stats
Read-onlyIdempotent

Click totals, top countries and the weekday/hour heatmap for one link. Useful to answer "how is this link doing?".

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
idYesThe link id (UUID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so the safety profile is covered. The description adds value by outlining the data returned (useful since there is no output schema), but it omits a significant behavioral detail for a stats tool: the time window or default aggregation period, and whether results can be truncated.

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 short sentences with the returned data front-loaded and the usage cue second; nothing is redundant. The second sentence is close to filler, but it earns its place as the only usage signal.

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?

With no output schema, the description carries the burden of describing return values, and it does list the three data groups. However, for a statistics tool it leaves out the measurement window and any result-size expectations, which an agent would need to interpret or present the numbers 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 coverage is 100% and the single parameter (link id, UUID) is fully documented in the schema itself. The description only reinforces 'for one link' and adds no format or edge-case detail, so the baseline of 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 the concrete payload returned for a single link (click totals, top countries, weekday/hour heatmap), which is enough to separate it from get_link and list_links in intent. The verb is only implied by the title, but the resource and output scope are specific.

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?

The phrase 'Useful to answer "how is this link doing?"' gives a usage scenario, so the intent is clear. There is no explicit when-not guidance or named alternative (e.g. account_info for account-wide totals, get_link for metadata), leaving routing to inference.

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