Skip to main content
Glama

Get campaign metrics engagement export

get_campaign_metrics_engagement_export
Read-onlyIdempotent

Download a campaign engagement breakdown as JSONL. Omit both dates for the API default (last 90 days). A wider range returns an error from the API. engagementContext filters to catalog or playlist; omit it to return both.

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_engagement_export"
  }
}

Input Schema

NameRequiredDescriptionDefault
endDateNoEnd of the date range, YYYY-MM-DD or an ISO-8601 timestamp.
startDateNoStart of the date range, YYYY-MM-DD or an ISO-8601 timestamp.
campaignIdYesSoundlink campaign ID.
engagementContextNoRestrict engagement to catalog or playlist listening.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, closed-world, non-destructive call, so the safety profile is covered. The description adds real behavior beyond that: the 90-day default window, an explicit API error for wider ranges, and the fact that engagementContext expands rather than narrows results when omitted. It does not mention any rate limits or export size ceilings.

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?

Four short sentences, each carrying one distinct piece of information: what is returned, the date default, the range error, and the filter default. The core verb-and-resource statement is front-loaded and nothing is repeated from the schema.

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 read-only export with full schema coverage and no output schema, the description covers the failure modes and defaults an agent needs to call it correctly. The one gap is that it never characterizes the JSONL payload (record granularity or fields), which matters somewhat for an export tool the agent may pass downstream.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: omitting both dates triggers a server-side 90-day default, out-of-range spans fail rather than truncate, and engagementContext is inclusive by default. That defaulting and failure behavior is exactly the kind of semantics an agent cannot read off 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?

"Download a campaign engagement breakdown as JSONL" gives a specific verb, resource, and output format, so the agent knows exactly what it gets back and can distinguish it from the sibling get_campaign_metrics_engagement (non-export). It never explicitly names that sibling, though, so the export-vs-inline distinction is inferred from the JSONL format rather than stated.

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 description gives concrete calling rules for the date range (omit both for the API default of last 90 days, wider ranges error out), which is genuine usage guidance. It offers no guidance on when to choose this tool over the sibling non-export engagement endpoint or over the soundlink variants, so the choice between alternatives is left implied.

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