Skip to main content
Glama

nevent_get_short_url_metrics

Read-only

Get aggregated click analytics for a specific short URL over a time window (default 30 days). Use after nevent_list_short_urls to get the id. Returns: totalClicks, uniqueVisitors, firstClickAt, lastClickAt, clicksByDay (date → count), clicksByCountry, clicksByDevice (mobile/desktop/tablet), clicksByBrowser, clicksByOs, topReferers. Use for performance analysis of individual tracking links. For campaign-wide aggregation across all user links, use nevent_get_short_url_campaign_metrics instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMongoDB ObjectId of the short URL (24 hex characters). Obtain from nevent_list_short_urls response field "id".
daysNoNumber of days to include in metrics calculation. Default: 30. Max: 365. Use 7 for last week, 30 for last month, 90 for last quarter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is known. The description adds meaningful behavioral context: the tool returns aggregated metrics, uses a default 30-day window, and enumerates the exact dimensions and aggregates returned. This goes beyond what annotations capture.

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?

The description is information-dense without being bloated. It front-loads the core purpose and prerequisite, then lists return fields, then gives the primary use case and alternative. Every sentence earns its place.

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?

Given no output schema, the description compensates by listing all key return fields and dimensions. It also covers how to obtain the required id, the meaning of the optional `days` parameter, and the sibling tool to use instead for campaign-level metrics. Nothing essential for a read-only metrics tool is missing.

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 both `id` and `days` fully, including defaults, bounds, and suggested values. The description reinforces the id origin and default window, but adds little semantic value beyond the schema; therefore the baseline 3 is appropriate.

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 ('Get'), a specific resource ('aggregated click analytics for a specific short URL'), and a clear scope ('over a time window'). It also distinguishes itself from the campaign-level sibling by explicitly naming nevent_get_short_url_campaign_metrics and limiting this tool to individual tracking links.

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

Usage Guidelines5/5

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

Provides explicit sequencing guidance: use after nevent_list_short_urls to obtain the `id`. It also gives the exact use case ('performance analysis of individual tracking links') and names the alternative for campaign-wide aggregation. The agent receives clear when-to-use and when-not-to-use direction.

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.