@apex-inc/mcp-server 0.57.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -364,6 +364,24 @@ A piece of content is the variant its links carry (`utm_content`). When the same
364
364
  4. `get_network_performance()` answers "what did each social network bring?": organic, paid, `ad_or_post` (a Meta click with no tag, which may be either) and total per network, each person counted once. Visits with no tag count for the network that sent them, so organic shows up even without Apex Links.
365
365
  5. For the posts themselves, connect the accounts the shop posts from: `start_integration_install({ type: "meta-organic" })` for Facebook Page Posts, `instagram-organic` for Instagram Posts, `start_integration_install({ type: "tiktok-organic" })` for TikTok Posts, `youtube-organic` for YouTube Posts, `threads-organic` for Threads Posts, `linkedin-pages` for LinkedIn Page Posts. These are separate from the ads connections on the same networks. One sign-in can share several Pages or accounts, so after it the owner ticks the ones that belong to this workspace on the connection's page, and Apex reads only those. Then `list_organic_posts()` answers "which of my posts worked?" and `list_organic_followers({ days: 30 })` answers "are my accounts growing?" (the change counts from the day the account was connected). A post Meta also ran as an ad shows once, marked boosted, with the ad's spend; the boosted mark needs Meta Ads connected too. A post with no Apex Link can come back from `get_organic_post` with a `suggestion`: the campaign version it looks like, because another post carrying that version's link has the same picture or nearly the same caption. Ask the owner. Yes is `link_organic_post({ postId, apexLinkSlug: suggestion.linkRef })`; no is `decline_organic_post_suggestion` with the same link, and Apex stops suggesting it for that post.
366
366
 
367
+ ## Recipe: which effort is bringing my key event
368
+
369
+ The owner asks "which campaign is getting me signups?" or "is the podcast worth it?". `get_efforts` answers on one ruler for every kind of effort.
370
+
371
+ 1. `list_conversions` shows the key events; the starred one is the goal. If the owner names a different goal, `set_primary_conversion` first so every report leads with it.
372
+ 2. `get_efforts({ grain: "campaign" })` lists each campaign with spend, people, how many reached each key event and the cost of each. Rows marked `›` open: `get_efforts({ grain: "ad", parent_grain: "campaign", parent_ref: "<ref>" })` lists that campaign's ads. Use `grain: "link"` or `"post"` for Apex Links and posts.
373
+ 3. `compare: "previous"` adds each row's earlier figures. `people_of: "<ref>"` lists who a row brought, with the key events they reached and the path they came by.
374
+ 4. Quote spend of "—" as not recorded, never $0. A partner, podcast or post with no spend has no cost per result; do not divide.
375
+ 5. Before telling the owner to move money, `list_next_moves({ grain: "campaign", ref: "<ref>" })`. When Apex holds advice back, it says what would change the call; repeat that instead of advising on a small count.
376
+
377
+ ## Recipe: compare credit rules
378
+
379
+ The owner asks "would LinkedIn look better under linear?". Credit is worked out when read, so a rule can be tried without changing anything.
380
+
381
+ 1. `get_efforts({ grain: "channel" })` reads under the workspace's rule; the reply names it.
382
+ 2. `get_efforts({ grain: "channel", credit_model: "linear" })` reads the same people under the other rule. Compare the two rows for the channel.
383
+ 3. Only if the owner wants the change everywhere, `set_attribution_model({ attribution_model: "linear" })`. Attribution re-credits everyone, including people who signed up before. Channels keeps the rule each person signed up under.
384
+
367
385
  ## Recipe: Apex Links for app installs (Mobile Measurement)
368
386
 
369
387
  An Apex Link is a short URL that routes to the App Store / Play Store when the app is not installed and carries the click through to the first open (deferred deep link). Apex credits the install to the link's campaign and sends it back to the ad network the click came from.