Skip to main content
Glama

get_campaign_impact

Did THAT campaign actually work? Cross-source synthesis tool that measures the real impact of a specific Klaviyo campaign by comparing the post-send window against a DAY-OF-WEEK-ALIGNED baseline (same N days one week earlier). Returns: the campaign metadata, Klaviyo's own attribution claim, the actual Shopify orders/revenue/new-customers in the post-send window, the baseline counterfactual, the lift (window - baseline), and an attributionAnalysis reconciling Klaviyo's claim against measured lift. Use this for 'did the SUMMER20 campaign work?' / 'how did the May newsletter perform?' / 'is my abandoned-cart flow actually driving revenue?'. PREFER this over manually calling get_connector_data(connector:'klaviyo') + get_store_summary and trying to compute lift yourself — the day-of-week-aligned baseline is the right counterfactual and the attribution reconciliation explains the gap between Klaviyo's claim and reality. Pass either campaignId (exact Klaviyo internal ID) or campaignName (fuzzy match; returns the most recent match plus a disambiguation block if multiple found). Default windowDays is 7 — increase for high-consideration purchases with longer journeys.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
storeNoFilter to a specific store domain. Omit to query all connected stores.
_offsetNoPagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page.
campaignIdNoKlaviyo internal campaign ID (exact match). Use this when you already know it; otherwise use campaignName.
windowDaysNoPost-send measurement window in days (default 7). Klaviyo's attribution uses 5 days for campaigns; 7 captures the bulk of impact for most consumer goods. Increase for high-AOV considered purchases (machines, furniture) where buying journeys extend over weeks.
campaignNameNoFuzzy match on campaign name (case-insensitive substring). Returns the most recent match; surfaces a disambiguation block if multiple found.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries full burden and delivers: it enumerates the exact return contents (campaign metadata, Klaviyo attribution claim, Shopify orders/revenue/new-customers, baseline counterfactual, lift, attributionAnalysis), discloses the baseline methodology and its rationale, and explains the disambiguation behavior when campaignName matches multiple records.

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-loads the purpose and methodology, then examples, then the PREFER statement, then parameter guidance — logical ordering. It is dense and long, but most sentences earn their place; the opening rhetorical question is a minor stylistic indulgence.

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?

For a complex no-annotation, no-output-schema synthesis tool, the description covers purpose, methodology, return shape, behavioral edge cases (disambiguation), alternative routing, and parameter tuning — everything an agent needs to call it correctly and interpret the result.

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

Parameters5/5

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

Schema coverage is already 100%, but the description adds genuine value beyond it: it explains the campaignId vs campaignName trade-off (exact vs fuzzy, returns most recent match plus disambiguation block), and justifies the 7-day default with the contrast against Klaviyo's 5-day attribution window and the high-AOV extension case.

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 ('measures the real impact of a specific Klaviyo campaign') and explicitly names the methodology (day-of-week-aligned baseline, post-send window vs same N days one week earlier). Clearly distinguished from siblings like get_marketing_performance and get_store_summary by its cross-source synthesis framing.

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 concrete example queries ('did the SUMMER20 campaign work?', 'is my abandoned-cart flow driving revenue?') and an explicit PREFER-over instruction naming the alternative workflow (get_connector_data + get_store_summary) and why not to use it. Also gives tuning guidance for windowDays.

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