@apex-inc/mcp-server 0.55.1 → 0.55.3
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.
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +36 -3
- package/dist/auth.js.map +1 -1
- package/dist/screenshot-cli.d.ts +6 -0
- package/dist/screenshot-cli.d.ts.map +1 -1
- package/dist/screenshot-cli.js +21 -6
- package/dist/screenshot-cli.js.map +1 -1
- package/dist/setup-catchup-tools.d.ts +4 -0
- package/dist/setup-catchup-tools.d.ts.map +1 -1
- package/dist/setup-catchup-tools.js +6 -1
- package/dist/setup-catchup-tools.js.map +1 -1
- package/dist/tool-groups.d.ts.map +1 -1
- package/dist/tool-groups.js +10 -0
- package/dist/tool-groups.js.map +1 -1
- package/dist/tools/ad-platforms.js +1 -1
- package/dist/tools/ad-platforms.js.map +1 -1
- package/dist/tools/campaign-content.d.ts +181 -0
- package/dist/tools/campaign-content.d.ts.map +1 -0
- package/dist/tools/campaign-content.js +157 -0
- package/dist/tools/campaign-content.js.map +1 -0
- package/dist/tools/context.js +1 -1
- package/dist/tools/context.js.map +1 -1
- package/dist/tools/experiments.js +4 -4
- package/dist/tools/experiments.js.map +1 -1
- package/dist/tools/organic-posts.d.ts +146 -0
- package/dist/tools/organic-posts.d.ts.map +1 -0
- package/dist/tools/organic-posts.js +130 -0
- package/dist/tools/organic-posts.js.map +1 -0
- package/dist/tools.d.ts +326 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +4 -0
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
- package/skills/apex-experimentation/SKILL.md +7 -7
- package/skills/apex-growth-intelligence/SKILL.md +9 -6
- package/skills/apex-integration-cookbook/SKILL.md +12 -2
|
@@ -32,7 +32,7 @@ Belief → Hypothesis → Prediction → Experiment → Outcome → Updated Beli
|
|
|
32
32
|
| `evaluate_feature` | Pre-build decision: should we invest in this? Uses beliefs + experiment history |
|
|
33
33
|
| `get_channel_economics` | "Where should my next dollar go?" — GM-adjusted LTV:CAC, payback, and CAC per acquisition channel, split acquisition vs leverage |
|
|
34
34
|
| `get_growth_reality` | "Is our growth real?" — per-goal lift vs the do-nothing global holdout, with 95% CIs |
|
|
35
|
-
| `create_experiment` (`surface: "paid_channel"`) + `attach_ad_exclusion` + `verify_ad_exclusion` | "Do these ads cause installs?"
|
|
35
|
+
| `create_experiment` (`surface: "paid_channel"`) + `attach_ad_exclusion` + `verify_ad_exclusion` | "Do these ads cause installs?": an Ad holdout on Meta ad sets or Google campaigns; the causal read for a paid channel. On Meta, Apex puts the list on the ad sets itself after the owner has seen the before/after. On Google, the owner adds it as a campaign exclusion and Apex checks it |
|
|
36
36
|
| `list_belief_suggestions` + `accept_belief_suggestion` | "What did that test teach us?" — a settled experiment worth writing down as one belief. Statistical gate only; the owner edits the sentence, Apex keeps the numbers |
|
|
37
37
|
|
|
38
38
|
## MCP resources
|
|
@@ -152,9 +152,12 @@ How to reason with it:
|
|
|
152
152
|
*runs* something (a test, an optimizer, AI narration), not the measurement.
|
|
153
153
|
- **Action boundary:** owned channels get an in-Apex action; paid channels get
|
|
154
154
|
advice the merchant applies in their ad platform. Apex does not change bids,
|
|
155
|
-
budgets, or creative on Meta/Google.
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
budgets, or creative on Meta/Google. Beyond the conversions and buyer lists the
|
|
156
|
+
owner turned on, the only edit it makes inside an ad account is for an Ad
|
|
157
|
+
holdout on Meta: it adds one **do-not-show list** as an exclusion on the ad
|
|
158
|
+
sets the owner picked, and takes it off when the test ends. That happens only
|
|
159
|
+
after the owner agreed to hashed emails going there and saw the before/after.
|
|
160
|
+
On Google the owner adds the exclusion; Apex only builds the list and checks it.
|
|
158
161
|
|
|
159
162
|
For the causal ground truth behind a channel's number, pair it with
|
|
160
163
|
`get_growth_reality` (holdout-based lift). Attribution is directional;
|
|
@@ -162,8 +165,8 @@ incrementality is causal.
|
|
|
162
165
|
|
|
163
166
|
For a *paid* channel specifically, the causal answer is an **Ad holdout**
|
|
164
167
|
(`create_experiment` with `surface: "paid_channel"`, see apex-experimentation
|
|
165
|
-
→ "Three holdouts, three questions"): Apex holds a share of the
|
|
166
|
-
people back from the
|
|
168
|
+
→ "Three holdouts, three questions"): on Meta or Google, Apex holds a share of the
|
|
169
|
+
workspace's known people back from the ads and counts installs in both lanes. Quote the two
|
|
167
170
|
lane rates, not the network's claimed conversions; nothing counts until
|
|
168
171
|
`verify_ad_exclusion` says the list is on every ad set.
|
|
169
172
|
|
|
@@ -354,6 +354,16 @@ When the same launch runs on Meta, Google, LinkedIn and TikTok, each platform ha
|
|
|
354
354
|
|
|
355
355
|
Each platform keeps its own attribution, so the columns are not added into one cost per result unless the owner turns that on in the dashboard. Do not make a second Apex Campaign with the same name; `create_apex_campaign` refuses it.
|
|
356
356
|
|
|
357
|
+
## Recipe: one piece of content, organic and paid side by side
|
|
358
|
+
|
|
359
|
+
A piece of content is the variant its links carry (`utm_content`). When the same post goes out as an Instagram post, a LinkedIn post and a Meta ad, give every place the same campaign and the same variant, and Apex shows that content once with what its organic posts and its ads each brought.
|
|
360
|
+
|
|
361
|
+
1. `create_apex_links_for_content({ campaign_id, variant, destination, places: [{ placement: "social-post", platform: "instagram" }, { placement: "social-post", platform: "linkedin" }, { placement: "paid-ad", platform: "meta" }] })` makes one link per place in one call. Use `campaign` (a name) when there is no saved Apex Campaign. All or nothing: one bad place makes no links.
|
|
362
|
+
2. Once a post is up, `set_apex_link_post({ slug, post_url })` saves where the link went. YouTube, TikTok and X posts show their cover and title.
|
|
363
|
+
3. `get_campaign_content({ campaign_id })` answers "which post worked, and did it work better organic or paid?": one row per variant with organic, paid and total. Organic never carries spend, so never divide organic results by ad spend. `rename_campaign_content` gives a variant the owner's name ("Founder story").
|
|
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
|
+
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
|
+
|
|
357
367
|
## Recipe: Apex Links for app installs (Mobile Measurement)
|
|
358
368
|
|
|
359
369
|
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.
|
|
@@ -381,7 +391,7 @@ Experiments live under `apex.experiments.*` (`list`, `get`, `getResults`, `activ
|
|
|
381
391
|
|
|
382
392
|
## Recipe: Buyer lists on ad platforms (MCP)
|
|
383
393
|
|
|
384
|
-
A buyer list is one of the workspace's segments, kept on Meta, Google or
|
|
394
|
+
A buyer list is one of the workspace's segments, kept on Meta, Google or TikTok by Apex and refreshed every day. The owner picks it on an ad set once, to leave buyers out of prospecting or to find more people like them. Same as Attribution → Ad platforms → Who sees your ads.
|
|
385
395
|
|
|
386
396
|
1. `list_audiences` shows each list, its segment, the goal it was made for, the platforms it goes to, the platforms it actually reached, and how many people it holds back.
|
|
387
397
|
2. `update_audience` changes where a list goes (`platforms`) or how many people are held back (`holdout_percent`: 0, 5, 10 or 20). 0 stops holding anyone back. Dropping a platform the list already reached deletes the list there, which cannot be undone. Without `confirm_delete: true` the tool changes nothing and lists those platforms in `would_delete_from`; ask the owner, then call again with it. A platform that refuses the delete comes back in `refused`.
|
|
@@ -391,7 +401,7 @@ A held-back list that belongs to an Ad holdout experiment is the experiment's. T
|
|
|
391
401
|
|
|
392
402
|
When someone asks to be deleted or opts out of ads, Apex takes them off every list right away. If a platform refuses or isn't connected, they stay on it, and `list_audience_removals` shows them: how many each list still owes per platform, why, and what the platform said. Apex retries every day for 30 days, then stops (`stopped_retrying`) and waits for the owner. Tell the owner plainly that people who asked to be removed are still being shown ads there. If `why` is `not_connected`, the owner reconnects the platform; then call `retry_audience_removals` with the list's id, which also tries the ones Apex stopped on. Its `still_owed` says who is left.
|
|
393
403
|
|
|
394
|
-
To add a list, start from what the owner wants its ads to do. `list_audience_goals` returns four goals: `win_back` (bought, but not within `window_days`, which comes from the workspace's kind of business), `stop_paying` (everyone who ever bought, left out of ads for new people), `interested` (added to cart or started checkout in the last 30 days and never bought; `locked` until those events arrive) and `lookalike` (everyone who bought, with what each spent, for a Meta value-based lookalike). Each says where its list can go now (`networks`) and which lists the workspace already made for it (`lists`). If a goal already has a list, ask whether they want another rather than a copy. Tell the owner who goes and where, then call `add_audience` with the goal and `confirm: true`. Apex saves the goal's rule as a segment named after the list, so the owner can change who's on it in Segments, and sends the list right away unless `send_now: false`. The result's `sent` says how many people each platform took. Spend goes only to Meta: neither
|
|
404
|
+
To add a list, start from what the owner wants its ads to do. `list_audience_goals` returns four goals: `win_back` (bought, but not within `window_days`, which comes from the workspace's kind of business), `stop_paying` (everyone who ever bought, left out of ads for new people), `interested` (added to cart or started checkout in the last 30 days and never bought; `locked` until those events arrive) and `lookalike` (everyone who bought, with what each spent, for a Meta value-based lookalike). Each says where its list can go now (`networks`) and which lists the workspace already made for it (`lists`). If a goal already has a list, ask whether they want another rather than a copy. Tell the owner who goes and where, then call `add_audience` with the goal and `confirm: true`. Apex saves the goal's rule as a segment named after the list, so the owner can change who's on it in Segments, and sends the list right away unless `send_now: false`. The result's `sent` says how many people each platform took. Spend goes only to Meta: neither Google's nor TikTok's list upload takes it, so a list that carries spend reaches them as the same people without it. Say so rather than calling a Google or TikTok list value-based.
|
|
395
405
|
|
|
396
406
|
Before sending one of the workspace's own events (a trial start, a booked demo) to its ad platforms, call `preview_ad_platform_send` with the event name and what it means (`purchase`, `lead`, `signup`, `subscription`, `add_to_cart`, or `something_else`). Show the owner which platforms would hear it, under what name, and which can't and why, plus the `estimate`: how often it happened in the last 30 days and what a month of sends costs at the workspace's price. It saves and sends nothing.
|
|
397
407
|
|