Skip to main content
Glama

Dub MCP by usefulapi

Get analytics

dub_get_analytics
Read-only

Get aggregated click, lead and sale analytics, grouped by a dimension such as country, device, referer or top links. The main reporting read. Dub: GET /analytics.

Input Schema

NameRequiredDescriptionDefault
endNoISO-8601 end of an absolute range.
keyNoThe short key, used with domain.
eventNoWhich event type to report. Defaults to clicks.
startNoISO-8601 start of an absolute range.
deviceNoFilter to one device type.
domainNoOnly links on this domain.
linkIdNoOnly this link.
countryNoFilter to one country code.
groupByNoDimension to group by, e.g. count, timeseries, top_links, countries, cities, devices, browsers, os, referers, utm_sources.
intervalNoRelative time window. Use start/end instead for an absolute range.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The readOnlyHint annotation already establishes this is a safe read. The description adds real value by disclosing that results are aggregated and grouped by a dimension, and that click/lead/sale events are covered. It stays silent on pagination, rate limits, and response shape for a 10-parameter tool with no output schema.

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?

Front-loaded and compact: the capability, then the grouping dimension, then positioning. The trailing 'Dub: GET /analytics.' is mildly useful API mapping but the least valuable sentence and borders on filler.

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

Completeness4/5

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

For a 10-param analytics endpoint with full schema coverage and no output schema, the description covers purpose, aggregation semantics, and grouping adequately. It would be stronger if it hinted at the response shape (totals vs timeseries) since no output schema exists to do that job.

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% with 10 well-described parameters, including documented enums for event and interval, so the baseline is 3. The description restates the event types and gives dimension examples that mirror the groupBy enum, adding no syntax or interaction detail beyond the schema.

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?

States a specific verb and resource ('Get aggregated click, lead and sale analytics') plus the grouping capability and the covered event types. 'The main reporting read' positions it as the primary analytics endpoint, though it does not explicitly name dub_get_partner_analytics as the sibling it differs from.

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 phrase 'The main reporting read' – an agent can infer this is the default reporting tool, but there is no explicit when-to-use, when-not-to-use, or comparison against dub_get_partner_analytics or dub_count_links. No prerequisites or exclusions are given.

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.