@datadive-tools/mcp 0.10.0 → 0.11.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.
package/dist/index.js CHANGED
@@ -105,7 +105,7 @@ function extractMessage(body) {
105
105
  }
106
106
 
107
107
  // package.json
108
- var version = "0.10.0";
108
+ var version = "0.11.0";
109
109
 
110
110
  // src/http/client.ts
111
111
  var PKG_VERSION = version;
@@ -173,6 +173,23 @@ async function httpPost(ctx, path, body) {
173
173
  }
174
174
  return handleResponse(res);
175
175
  }
176
+ async function httpDelete(ctx, path) {
177
+ const url = buildUrl(ctx.config.baseUrl, path);
178
+ let res;
179
+ try {
180
+ res = await fetch(url, {
181
+ method: "DELETE",
182
+ headers: {
183
+ ...authHeaders(ctx.config),
184
+ accept: "application/json",
185
+ "user-agent": userAgent(ctx.toolName)
186
+ }
187
+ });
188
+ } catch (e) {
189
+ throw networkError(url, e);
190
+ }
191
+ return handleResponse(res);
192
+ }
176
193
  function networkError(url, e) {
177
194
  const msg = e instanceof Error ? e.message : String(e);
178
195
  return new ApiError("network", 0, `Network error reaching ${url}: ${msg}`);
@@ -224,36 +241,20 @@ function isObject(v) {
224
241
  // src/tools/list-niches.ts
225
242
  var LIST_NICHES_MAX_PAGE_SIZE = 50;
226
243
  var inputSchema = {
227
- currentPage: z.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1. Keep requesting the next page while `hasNext` is true."),
228
- pageSize: z.number().int().min(1).max(LIST_NICHES_MAX_PAGE_SIZE).optional().describe(`Items per page (max ${LIST_NICHES_MAX_PAGE_SIZE}). Defaults to 20.`),
229
- searchText: z.string().trim().min(1).max(200).optional().describe(
230
- "Case-insensitive partial match on the niche label or hero keyword. Prefer this over paging through everything when the user names a niche."
231
- ),
232
- searchAsin: z.string().trim().regex(/^[A-Za-z0-9]{10}$/, "must be a 10-character ASIN").optional().describe("Only niches whose competitor set contains this ASIN (10 characters, e.g. B08N5WRWNW)."),
233
- orderBy: z.enum(["lastDived", "name"]).optional().describe(
234
- "Sort field: `lastDived` (by latestResearchDate, newest first by default) or `name` (by nicheLabel, A\u2192Z by default). Defaults to `lastDived`."
235
- ),
236
- sortOrder: z.enum(["ASC", "DESC"]).optional().describe("Sort direction. Defaults to DESC for `lastDived` and ASC for `name`.")
244
+ currentPage: z.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
245
+ pageSize: z.number().int().min(1).max(LIST_NICHES_MAX_PAGE_SIZE).optional().describe(`Items per page (max ${LIST_NICHES_MAX_PAGE_SIZE}). Defaults to 20.`)
237
246
  };
238
247
  var listNichesTool = {
239
248
  name: "list_niches",
240
249
  title: "List DataDive Niches",
241
- description: `Use this first when the user asks about their niches, or to find a \`nicheId\` for use with \`get_niche_keywords\`, \`get_niche_competitors\`, or \`get_ranking_juice\`. Retrieves a paginated list of Niches, newest dive first. Each Niche represents a market segment or product category being tracked. Returns nicheId, heroKeyword, nicheLabel, marketplace (com/uk/de/...), and latestResearchDate per niche, plus pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev). Narrow with \`searchText\` (label/keyword) or \`searchAsin\` (a competitor ASIN) instead of scanning pages; a page holds at most ${LIST_NICHES_MAX_PAGE_SIZE} niches, so the full list of a large account needs several calls.`,
250
+ description: "Use this first when the user asks about their niches, or to find a `nicheId` for use with `get_niche_keywords`, `get_niche_competitors`, or `get_ranking_juice`. Retrieves the Niches of the account. Each Niche represents a market segment or product category being tracked. Returns nicheId, heroKeyword, nicheLabel, marketplace (com/uk/de/...), and latestResearchDate per niche, plus pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev). TEMPORARY LIMITATION: the API does not apply paging yet, so a single call returns every niche of the account whatever `currentPage` and `pageSize` say, and the pagination metadata describes a page that was not applied. Read the whole `data` array and filter it yourself; do not walk `currentPage` while `hasNext` is true, because every page repeats the same rows. Accounts with many niches therefore return a large response. There is no server-side search or sorting.",
242
251
  inputSchema,
243
252
  annotations: { readOnlyHint: true },
244
253
  handler: async (args, ctx) => {
245
- return await httpGet(
246
- { config: ctx.config, toolName: "list_niches" },
247
- "/v1/niches",
248
- {
249
- currentPage: args.currentPage,
250
- pageSize: args.pageSize,
251
- searchText: args.searchText,
252
- searchAsin: args.searchAsin,
253
- orderBy: args.orderBy,
254
- sortOrder: args.sortOrder
255
- }
256
- );
254
+ return await httpGet({ config: ctx.config, toolName: "list_niches" }, "/v1/niches", {
255
+ currentPage: args.currentPage,
256
+ pageSize: args.pageSize
257
+ });
257
258
  }
258
259
  };
259
260
 
@@ -303,7 +304,7 @@ var inputSchema4 = {
303
304
  var getNicheCompetitorsTool = {
304
305
  name: "get_niche_competitors",
305
306
  title: "Get Competitors and Niche Statistics",
306
- description: "Use this for competitor ASINs, sales/revenue benchmarks, or niche opportunity scoring. Retrieves the list of Competitors within the specified Niche along with Niche statistics. For the Niche: keyword statistics, opportunity evaluation, benchmark median values, and overall competitor strength assessment. For each Competitor: ASIN, sales, revenue, ratings, reviews, price, image URL, and ranking data.",
307
+ description: "Use this for competitor ASINs, product titles, BSR, sales/revenue benchmarks, or niche opportunity scoring. Retrieves the list of Competitors within the specified Niche along with Niche statistics. For the Niche: keyword statistics, opportunity evaluation, benchmark median values, and overall competitor strength assessment. For each Competitor: ASIN, product title, BSR, category and full category tree, sales, revenue, ratings, reviews, price, number of variations, image URL, total Ranking Juice, and ranking data. BSR supports ranking Competitors by sales position within mentioned category. For the Ranking Juice breakdown by title, bullets and description, use `get_ranking_juice`.",
307
308
  inputSchema: inputSchema4,
308
309
  annotations: { readOnlyHint: true },
309
310
  handler: async (args, ctx) => {
@@ -350,7 +351,8 @@ var SUPPORTED_MARKETPLACES = [
350
351
  "it",
351
352
  "co.jp"
352
353
  ];
353
- var RANK_RADAR_STATUSES = ["ACTIVE", "PAUSED", "ARCHIVED"];
354
+ var RANK_RADAR_STATES = ["ACTIVE", "PAUSED", "ARCHIVED"];
355
+ var RANK_RADAR_STATUSES = [...RANK_RADAR_STATES, "ALL"];
354
356
  var ALERT_STATUSES = ["active", "resolved", "all"];
355
357
  var BILLABLE_FEATURE_TYPES = [
356
358
  "DIVED_ASINS",
@@ -362,25 +364,32 @@ var CATALOG_STATUSES = ["Active", "all"];
362
364
  var LISTING_CHANGE_TYPES = ["Price", "Content", "Image"];
363
365
  var LISTING_CHANGE_SORT_BY = ["date", "type"];
364
366
  var SORT_ORDER = ["ASC", "DESC"];
367
+ var ADD_SEARCH_TERMS_MAX = 1e3;
368
+ var LISTING_COPY_STRATEGIES = ["cosmo", "ranking-juice", "nlp", "cosmo-rufus"];
365
369
 
366
370
  // src/tools/list-rank-radars.ts
371
+ var LIST_RANK_RADARS_MAX_PAGE_SIZE = 50;
367
372
  var inputSchema6 = {
368
373
  currentPage: z6.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
369
- pageSize: z6.number().int().min(1).max(100).optional().describe("Items per page (max 100). Defaults to 20."),
374
+ pageSize: z6.number().int().min(1).max(LIST_RANK_RADARS_MAX_PAGE_SIZE).optional().describe(`Items per page (max ${LIST_RANK_RADARS_MAX_PAGE_SIZE}). Defaults to 20.`),
370
375
  nicheId: z6.string().min(1).optional().describe("Filter Rank Radars by Niche identifier. Use after `list_niches`."),
371
376
  status: z6.enum(RANK_RADAR_STATUSES).optional().describe(
372
- "Filter by Rank Radar status. By default, returns only ACTIVE Rank Radars. Allowed: ACTIVE, PAUSED, ARCHIVED."
377
+ "Which Rank Radars to return. ACTIVE (the default) are tracking; PAUSED have been stopped but keep their history and can be resumed; ARCHIVED have been deleted; ALL means active and paused together. Archived Rank Radars are returned only by an explicit ARCHIVED."
373
378
  ),
374
379
  searchText: z6.string().optional().describe("Filter Rank Radars by ASIN or product title.")
375
380
  };
381
+ function minimize(item) {
382
+ const { asin, ...rest } = item;
383
+ return { ...rest, asin: asin?.asin };
384
+ }
376
385
  var listRankRadarsTool = {
377
386
  name: "list_rank_radars",
378
387
  title: "List Rank Radars",
379
- description: "Use this to find a `rankRadarId` before calling `get_rank_radar_data`. Filter by `nicheId` if the user has already identified a niche. Retrieves a paginated list of Rank Radars \u2014 keyword-rank trackers monitoring organic and sponsored positions for specific ASINs over time. Each item includes id, asin (with id, krtId, asin), marketplace, keywordCount, title, imageUrl, and summary metrics: top10KW, top10SV, top50KW, top50SV. Supports pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev).",
388
+ description: `Use this to find a \`rankRadarId\` before calling \`get_rank_radar_data\`. Filter by \`nicheId\` if the user has already identified a niche. Retrieves a paginated list of Rank Radars \u2014 keyword-rank trackers monitoring organic and sponsored positions for specific ASINs over time. Each item includes id, status (ACTIVE, PAUSED or ARCHIVED), asin, marketplace, keywordCount, title, imageUrl, and summary metrics: top10KW, top10SV, top50KW, top50SV. Supports pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev); a page holds at most ${LIST_RANK_RADARS_MAX_PAGE_SIZE} Rank Radars, so a large account needs several calls.`,
380
389
  inputSchema: inputSchema6,
381
390
  annotations: { readOnlyHint: true },
382
391
  handler: async (args, ctx) => {
383
- return await httpGet(
392
+ const page = await httpGet(
384
393
  { config: ctx.config, toolName: "list_rank_radars" },
385
394
  "/v1/niches/rank-radars",
386
395
  {
@@ -391,6 +400,7 @@ var listRankRadarsTool = {
391
400
  searchText: args.searchText
392
401
  }
393
402
  );
403
+ return { ...page, data: (page.data ?? []).map(minimize) };
394
404
  }
395
405
  };
396
406
 
@@ -447,7 +457,7 @@ var createRankRadarTool = {
447
457
  // destructiveHint is technically "additive" here (this creates a new Rank Radar, it
448
458
  // doesn't destroy data), but we flag it destructive so clients prompt before the
449
459
  // irreversible token spend. The confirm gate enforces this server-side regardless.
450
- annotations: { readOnlyHint: false, destructiveHint: true },
460
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
451
461
  handler: async (args, ctx) => {
452
462
  const pending = requireConfirmation(
453
463
  args.confirm,
@@ -485,7 +495,7 @@ var createNicheDiveTool = {
485
495
  // destructiveHint is technically "additive" here (a dive creates a new niche, it
486
496
  // doesn't destroy data), but we flag it destructive so clients prompt before the
487
497
  // irreversible token spend. The confirm gate enforces this server-side regardless.
488
- annotations: { readOnlyHint: false, destructiveHint: true },
498
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
489
499
  handler: async (args, ctx) => {
490
500
  const pending = requireConfirmation(
491
501
  args.confirm,
@@ -533,7 +543,7 @@ var rediveNicheTool = {
533
543
  inputSchema: inputSchema10,
534
544
  // Same reasoning as create_niche_dive: a re-dive is additive rather than destructive, but the
535
545
  // irreversible token spend is what clients need to prompt on. The confirm gate enforces it regardless.
536
- annotations: { readOnlyHint: false, destructiveHint: true },
546
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
537
547
  handler: async (args, ctx) => {
538
548
  if (args.mode === "discover" && args.numberOfCompetitors === void 0) {
539
549
  throw new ApiError(
@@ -581,17 +591,251 @@ var getDiveStatusTool = {
581
591
  }
582
592
  };
583
593
 
584
- // src/tools/list-seller-profiles.ts
594
+ // src/tools/delete-niche.ts
585
595
  import { z as z12 } from "zod";
586
596
  var inputSchema12 = {
587
- currentPage: z12.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
588
- pageSize: z12.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
597
+ nicheId: z12.string().min(1).describe("The niche to delete. Get one from `list_niches`."),
598
+ confirm: z12.boolean().optional().describe(
599
+ "Must be true to proceed \u2014 deleting a niche destroys its keywords, competitors and dive history permanently. Confirm with the user first."
600
+ )
601
+ };
602
+ var deleteNicheTool = {
603
+ name: "delete_niche",
604
+ title: "Delete a Niche",
605
+ description: "Use this to permanently remove a niche the user no longer needs. \u26A0\uFE0F Deletes the niche and everything attached to it \u2014 keywords, competitors, all dives and diveboxes \u2014 and cannot be undone; the dive tokens already spent on it are NOT refunded. Set `confirm: true` only after the user approves. A niche used by any Rank Radar cannot be deleted: the call fails with a conflict, so delete or archive those rank radars first (`list_rank_radars` with the `nicheId` filter shows them).",
606
+ inputSchema: inputSchema12,
607
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
608
+ handler: async (args, ctx) => {
609
+ const pending = requireConfirmation(
610
+ args.confirm,
611
+ ctx,
612
+ "Deleting this niche removes its keywords, competitors and all dive history permanently. The dive tokens already spent on it are not refunded."
613
+ );
614
+ if (pending) return pending;
615
+ await httpDelete(
616
+ { config: ctx.config, toolName: "delete_niche" },
617
+ `/v1/niches/${encodeURIComponent(args.nicheId)}`
618
+ );
619
+ return { status: "deleted", nicheId: args.nicheId };
620
+ }
621
+ };
622
+
623
+ // src/tools/pause-rank-radar.ts
624
+ import { z as z13 } from "zod";
625
+ var inputSchema13 = {
626
+ rankRadarId: z13.string().uuid().describe("The Rank Radar UUID to pause (from `list_rank_radars`).")
627
+ };
628
+ var pauseRankRadarTool = {
629
+ name: "pause_rank_radar",
630
+ title: "Pause a Rank Radar",
631
+ description: "Use this to pause tracking on a Rank Radar without losing anything \u2014 the action the DataDive API calls 'archiving', so when a user asks to archive a Rank Radar, this is the tool they mean. Tracking stops for all of its keywords and the Daily Tracked Keywords quota they held is freed for other Rank Radars, while the Rank Radar and its ranking history are kept. Fully reversible with `resume_rank_radar`, so it needs no `confirm` \u2014 prefer it over `delete_rank_radar` whenever the user may want the data back. Paused Rank Radars show up in `list_rank_radars` under `status: PAUSED` \u2014 not `ARCHIVED`, which covers Rank Radars removed with `delete_rank_radar`. Safe to repeat: pausing an already paused Rank Radar succeeds and changes nothing.",
632
+ inputSchema: inputSchema13,
633
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
634
+ handler: async (args, ctx) => {
635
+ await httpPost(
636
+ { config: ctx.config, toolName: "pause_rank_radar" },
637
+ `/v1/niches/rank-radars/${encodeURIComponent(args.rankRadarId)}/archive`,
638
+ {}
639
+ );
640
+ return { status: "paused", rankRadarId: args.rankRadarId };
641
+ }
642
+ };
643
+
644
+ // src/tools/resume-rank-radar.ts
645
+ import { z as z14 } from "zod";
646
+ var inputSchema14 = {
647
+ rankRadarId: z14.string().uuid().describe("The Rank Radar UUID to resume (from `list_rank_radars`).")
648
+ };
649
+ var resumeRankRadarTool = {
650
+ name: "resume_rank_radar",
651
+ title: "Resume a Paused Rank Radar",
652
+ description: "Use this to restart tracking on a Rank Radar that was paused with `pause_rank_radar` (shown by `list_rank_radars` under `status: PAUSED`; a deleted, `ARCHIVED` one cannot be resumed). Keywords are resumed as far as the available Daily Tracked Keywords quota allows, most relevant first \u2014 so with a tight quota only part of the original keyword set comes back; check `get_quota` first if that matters. Reversible with `pause_rank_radar`, so it needs no `confirm`. Fails with a bad-request error when there is no quota left at all. Safe to repeat: resuming an already active Rank Radar changes nothing.",
653
+ inputSchema: inputSchema14,
654
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
655
+ handler: async (args, ctx) => {
656
+ await httpPost(
657
+ { config: ctx.config, toolName: "resume_rank_radar" },
658
+ `/v1/niches/rank-radars/${encodeURIComponent(args.rankRadarId)}/resume`,
659
+ {}
660
+ );
661
+ return { status: "resumed", rankRadarId: args.rankRadarId };
662
+ }
663
+ };
664
+
665
+ // src/tools/delete-rank-radar.ts
666
+ import { z as z15 } from "zod";
667
+ var inputSchema15 = {
668
+ rankRadarId: z15.string().uuid().describe("The Rank Radar UUID to delete (from `list_rank_radars`)."),
669
+ confirm: z15.boolean().optional().describe(
670
+ "Must be true to proceed \u2014 deleting a Rank Radar destroys its ranking history permanently. Confirm with the user first."
671
+ )
672
+ };
673
+ var deleteRankRadarTool = {
674
+ name: "delete_rank_radar",
675
+ title: "Delete a Rank Radar",
676
+ description: "Use this to permanently remove a Rank Radar and all of its keyword ranking history. \u26A0\uFE0F Cannot be undone \u2014 there is no restore endpoint; set `confirm: true` only after the user approves. It does free the Daily Tracked Keywords quota those keywords held. Deleted Rank Radars are what `list_rank_radars` returns for `status: ARCHIVED`. If the user only wants to stop tracking for a while and keep the history \u2014 or asks to 'archive' the Rank Radar, which is what the DataDive API calls pausing \u2014 use `pause_rank_radar` instead: it frees the same quota and is reversible with `resume_rank_radar`.",
677
+ inputSchema: inputSchema15,
678
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
679
+ handler: async (args, ctx) => {
680
+ const pending = requireConfirmation(
681
+ args.confirm,
682
+ ctx,
683
+ "Deleting this Rank Radar removes its keyword ranking history permanently. It frees the Daily Tracked Keywords quota, but the history cannot be recovered \u2014 `pause_rank_radar` frees the same quota and is reversible."
684
+ );
685
+ if (pending) return pending;
686
+ await httpDelete(
687
+ { config: ctx.config, toolName: "delete_rank_radar" },
688
+ `/v1/niches/rank-radars/${encodeURIComponent(args.rankRadarId)}`
689
+ );
690
+ return { status: "deleted", rankRadarId: args.rankRadarId };
691
+ }
692
+ };
693
+
694
+ // src/tools/add-rank-radar-search-terms.ts
695
+ import { z as z16 } from "zod";
696
+ var inputSchema16 = {
697
+ rankRadarId: z16.string().uuid().describe("The Rank Radar UUID to add the search terms to (from `list_rank_radars`)."),
698
+ searchTerms: z16.array(z16.string().min(1)).min(1).max(ADD_SEARCH_TERMS_MAX).describe(
699
+ `The keywords to start tracking, 1\u2013${ADD_SEARCH_TERMS_MAX} per call. Must be unique. Amazon-ignored special characters (@, #, _, parentheses, \u2026) are rejected.`
700
+ )
701
+ };
702
+ var addRankRadarSearchTermsTool = {
703
+ name: "add_rank_radar_search_terms",
704
+ title: "Add Search Terms to a Rank Radar",
705
+ description: "Use this to start tracking extra keywords on an existing Rank Radar, instead of creating a new one with `create_rank_radar`. New keywords are added to the niche and tracked from now on; any matching keyword that was previously paused is resumed. Each newly tracked keyword takes one Daily Tracked Keywords slot, and the call fails if the quota is exhausted \u2014 check `get_quota` first. Reversible with `pause_rank_radar_search_terms`, which frees the slots again, so it needs no `confirm`. Returns `originBreakdown` (where each submitted term ended up) and `keywordToRankRadarKeywordIdMap`, whose ids are what the pause/resume search-term tools take.",
706
+ inputSchema: inputSchema16,
707
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
708
+ handler: async (args, ctx) => {
709
+ return await httpPost(
710
+ { config: ctx.config, toolName: "add_rank_radar_search_terms" },
711
+ `/v1/niches/rank-radars/${encodeURIComponent(args.rankRadarId)}/search-terms`,
712
+ { searchTerms: args.searchTerms }
713
+ );
714
+ }
715
+ };
716
+
717
+ // src/tools/pause-rank-radar-search-terms.ts
718
+ import { z as z17 } from "zod";
719
+ var inputSchema17 = {
720
+ rankRadarId: z17.string().uuid().describe("The Rank Radar UUID the search terms belong to."),
721
+ rankRadarKeywordIds: z17.array(z17.string().uuid()).min(1).describe(
722
+ "The Rank Radar keyword ids to pause. These are the `id` values from `get_rank_radar_data`, or the values of `keywordToRankRadarKeywordIdMap` returned by `add_rank_radar_search_terms` \u2014 not the keyword text."
723
+ )
724
+ };
725
+ var pauseRankRadarSearchTermsTool = {
726
+ name: "pause_rank_radar_search_terms",
727
+ title: "Pause Search Terms of a Rank Radar",
728
+ description: "Use this to stop tracking individual keywords on a Rank Radar while keeping the Rank Radar itself active \u2014 the way to trim a keyword set the user finds too broad. The DataDive API calls this 'archiving' the search terms; nothing is lost. The paused keywords keep their history and their Daily Tracked Keywords slots are freed for other keywords. Reversible with `resume_rank_radar_search_terms`, so it needs no `confirm`. Takes keyword ids, not keyword text: get them from `get_rank_radar_data`. Safe to repeat: already-paused terms are left unchanged.",
729
+ inputSchema: inputSchema17,
730
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
731
+ handler: async (args, ctx) => {
732
+ await httpPost(
733
+ { config: ctx.config, toolName: "pause_rank_radar_search_terms" },
734
+ `/v1/niches/rank-radars/${encodeURIComponent(args.rankRadarId)}/search-terms/archive`,
735
+ { rankRadarKeywordIds: args.rankRadarKeywordIds }
736
+ );
737
+ return {
738
+ status: "paused",
739
+ rankRadarId: args.rankRadarId,
740
+ rankRadarKeywordIds: args.rankRadarKeywordIds
741
+ };
742
+ }
743
+ };
744
+
745
+ // src/tools/resume-rank-radar-search-terms.ts
746
+ import { z as z18 } from "zod";
747
+ var inputSchema18 = {
748
+ rankRadarId: z18.string().uuid().describe("The Rank Radar UUID the search terms belong to."),
749
+ rankRadarKeywordIds: z18.array(z18.string().uuid()).min(1).describe(
750
+ "The Rank Radar keyword ids to resume. These are the `id` values from `get_rank_radar_data`, or the values of `keywordToRankRadarKeywordIdMap` returned by `add_rank_radar_search_terms` \u2014 not the keyword text."
751
+ )
752
+ };
753
+ var resumeRankRadarSearchTermsTool = {
754
+ name: "resume_rank_radar_search_terms",
755
+ title: "Resume Paused Search Terms of a Rank Radar",
756
+ description: "Use this to start tracking keywords again that were paused with `pause_rank_radar_search_terms`. Each resumed keyword takes back one Daily Tracked Keywords slot, and the call fails if the quota is exhausted \u2014 check `get_quota` first. Reversible with `pause_rank_radar_search_terms`, so it needs no `confirm`. Takes keyword ids, not keyword text: get them from `get_rank_radar_data`. Safe to repeat: already-active terms are left unchanged.",
757
+ inputSchema: inputSchema18,
758
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
759
+ handler: async (args, ctx) => {
760
+ await httpPost(
761
+ { config: ctx.config, toolName: "resume_rank_radar_search_terms" },
762
+ `/v1/niches/rank-radars/${encodeURIComponent(args.rankRadarId)}/search-terms/resume`,
763
+ { rankRadarKeywordIds: args.rankRadarKeywordIds }
764
+ );
765
+ return {
766
+ status: "resumed",
767
+ rankRadarId: args.rankRadarId,
768
+ rankRadarKeywordIds: args.rankRadarKeywordIds
769
+ };
770
+ }
771
+ };
772
+
773
+ // src/tools/generate-listing-copy.ts
774
+ import { z as z19 } from "zod";
775
+ var inputSchema19 = {
776
+ nicheId: z19.string().min(1).describe("The niche whose keyword data the copy is written from. Get one from `list_niches`."),
777
+ strategy: z19.enum(LISTING_COPY_STRATEGIES).describe(
778
+ "Which generation strategy to use. `cosmo` targets Amazon's COSMO relevance model, `ranking-juice` optimises for DataDive's ranking-juice score, `nlp` writes for keyword coverage, and `cosmo-rufus` targets COSMO plus the Rufus shopping assistant. Ask the user if they have no preference."
779
+ ),
780
+ currentListing: z19.record(z19.union([z19.string(), z19.array(z19.string())])).describe(
781
+ 'The seller\'s existing listing to rewrite, as an object \u2014 e.g. `{ "title": "...", "description": "...", "bullets": ["...", "..."] }`. Pass what the user has; it is the starting point the generated copy builds on.'
782
+ ),
783
+ confirm: z19.boolean().optional().describe(
784
+ "Must be true to proceed \u2014 each generation spends one AI Copywriter prompt from the quota. Confirm the cost with the user first."
785
+ )
786
+ };
787
+ var generateListingCopyTool = {
788
+ name: "generate_listing_copy",
789
+ title: "Generate Listing Copy for a Niche",
790
+ description: "Use this to draft an optimised Amazon listing \u2014 title, bullets and description \u2014 from a niche's keyword research and the seller's current listing. It writes text only: nothing is published to Amazon, and the user still has to paste the result into Seller Central. \u26A0\uFE0F Spends one AI Copywriter prompt from the quota per call and cannot be undone \u2014 set `confirm: true` only after the user approves. Not safe to retry: each call spends another prompt, so if a call errors or times out, poll `get_listing_copy_generation_status` instead of re-calling. Runs asynchronously: returns a `generationId` \u2014 poll `get_listing_copy_generation_status` with it until the status is `complete`.",
791
+ inputSchema: inputSchema19,
792
+ annotations: { readOnlyHint: false, destructiveHint: true, openWorldHint: false },
793
+ handler: async (args, ctx) => {
794
+ const pending = requireConfirmation(
795
+ args.confirm,
796
+ ctx,
797
+ "Generating listing copy consumes one AI Copywriter prompt from the organization's quota. Check the remaining balance with `get_quota` if the user needs it."
798
+ );
799
+ if (pending) return pending;
800
+ return await httpPost(
801
+ { config: ctx.config, toolName: "generate_listing_copy" },
802
+ `/v1/niches/${encodeURIComponent(args.nicheId)}/ai-copywriter`,
803
+ { prompt: args.strategy, listingToInclude: args.currentListing }
804
+ );
805
+ }
806
+ };
807
+
808
+ // src/tools/get-listing-copy-generation-status.ts
809
+ import { z as z20 } from "zod";
810
+ var inputSchema20 = {
811
+ nicheId: z20.string().min(1).describe("The niche the generation was started for."),
812
+ generationId: z20.string().min(1).describe("The `generationId` returned by `generate_listing_copy`.")
813
+ };
814
+ var getListingCopyGenerationStatusTool = {
815
+ name: "get_listing_copy_generation_status",
816
+ title: "Get Listing Copy Generation Status",
817
+ description: "Use this to poll a listing-copy draft started with `generate_listing_copy` until it finishes. Returns one of three shapes keyed by `status`: `generating` (still running \u2014 poll again in a few seconds), `complete` (with `result`, carrying the generated `title`, `bullets`, `description`, `itemHighlights` and its `rankingJuice` score), or `failed` (with an `error` message). Polling is free \u2014 it does not spend another AI Copywriter prompt, so always poll rather than re-calling `generate_listing_copy`.",
818
+ inputSchema: inputSchema20,
819
+ annotations: { readOnlyHint: true },
820
+ handler: async (args, ctx) => {
821
+ return await httpGet(
822
+ { config: ctx.config, toolName: "get_listing_copy_generation_status" },
823
+ `/v1/niches/${encodeURIComponent(args.nicheId)}/ai-copywriter/${encodeURIComponent(args.generationId)}`
824
+ );
825
+ }
826
+ };
827
+
828
+ // src/tools/list-seller-profiles.ts
829
+ import { z as z21 } from "zod";
830
+ var inputSchema21 = {
831
+ currentPage: z21.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
832
+ pageSize: z21.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
589
833
  };
590
834
  var listSellerProfilesTool = {
591
835
  name: "list_seller_profiles",
592
836
  title: "List Connected Amazon Seller Profiles",
593
837
  description: 'Use this when the user asks which Amazon seller accounts are connected, or as the discovery step to find the `sellerId` and `marketplace` required by `get_asin_inventory_distribution`, `get_seller_catalog`, `get_seller_listing_changes`, and the alert tools. Returns a paginated list of the organization\'s connected seller profiles \u2014 each item has sellerId, sellerName, marketplace (e.g. "com", "co.uk"), hasAdApi (whether Advertising API credentials are connected), and createdAt \u2014 plus pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev).',
594
- inputSchema: inputSchema12,
838
+ inputSchema: inputSchema21,
595
839
  annotations: { readOnlyHint: true },
596
840
  handler: async (args, ctx) => {
597
841
  return await httpGet(
@@ -606,15 +850,15 @@ var listSellerProfilesTool = {
606
850
  };
607
851
 
608
852
  // src/tools/get-seller-catalog.ts
609
- import { z as z14 } from "zod";
853
+ import { z as z23 } from "zod";
610
854
 
611
855
  // src/tools/seller-scoped.ts
612
- import { z as z13 } from "zod";
856
+ import { z as z22 } from "zod";
613
857
  var sellerScopedInputSchema = {
614
- sellerId: z13.string().min(1).describe(
858
+ sellerId: z22.string().min(1).describe(
615
859
  "Amazon seller account ID. Get it from `list_seller_profiles`, or find it on the Connections page at https://2.datadive.tools."
616
860
  ),
617
- marketplace: z13.enum(SUPPORTED_MARKETPLACES).describe('Amazon marketplace code, e.g. "com" for amazon.com or "co.uk" for amazon.co.uk.')
861
+ marketplace: z22.enum(SUPPORTED_MARKETPLACES).describe('Amazon marketplace code, e.g. "com" for amazon.com or "co.uk" for amazon.co.uk.')
618
862
  };
619
863
  function sellerMarketplacePath(sellerId, marketplace, suffix) {
620
864
  return `/v1/seller_profiles/${encodeURIComponent(sellerId)}/marketplaces/${encodeURIComponent(
@@ -623,19 +867,19 @@ function sellerMarketplacePath(sellerId, marketplace, suffix) {
623
867
  }
624
868
 
625
869
  // src/tools/get-seller-catalog.ts
626
- var inputSchema13 = {
870
+ var inputSchema22 = {
627
871
  ...sellerScopedInputSchema,
628
- search: z14.string().min(1).optional().describe("Case-insensitive partial match on product title or brand."),
629
- brand: z14.string().min(1).optional().describe("Case-insensitive partial match on brand name."),
630
- status: z14.enum(CATALOG_STATUSES).optional().describe('Listing status filter. "Active" (default) or "all".'),
631
- currentPage: z14.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
632
- pageSize: z14.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
872
+ search: z23.string().min(1).optional().describe("Case-insensitive partial match on product title or brand."),
873
+ brand: z23.string().min(1).optional().describe("Case-insensitive partial match on brand name."),
874
+ status: z23.enum(CATALOG_STATUSES).optional().describe('Listing status filter. "Active" (default) or "all".'),
875
+ currentPage: z23.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
876
+ pageSize: z23.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
633
877
  };
634
878
  var getSellerCatalogTool = {
635
879
  name: "get_seller_catalog",
636
880
  title: "List Catalog ASINs for a Seller",
637
881
  description: "Use this when the user wants to browse or search a seller's own Amazon catalog \u2014 the products they sell on a given marketplace. Requires a `sellerId` + `marketplace` (use `list_seller_profiles` to discover them). Filter by `search` (title/brand), `brand`, and `status` (Active by default, or all). Returns a paginated list where each item has asin, title, parentAsin, brand, status, imageUrl, and hasVariations, plus pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev).",
638
- inputSchema: inputSchema13,
882
+ inputSchema: inputSchema22,
639
883
  annotations: { readOnlyHint: true },
640
884
  handler: async (args, ctx) => {
641
885
  return await httpGet(
@@ -653,28 +897,28 @@ var getSellerCatalogTool = {
653
897
  };
654
898
 
655
899
  // src/tools/get-seller-listing-changes.ts
656
- import { z as z15 } from "zod";
657
- var inputSchema14 = {
900
+ import { z as z24 } from "zod";
901
+ var inputSchema23 = {
658
902
  ...sellerScopedInputSchema,
659
- types: z15.array(z15.enum(LISTING_CHANGE_TYPES)).min(1).optional().describe('Filter to specific change types. Omit for all. Any of "Price", "Content", "Image".'),
660
- asin: z15.string().min(1).optional().describe("Filter to an exact ASIN or parent ASIN."),
661
- brand: z15.string().min(1).optional().describe("Case-insensitive partial match on brand name."),
662
- search: z15.string().min(1).optional().describe("Case-insensitive partial match on product title or brand."),
663
- startDate: z15.string().regex(ISO_8601, "startDate must be an ISO-8601 date or timestamp (e.g. 2026-05-01 or 2026-05-01T00:00:00Z)").optional().describe("ISO-8601 date/timestamp; return only changes detected on or after this time."),
664
- endDate: z15.string().regex(ISO_8601, "endDate must be an ISO-8601 date or timestamp (e.g. 2026-05-31 or 2026-05-31T23:59:59Z)").optional().describe("ISO-8601 date/timestamp; return only changes detected on or before this time."),
665
- sortBy: z15.enum(LISTING_CHANGE_SORT_BY).optional().describe('Sort field. "date" (default) or "type".'),
666
- sortOrder: z15.enum(SORT_ORDER).optional().describe('Sort direction. "DESC" (default) or "ASC".'),
667
- includeCorrelations: z15.boolean().optional().describe(
903
+ types: z24.array(z24.enum(LISTING_CHANGE_TYPES)).min(1).optional().describe('Filter to specific change types. Omit for all. Any of "Price", "Content", "Image".'),
904
+ asin: z24.string().min(1).optional().describe("Filter to an exact ASIN or parent ASIN."),
905
+ brand: z24.string().min(1).optional().describe("Case-insensitive partial match on brand name."),
906
+ search: z24.string().min(1).optional().describe("Case-insensitive partial match on product title or brand."),
907
+ startDate: z24.string().regex(ISO_8601, "startDate must be an ISO-8601 date or timestamp (e.g. 2026-05-01 or 2026-05-01T00:00:00Z)").optional().describe("ISO-8601 date/timestamp; return only changes detected on or after this time."),
908
+ endDate: z24.string().regex(ISO_8601, "endDate must be an ISO-8601 date or timestamp (e.g. 2026-05-31 or 2026-05-31T23:59:59Z)").optional().describe("ISO-8601 date/timestamp; return only changes detected on or before this time."),
909
+ sortBy: z24.enum(LISTING_CHANGE_SORT_BY).optional().describe('Sort field. "date" (default) or "type".'),
910
+ sortOrder: z24.enum(SORT_ORDER).optional().describe('Sort direction. "DESC" (default) or "ASC".'),
911
+ includeCorrelations: z24.boolean().optional().describe(
668
912
  "When true, include the ranking/conversion `correlation` object per change (CVR and search-term movement before vs after). Defaults to false."
669
913
  ),
670
- currentPage: z15.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
671
- pageSize: z15.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
914
+ currentPage: z24.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
915
+ pageSize: z24.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
672
916
  };
673
917
  var getSellerListingChangesTool = {
674
918
  name: "get_seller_listing_changes",
675
919
  title: "List Listing Changes for a Seller",
676
920
  description: "Use this when the user asks what changed on their Amazon listings \u2014 price, content (title/bullets/description), or image edits \u2014 for a seller account. Requires a `sellerId` + `marketplace` (use `list_seller_profiles` to discover them). Filter by `types`, `asin`/parent ASIN, `brand`, `search`, and a `startDate`/`endDate` range; sort with `sortBy`/`sortOrder`. Set `includeCorrelations: true` to attach the ranking/conversion impact per change. Returns a paginated list where each item has asin, title, imageUrl, date, type, contentType, description, previousValue, newValue, and (optionally) correlation, plus pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev).",
677
- inputSchema: inputSchema14,
921
+ inputSchema: inputSchema23,
678
922
  annotations: { readOnlyHint: true },
679
923
  handler: async (args, ctx) => {
680
924
  return await httpGet(
@@ -699,13 +943,13 @@ var getSellerListingChangesTool = {
699
943
  };
700
944
 
701
945
  // src/tools/get-asin-inventory-distribution.ts
702
- import { z as z16 } from "zod";
703
- var inputSchema15 = {
704
- sellerId: z16.string().min(1).describe(
946
+ import { z as z25 } from "zod";
947
+ var inputSchema24 = {
948
+ sellerId: z25.string().min(1).describe(
705
949
  "Amazon seller account ID as connected to DataDive. Get it from `list_seller_profiles`, or find it on the Connections page at https://2.datadive.tools."
706
950
  ),
707
- marketplace: z16.enum(SUPPORTED_MARKETPLACES).describe('Amazon marketplace code, e.g. "com" for amazon.com or "co.uk" for amazon.co.uk.'),
708
- asin: z16.string().regex(/^[A-Z0-9]{10}$/, "ASIN must be 10 uppercase alphanumeric characters (e.g. B08XYZ1234).").describe(
951
+ marketplace: z25.enum(SUPPORTED_MARKETPLACES).describe('Amazon marketplace code, e.g. "com" for amazon.com or "co.uk" for amazon.co.uk.'),
952
+ asin: z25.string().regex(/^[A-Z0-9]{10}$/, "ASIN must be 10 uppercase alphanumeric characters (e.g. B08XYZ1234).").describe(
709
953
  "Amazon Standard Identification Number (10 uppercase alphanumeric characters, e.g. B08XYZ1234)."
710
954
  )
711
955
  };
@@ -713,7 +957,7 @@ var getAsinInventoryDistributionTool = {
713
957
  name: "get_asin_inventory_distribution",
714
958
  title: "Get Per-Fulfillment-Center Inventory Distribution for an ASIN",
715
959
  description: "Use this when the user asks about inventory levels, stock by fulfillment center, or where their units are sitting across Amazon's fulfillment network for a specific ASIN. Requires the Amazon sellerId (from `list_seller_profiles` or the user's DataDive Connections page at https://2.datadive.tools), the marketplace code, and the ASIN. Returns totalSellableUnits and a per-FC `distribution` array (fc, state, availableStock, availableStockPercentage). `lastUpdatedAt` may be null when no successful inventory ingestion has occurred in the last 30 days.",
716
- inputSchema: inputSchema15,
960
+ inputSchema: inputSchema24,
717
961
  annotations: { readOnlyHint: true },
718
962
  handler: async (args, ctx) => {
719
963
  return await httpGet(
@@ -726,18 +970,18 @@ var getAsinInventoryDistributionTool = {
726
970
  };
727
971
 
728
972
  // src/tools/alert-query.ts
729
- import { z as z17 } from "zod";
973
+ import { z as z26 } from "zod";
730
974
  var alertsQueryInputSchema = {
731
- sellerId: z17.string().min(1).max(50).optional().describe('Filter to a single connected Amazon seller account ID, e.g. "A1B2C3D4E5".'),
732
- marketplace: z17.enum(SUPPORTED_MARKETPLACES).optional().describe('Filter to a single Amazon marketplace code, e.g. "com" for amazon.com or "co.uk" for amazon.co.uk.'),
733
- status: z17.enum(ALERT_STATUSES).optional().describe(
975
+ sellerId: z26.string().min(1).max(50).optional().describe('Filter to a single connected Amazon seller account ID, e.g. "A1B2C3D4E5".'),
976
+ marketplace: z26.enum(SUPPORTED_MARKETPLACES).optional().describe('Filter to a single Amazon marketplace code, e.g. "com" for amazon.com or "co.uk" for amazon.co.uk.'),
977
+ status: z26.enum(ALERT_STATUSES).optional().describe(
734
978
  "Lifecycle filter. `active` (default) returns unresolved alerts, `resolved` returns resolved alerts, `all` returns both. Dismissed alerts are never returned."
735
979
  ),
736
- updatedSince: z17.string().regex(ISO_8601, "updatedSince must be an ISO-8601 date or timestamp (e.g. 2026-05-01 or 2026-05-01T00:00:00Z)").optional().describe(
980
+ updatedSince: z26.string().regex(ISO_8601, "updatedSince must be an ISO-8601 date or timestamp (e.g. 2026-05-01 or 2026-05-01T00:00:00Z)").optional().describe(
737
981
  "ISO-8601 timestamp; return only alerts surfaced at or after this time (filters on `lastAlertedAt`). Use it to incrementally sync since your last poll. Defaults to the last 30 days when omitted."
738
982
  ),
739
- currentPage: z17.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
740
- pageSize: z17.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
983
+ currentPage: z26.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
984
+ pageSize: z26.number().int().min(1).max(50).optional().describe("Items per page (max 50). Defaults to 20.")
741
985
  };
742
986
 
743
987
  // src/tools/list-indexing-issue-alerts.ts
@@ -787,12 +1031,12 @@ var listBlindSpendAlertsTool = {
787
1031
  };
788
1032
 
789
1033
  // src/tools/get-quota.ts
790
- var inputSchema16 = {};
1034
+ var inputSchema25 = {};
791
1035
  var getQuotaTool = {
792
1036
  name: "get_quota",
793
1037
  title: "Get Quota Usage",
794
1038
  description: "Use this when the user asks how much quota or how many tokens they have left, or before creating a Niche Dive or Rank Radar to check remaining headroom. Returns current quota usage and capacity for each billable feature \u2014 DIVED_ASINS (Dive tokens), RANK_RADAR_KEYWORDS (tracked keywords), PRODUCT_BRIEF_ASINS, and AI_COPYWRITER_PROMPTS \u2014 each with `used` and `capacity` (null when unlimited / not applicable), plus `nextRefreshDate` (ISO-8601 timestamp of the next quota reset, or null). Takes no arguments.",
795
- inputSchema: inputSchema16,
1039
+ inputSchema: inputSchema25,
796
1040
  annotations: { readOnlyHint: true },
797
1041
  handler: async (_args, ctx) => {
798
1042
  return await httpGet({ config: ctx.config, toolName: "get_quota" }, "/v1/quota");
@@ -800,20 +1044,20 @@ var getQuotaTool = {
800
1044
  };
801
1045
 
802
1046
  // src/tools/list-usage.ts
803
- import { z as z18 } from "zod";
804
- var inputSchema17 = {
805
- type: z18.enum(BILLABLE_FEATURE_TYPES).optional().describe("Filter to a single billable feature type. Omit to return all types."),
806
- search: z18.string().min(1).optional().describe("Case-insensitive partial match on the user's name or email."),
807
- startDate: z18.string().regex(ISO_8601, "startDate must be an ISO-8601 date or timestamp (e.g. 2026-05-01 or 2026-05-01T00:00:00Z)").optional().describe("ISO-8601 date/timestamp; return only usage logs recorded on or after this time."),
808
- endDate: z18.string().regex(ISO_8601, "endDate must be an ISO-8601 date or timestamp (e.g. 2026-05-31 or 2026-05-31T23:59:59Z)").optional().describe("ISO-8601 date/timestamp; return only usage logs recorded on or before this time."),
809
- currentPage: z18.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
810
- pageSize: z18.number().int().min(1).max(200).optional().describe("Items per page (max 200). Defaults to 50.")
1047
+ import { z as z27 } from "zod";
1048
+ var inputSchema26 = {
1049
+ type: z27.enum(BILLABLE_FEATURE_TYPES).optional().describe("Filter to a single billable feature type. Omit to return all types."),
1050
+ search: z27.string().min(1).optional().describe("Case-insensitive partial match on the user's name or email."),
1051
+ startDate: z27.string().regex(ISO_8601, "startDate must be an ISO-8601 date or timestamp (e.g. 2026-05-01 or 2026-05-01T00:00:00Z)").optional().describe("ISO-8601 date/timestamp; return only usage logs recorded on or after this time."),
1052
+ endDate: z27.string().regex(ISO_8601, "endDate must be an ISO-8601 date or timestamp (e.g. 2026-05-31 or 2026-05-31T23:59:59Z)").optional().describe("ISO-8601 date/timestamp; return only usage logs recorded on or before this time."),
1053
+ currentPage: z27.number().int().min(1).optional().describe("Page number, 1-indexed. Defaults to 1."),
1054
+ pageSize: z27.number().int().min(1).max(200).optional().describe("Items per page (max 200). Defaults to 50.")
811
1055
  };
812
1056
  var listUsageTool = {
813
1057
  name: "list_usage",
814
1058
  title: "List Billable Usage Logs",
815
1059
  description: "Use this when the user asks who consumed tokens, how their quota was spent, or wants an audit of billable activity over a date range. Retrieves a paginated list of billable feature usage logs for the organization \u2014 each entry is a token-consumption event (a dive, rank-radar creation, AI copywriter prompt, etc.). Filter by `type` (billable feature), `search` (user name/email), and `startDate`/`endDate`. Each item includes name, email, qty (tokens consumed), type, action (specific operation), nicheId/nicheName, rankRadarId, and date, plus pagination metadata (currentPage, pageSize, total, lastPage, hasNext, hasPrev).",
816
- inputSchema: inputSchema17,
1060
+ inputSchema: inputSchema26,
817
1061
  annotations: { readOnlyHint: true },
818
1062
  handler: async (args, ctx) => {
819
1063
  return await httpGet(
@@ -844,6 +1088,15 @@ var allTools = [
844
1088
  createNicheDiveTool,
845
1089
  rediveNicheTool,
846
1090
  getDiveStatusTool,
1091
+ addRankRadarSearchTermsTool,
1092
+ pauseRankRadarSearchTermsTool,
1093
+ resumeRankRadarSearchTermsTool,
1094
+ pauseRankRadarTool,
1095
+ resumeRankRadarTool,
1096
+ deleteRankRadarTool,
1097
+ deleteNicheTool,
1098
+ generateListingCopyTool,
1099
+ getListingCopyGenerationStatusTool,
847
1100
  listSellerProfilesTool,
848
1101
  getSellerCatalogTool,
849
1102
  getSellerListingChangesTool,