Skip to main content
Glama

Get campaign metrics breakdown

get_campaign_metrics_breakdown
Read-onlyIdempotent

Inspect daily campaign performance by country, including attributed new and returning Spotify listeners. Use returning_listeners to explore repeat listening, not as a cohort retention rate. Do not sum daily listeners into unique audience totals; use get_campaign_metrics_overview for the whole-window total. Follow pagination for complete comparisons.

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": {
      "campaignId": "<campaignId>"
    },
    "name": "get_campaign_metrics_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 1.
sortByNoField to sort by.report_date
endDateNoEnd of the date range, YYYY-MM-DD or an ISO-8601 timestamp.
pageSizeNoRows per page, 1 to 500.
sortOrderNoSort direction.desc
startDateNoStart of the date range, YYYY-MM-DD or an ISO-8601 timestamp.
campaignIdYesSoundlink campaign ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world safety. The description adds real analytical caveats not in annotations: daily rows are not additive into unique audiences, returning_listeners is not a cohort retention rate, and pagination must be followed for complete comparisons. Return shape isn't described, but no output schema exists, leaving that as the one gap.

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?

Three tightly packed sentences, each earning its place: purpose first, then metric interpretation warning, then aggregation and pagination guidance. No 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?

Complete enough for a read-only metrics query: grain, metric caveats, aggregation pitfall, alternative tool, and pagination are all covered. Only the absence of return-value detail and pagination response shape keeps it from a 5, and the annotations carry the safety profile.

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%, so all seven parameters including date range, sort, and pagination are already documented. The description only adds pagination behavioral guidance, which is largely a usage caveat rather than parameter semantics. Baseline 3 fits.

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 and resource: inspect daily campaign performance broken down by country, with attributed new and returning listeners. The daily-by-country grain distinguishes it from the whole-window overview sibling.

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?

Explicitly routes the agent: do not sum daily listeners, use get_campaign_metrics_overview for whole-window totals, and use returning_listeners correctly. Both when-to-use and a named alternative 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.

Resources