mcp-server

v1.0.0
@cortana-ai/mcp-server Checked 1 day ago Published 8 months ago

MCP server for Agent Kong — gives Claude access to attribution, financials, conversations, and CRM data

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_attribution

Get the full attribution table — shows which marketing sources/campaigns/ads drive conversions and revenue. USE THIS WHEN: "Which ad is performing best?", "What's my CPA per channel?", "Where do my best customers come from?", "Show me ROAS by campaign" DRILL-DOWN WORKFLOW: 1. Start with groupBy=source to see top-level channels (Meta, Google, Direct, etc.) 2. Filter by a source and switch to groupBy=campaign to see campaigns within that source 3. Filter by campaign and switch to groupBy=ad to see individual ad performance The response includes: pageViews, leads, conversions (per event type…

ParameterTypeDescription
endDate *stringEnd date ISO 8601
startDate *stringStart date ISO 8601 (e.g., 2026-03-01T00:00:00Z)
adsstringFilter by ad names (pipe-separated)
attributionModelstring
campaignsstringFilter by campaign names (pipe-separated)
currencystringCurrency code (e.g., USD, CAD). Defaults to USD.
eventTypesstringFilter by conversion event types (pipe-separated: "purchase|||lead")
groupBystringDimension to group by
mediumsstringFilter by medium names (pipe-separated)
presetIdstringAttribution preset ID for column configuration
sourcesstringFilter by source names (pipe-separated: "meta|||google")
timezonestringIANA timezone (e.g., America/New_York). Defaults to America/New_York.

get_utms

Get all available UTM values — sources, campaigns, mediums, ads, and their relationships. USE THIS WHEN: You need to know what filter values are available before calling get_attribution. For example, to find out what sources exist before filtering. Returns: { sources: [], campaigns: [], mediums: [], ads: [], hierarchy: { sourceToCampaigns: {}, campaignToMediums: {} } }

get_presets

Get attribution column presets (funnel views). Each preset defines which conversion types are shown in the attribution table. USE THIS WHEN: The user asks about a specific funnel or preset, or you need to know what presetId to pass to get_attribution.

get_stripe_financials

Access Stripe financial data — payments, subscriptions, customers, daily metrics, and products. USE THIS WHEN: "What's my MRR?", "Show me revenue trends", "Who are my top customers?", "What's my churn rate?", "Show me subscription cancellations" MODES: - payments: Payment history with amounts, status, customer info. Filter by date, status, isRecurring. - subscriptions: Active and historical subscriptions with MRR contribution. Filter by status (active/canceled/past_due). - customers: Customer roster with LTV, MRR, churn dates. Sort by -totalRevenue for highest-value customers. - metrics: D…

ParameterTypeDescription
mode *stringWhich Stripe data to fetch
fromstringStart date ISO 8601 (required for metrics and payments)
hasActiveSubscriptionstringFilter customers with active subs (true/false)
isRecurringstringFilter recurring payments only (true/false)
limitnumberResults per page (max 100)
pagenumberPage number
periodTypestringMetric granularity (for metrics mode)
sortstringSort field (e.g., -totalRevenue, -amount, -paymentDate)
statusstringFilter by status (e.g., succeeded, active, canceled)
stripeCustomerIdstringFilter by Stripe customer ID
tostringEnd date ISO 8601 (required for metrics and payments)

get_shopify_data

Access Shopify e-commerce data — orders, customers, products, daily analytics, and abandoned carts. USE THIS WHEN: "What are my top products?", "Show me order trends", "Which customers spend the most?", "What's my cart abandonment rate?", "Show me repeat customers" MODES: - orders: Order history with UTM attribution, line items, financial status. Filter by date, financialStatus, contactId. - customers: Customer roster with RFM segmentation, acquisition source, spend data. Filter by rfmSegment (Champions, Loyal, At Risk, New). - products: Product catalog with revenue, order count, repeat dr…

ParameterTypeDescription
mode *stringWhich Shopify data to fetch
contactIdstringFilter by linked contact ID
financialStatusstringFilter orders by status (paid, pending, refunded)
fromstringStart date ISO 8601 (required for analytics)
limitnumberResults per page (max 100)
pagenumberPage number
productTypestringFilter products by type
rfmSegmentstringFilter customers by RFM segment (Champions, Loyal, At Risk, New)
sortstringSort field (e.g., -totalSpent, -totalRevenue, -orderCreatedAt)
statusstringFilter products by status
tostringEnd date ISO 8601 (required for analytics)

get_whop_data

Access Whop marketplace data — payments, connections, customers, and memberships. USE THIS WHEN: "How's Whop revenue?", "Show me Whop customers", "What's my Whop churn?", "Compare Whop vs Stripe revenue" MODES: - payments: Whop payment events with product info, user details, attribution status. Filter by date, eventType, contactId. - connections: Connected Whop marketplace accounts. - customers: Customer roster with LTV, membership status, churn dates. Sort by -totalRevenue for highest-value customers. - memberships: Membership lifecycle — active, canceled, plan details. Filter by status…

ParameterTypeDescription
mode *stringWhich Whop data to fetch
contactIdstringFilter by linked contact ID
eventTypestringFilter payments by event type (payment.succeeded, membership.went_valid)
fromstringStart date ISO 8601
hasActiveMembershipstringFilter customers by active membership (true/false)
limitnumberResults per page (max 100)
pagenumberPage number
sortstringSort field (e.g., -totalRevenue, -paidAt, -canceledAt)
statusstringFilter by status (active, canceled)
tostringEnd date ISO 8601
whopProductIdstringFilter memberships by product ID

get_conversations

Access conversation data — list conversations or read full message history for a specific conversation. USE THIS WHEN: "What are customers asking about?", "Show me conversations about refunds", "Read this customer's messages", "How is the AI agent performing?" MODES: - list: List conversations with filters. Each has contactId, starred status, replyMode, lastMessageAt. - messages: Get full message history for a specific conversation. Includes sender (AI_AGENT/CONTACT/USER), channel, status. Voice call messages include callLog with duration and recording URL. WORKFLOW: First list conversati…

ParameterTypeDescription
mode *stringlist = list conversations, messages = get messages for a conversation
contactIdstringFilter conversations by contact ID
conversationIdstringConversation ID (required for messages mode)
limitnumberResults per page (max 100)
pagenumberPage number
replyModestringFilter by reply mode (AUTO, MANUAL, HYBRID)
sortstringSort field (e.g., -lastMessageAt, -createdAt)
starredstringFilter starred conversations (true/false)

get_call_data

Access voice call logs and transcripts. USE THIS WHEN: "What questions come up on sales calls?", "What's the average call duration?", "Summarize this customer's calls", "Show me the longest calls" MODES: - list: List call logs with contact info, duration, recording URL. Filter by date range, agentId. Sort by -duration for longest calls. - get: Get a single call log by ID. - transcript: Get the full transcript for a call. Returns JSON transcript data. Use this to analyze what was discussed. WORKFLOW: First list calls to find the one you need, then use transcript mode to read the conversation…

ParameterTypeDescription
mode *stringlist = list calls, get = single call, transcript = call transcript
agentIdstringFilter by AI agent ID
callIdstringCall ID (required for get and transcript modes)
fromstringStart date ISO 8601
limitnumberResults per page (max 100)
pagenumberPage number
sortstringSort field (e.g., -createdAt, -duration)
tostringEnd date ISO 8601

get_contacts

Access CRM contact data and customer journey (tracking sessions). USE THIS WHEN: "Show me this contact's full journey", "Find contacts with email X", "Which contacts have the highest engagement?", "Show me this customer's tracking sessions" MODES: - list: Search and list contacts. Filter by email, phone, tag, search query. Include tags and custom fields with include=tags,customFields. - get: Get a single contact with full details including tags and custom fields. - sessions: Get tracking sessions for a contact — shows their website visits, UTM sources, pages viewed, device info. WORKFLOW…

ParameterTypeDescription
mode *stringlist = search contacts, get = single contact, sessions = tracking sessions
contactIdstringContact ID (required for get and sessions modes)
emailstringFilter by exact email
includestringInclude relations: tags, customFields (comma-separated)
limitnumberResults per page (max 100)
pagenumberPage number
phonestringFilter by exact phone
searchstringSearch across name, email, phone
sortstringSort field (e.g., -createdAt, name)
tagstringFilter by tag name

get_conversion_events

Access conversion events and LTV analysis. USE THIS WHEN: "Show me recent conversions", "What's the average order value?", "Who are my highest LTV contacts?", "Show me conversions from Google Ads" MODES: - list: List conversion entries with filters. Each includes contactId, configName (event type), sourceName, eventValue, currency, attribution data (source, campaign, medium, ad). Sort by -eventValue for highest value. - ltv: Get contacts ranked by lifetime value. Shows total revenue per contact with their acquisition source/campaign. Sort by -ltv for highest LTV. For list mode, you can filt…

ParameterTypeDescription
mode *stringlist = conversion entries, ltv = contacts by lifetime value
configIdstringFilter by conversion config ID
configNamestringFilter by conversion config name (e.g., "purchase", "lead")
contactIdstringFilter by contact ID
fromstringStart date ISO 8601
limitnumberResults per page (max 100, default 20, max 200 for ltv)
pagenumberPage number
sortstringSort field (e.g., -occurredAt, -eventValue, -ltv)
sourceIdstringFilter by conversion source ID
tostringEnd date ISO 8601