---
title: "Ad Spy tools"
description: "Search ads and brands, read stored research, manage Ad Spy boards, saved searches and filter presets, and transcribe or analyze video ads."
url: "https://sellify.ai/docs/developers/mcp-tools/ad-spy"
updated: "2026-11-28"
---

# Ad Spy tools

> Search ads and brands, read stored research, manage Ad Spy boards, saved searches and filter presets, and transcribe or analyze video ads.

Search ads and brands, read stored research, manage Ad Spy boards, saved searches and filter presets, and transcribe or analyze video ads. This page lists 49 tools, 29 of them read-only.

- [`ad_spy_ads_search`](#ad_spy_ads_search): Search Ad Spy ads
- [`ad_spy_brand_ads_search`](#ad_spy_brand_ads_search): Search ads for a brand
- [`ad_spy_brands_search`](#ad_spy_brands_search): Search Ad Spy brands
- [`ad_spy_recommended_ads_search`](#ad_spy_recommended_ads_search): Search ads from recommended brands
- [`ad_spy_product_brand_recommendations_get`](#ad_spy_product_brand_recommendations_get): Get brand recommendations for a product
- [`ad_spy_run`](#ad_spy_run): Refresh Ad Spy data or write hooks
- [`ad_spy_market_get`](#ad_spy_market_get): Get Ad Spy markets, brands or trending ads
- [`ad_spy_saved_ads_list`](#ad_spy_saved_ads_list): List saved Ad Spy ads
- [`ad_spy_expert_picks_get`](#ad_spy_expert_picks_get): Browse Expert Picks
- [`ad_spy_saved_ad_set_saved`](#ad_spy_saved_ad_set_saved): Save or unsave an Ad Spy ad
- [`ad_spy_brand_set_following`](#ad_spy_brand_set_following): Follow or unfollow an Ad Spy brand
- [`ad_spy_brand_follow_batch`](#ad_spy_brand_follow_batch): Follow several Ad Spy brands
- [`ad_spy_brand_request_ads`](#ad_spy_brand_request_ads): Request Ad Spy collection for a brand
- [`ad_spy_brand_status`](#ad_spy_brand_status): Check Ad Spy brand collection and enrichment
- [`ad_spy_followed_brands_list`](#ad_spy_followed_brands_list): List followed Ad Spy brands
- [`ad_spy_followed_brands_new_ads`](#ad_spy_followed_brands_new_ads): List new ads from followed Ad Spy brands
- [`ad_spy_brand_get_overview`](#ad_spy_brand_get_overview): Get an Ad Spy brand overview
- [`ad_spy_brand_get_intelligence`](#ad_spy_brand_get_intelligence): Get stored Ad Spy brand intelligence
- [`ad_spy_brand_get_stats`](#ad_spy_brand_get_stats): Get stored stats for a followed Ad Spy brand
- [`ad_spy_brand_get_research`](#ad_spy_brand_get_research): Get Ad Spy brand research rollups
- [`ad_spy_brand_get_research_ads`](#ad_spy_brand_get_research_ads): Get ads matching a brand research row
- [`ad_spy_brand_get_landing_page_ads`](#ad_spy_brand_get_landing_page_ads): Get stored ads for a brand landing page
- [`ad_spy_brand_get_longest_running_ads`](#ad_spy_brand_get_longest_running_ads): Get a brand's longest-running live ads
- [`ad_spy_brand_get`](#ad_spy_brand_get): Read what a brand tests and who it competes with
- [`ad_spy_ads_summarize`](#ad_spy_ads_summarize): Count or summarize stored Ad Spy ads
- [`ad_spy_ads_top_hooks`](#ad_spy_ads_top_hooks): Rank hooks or browse the hook library
- [`ad_spy_ad_get`](#ad_spy_ad_get): Read one Ad Spy ad
- [`ad_spy_advertisers_find_by_domain`](#ad_spy_advertisers_find_by_domain): Find advertisers by website domain
- [`ad_spy_saved_search_list`](#ad_spy_saved_search_list): List saved Ad Spy searches
- [`ad_spy_saved_search_run`](#ad_spy_saved_search_run): Run a saved Ad Spy search
- [`ad_spy_video_transcript_start`](#ad_spy_video_transcript_start): Start video ad transcription
- [`ad_spy_video_get_status`](#ad_spy_video_get_status): Get Ad Spy video job status
- [`ad_spy_video_analysis_start`](#ad_spy_video_analysis_start): Start full video ad analysis
- [`ad_spy_video_similar_scripts_start`](#ad_spy_video_similar_scripts_start): Generate similar video-ad scripts
- [`ad_spy_board_update`](#ad_spy_board_update): Update or move an Ad Spy board
- [`ad_spy_board_delete`](#ad_spy_board_delete): Delete an Ad Spy board
- [`ad_spy_board_remove_ad`](#ad_spy_board_remove_ad): Remove a saved ad from an Ad Spy board
- [`ad_spy_board_resolve_ads`](#ad_spy_board_resolve_ads): Resolve a saved ad within an Ad Spy board
- [`ad_spy_board_resolve`](#ad_spy_board_resolve): Resolve an Ad Spy board for Agent use
- [`ad_spy_board_ensure`](#ad_spy_board_ensure): Ensure an Ad Spy board exists for Agent use
- [`ad_spy_board_save_ads`](#ad_spy_board_save_ads): Save Ad Spy ads to a board
- [`ad_spy_saved_search_manage`](#ad_spy_saved_search_manage): Save or delete an Ad Spy search
- [`ad_spy_board_reorder`](#ad_spy_board_reorder): Reorder root Ad Spy boards
- [`ad_spy_board_set_sharing`](#ad_spy_board_set_sharing): Share or stop sharing an Ad Spy board
- [`ad_spy_followed_brands_digest_get`](#ad_spy_followed_brands_digest_get): Get the followed-brands digest setting
- [`ad_spy_followed_brands_digest_set`](#ad_spy_followed_brands_digest_set): Set the followed-brands digest
- [`ad_spy_filter_preset_list`](#ad_spy_filter_preset_list): List Ad Spy filter presets
- [`ad_spy_filter_preset_manage`](#ad_spy_filter_preset_manage): Create, update, delete, or set the default Ad Spy filter preset
- [`ad_spy_saved_ad_set_sharing`](#ad_spy_saved_ad_set_sharing): Share or stop sharing a saved Ad Spy ad

## `ad_spy_ads_search`

**Search Ad Spy ads**

General Ad Spy search for a keyword, product, or advertiser name. Needs no brand page ID. Prefers held-brand, cache, and local archive results before any bounded live provider search. totalCount is a keyword match count across all advertisers, never the running ad count of one brand; for that, resolve the brand page ID and use activeAdCount from adSpy.brand.getOverview. The returned ads are one page of samples: never count or tally brands, totals or rankings from them; for which brands run the most ads, use topBrands from adSpy.ads.aggregate. When totalCountIsLowerBound is true, Meta capped at least one count at 50,000, so totalCount is only a lower bound: report it as more than totalCount rounded down (50,001 is more than 50,000), never as an exact count.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | About 0.45 credits          |
| Safe to repeat | Yes                         |

### Input

| Field              | Type            | Required | Description                                                                                                                                                                                                                        |
| ------------------ | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`            | string          | No       | The keyword, product, or advertiser name from the user request. Use this general search when no verified Ad Spy brand page ID is available. Optional with a preset that has a keyword. Length 1 to 200.                            |
| `country`          | "ALL" or string | No       |                                                                                                                                                                                                                                    |
| `sortBy`           | enum            | No       | One of: `total_impressions`, `relevancy_monthly_grouped`, `longest_running`.                                                                                                                                                       |
| `status`           | enum            | No       | One of: `ALL`, `ACTIVE`.                                                                                                                                                                                                           |
| `cursor`           | string or null  | No       |                                                                                                                                                                                                                                    |
| `mediaType`        | enum            | No       | One of: `all`, `image`, `video`.                                                                                                                                                                                                   |
| `resolvedCategory` | string          | No       | A market's category from adSpy.markets.list, to stay in that market.                                                                                                                                                               |
| `filters`          | object          | No       | The Ad Spy filter bar, applied to each results page; overrides the preset. startedAfter: ISO date. minRunDays: active ads run this many days. channels: e.g. FACEBOOK, INSTAGRAM. ctaTypes: e.g. SHOP\_NOW. 0 turns a minimum off. |
| `presetId`         | string (uuid)   | No       | Id from adSpy.filterPreset.list. Applies its country, status, media type, filters and keyword unless passed here.                                                                                                                  |
| `idempotency_key`  | string          | No       | Client-chosen key identifying this call. Reuse it only when retrying the same call. Length 1 to 200.                                                                                                                               |
| `max_credits`      | number          | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                                                                                                                                      |
| `response_format`  | enum            | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                                                                 |

### Output

| Field                    | Type            | Description                                                                              |
| ------------------------ | --------------- | ---------------------------------------------------------------------------------------- |
| `ads`                    | array of object | Items up to 50.                                                                          |
| `cursor`                 | string or null  |                                                                                          |
| `totalCount`             | number or null  |                                                                                          |
| `totalCountIsLowerBound` | boolean         | True when totalCount is a lower bound because Meta capped at least one count at 50,000.  |
| `servedFrom`             | enum or null    | One of: `archive`, `provider`.                                                           |
| `failedBrands`           | array of object |                                                                                          |
| `notice`                 | string          | Present when results were left out to keep the response small. Says how to see the rest. |
| `credits_charged`        | number          | Workspace credits charged by this call.                                                  |
| `credits_left`           | number or null  | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_ads_search",
    "arguments": {
      "max_credits": 1,
      "query": "cold plunge"
    }
  }
}
```

## `ad_spy_brand_ads_search`

**Search ads for a brand**

Lists ads for one verified Ad Spy brand, identified by its page ID and name from an Ad Spy brand search. Use for what/which/show/list requests; use adSpy.brand.getOverview for counts. Prefers cache/archive before a bounded live provider search. totalCount depends on servedFrom: archive results count creative groups (ad variations collapsed), not ads; provider results report the Meta Ad Library match count, which with status ACTIVE, timeWindow all and no country is the active ad count for the brand, and is null for windowed searches. When totalCountIsLowerBound is true, Meta capped at least one count at 50,000, so totalCount is only a lower bound: report it as more than totalCount rounded down (50,001 is more than 50,000), never as an exact count.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | About 2.4 credits           |
| Safe to repeat | Yes                         |

### Input

| Field             | Type            | Required | Description                                                                                                                                                                             |
| ----------------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pageId`          | string          | Yes      | A verified Ad Spy brand page ID returned by an Ad Spy brand search. Never infer or invent this value. Length 1 to 64.                                                                   |
| `pageName`        | string          | Yes      | The exact brand name returned with the verified page ID. Length 1 to 200.                                                                                                               |
| `country`         | "ALL" or string | No       |                                                                                                                                                                                         |
| `sortBy`          | enum            | No       | One of: `total_impressions`, `relevancy_monthly_grouped`, `longest_running`.                                                                                                            |
| `status`          | enum            | No       | One of: `ALL`, `ACTIVE`, `INACTIVE`.                                                                                                                                                    |
| `timeWindow`      | enum            | No       | One of: `3m`, `6m`, `12m`, `all`. Defaults to `"all"`.                                                                                                                                  |
| `cursor`          | string or null  | No       |                                                                                                                                                                                         |
| `pageIds`         | array of string | No       | Page ids from adSpy.brand.getGroup, to search its pages together. Items 1 to 50.                                                                                                        |
| `creativeFormats` | array of enum   | No       | Keeps only these formats. Items up to 9.                                                                                                                                                |
| `landingPath`     | string          | No       | Keeps only ads linking to this page, e.g. example.com/products/serum. Length 2 to 2048.                                                                                                 |
| `mediaType`       | enum            | No       | One of: `all`, `image`, `video`.                                                                                                                                                        |
| `filters`         | object          | No       | The Ad Spy filter bar, applied to each results page; overrides the preset. startedAfter: ISO date. channels: e.g. FACEBOOK, INSTAGRAM. ctaTypes: e.g. SHOP\_NOW. 0 turns a minimum off. |
| `presetId`        | string (uuid)   | No       | Id from adSpy.filterPreset.list. Applies its country, status, media type, creative formats and filters unless passed here; its keyword is not used.                                     |
| `idempotency_key` | string          | No       | Client-chosen key identifying this call. Reuse it only when retrying the same call. Length 1 to 200.                                                                                    |
| `max_credits`     | number          | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                                                                                           |
| `response_format` | enum            | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                      |

### Output

| Field                    | Type            | Description                                                                              |
| ------------------------ | --------------- | ---------------------------------------------------------------------------------------- |
| `ads`                    | array of object | Items up to 50.                                                                          |
| `cursor`                 | string or null  |                                                                                          |
| `totalCount`             | number or null  |                                                                                          |
| `totalCountIsLowerBound` | boolean         | True when totalCount is a lower bound because Meta capped at least one count at 50,000.  |
| `servedFrom`             | enum or null    | One of: `archive`, `provider`.                                                           |
| `failedBrands`           | array of object |                                                                                          |
| `notice`                 | string          | Present when results were left out to keep the response small. Says how to see the rest. |
| `credits_charged`        | number          | Workspace credits charged by this call.                                                  |
| `credits_left`           | number or null  | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_ads_search",
    "arguments": {
      "pageId": "example",
      "pageName": "example",
      "max_credits": 2.4
    }
  }
}
```

## `ad_spy_brands_search`

**Search Ad Spy brands**

Resolves an advertiser name to verified Ad Spy brand records and page IDs. Returns brands, not ads.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | About 0.15 credits          |
| Safe to repeat | Yes                         |

### Input

| Field             | Type   | Required | Description                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `query`           | string | Yes      | The advertiser name to resolve to an Ad Spy brand page ID before a brand-specific ad search. Length 1 to 200.      |
| `idempotency_key` | string | No       | Client-chosen key identifying this call. Reuse it only when retrying the same call. Length 1 to 200.               |
| `max_credits`     | number | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                      |
| `response_format` | enum   | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field             | Type            | Description                                                                              |
| ----------------- | --------------- | ---------------------------------------------------------------------------------------- |
| `brands`          | array of object | Items up to 50.                                                                          |
| `notice`          | string          | Present when results were left out to keep the response small. Says how to see the rest. |
| `credits_charged` | number          | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null  | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brands_search",
    "arguments": {
      "query": "example",
      "max_credits": 1
    }
  }
}
```

## `ad_spy_recommended_ads_search`

**Search ads from recommended brands**

Returns ads from brands Sellify recommends for this workspace's kind of business, the Recommended feed in Ad Spy. Use it for ads from brands like mine when no product, brand or keyword is named; category all picks brands for the workspace. Prefers stored ads, with at most 10 live searches a page.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | About 1.5 credits           |
| Safe to repeat | Yes                         |

### Input

| Field             | Type           | Required | Description                                                                                                        |
| ----------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `category`        | enum           | Yes      | One of: `all`, `general`, `high_ticket_500_plus`, `info_services`.                                                 |
| `mediaType`       | enum           | No       | One of: `all`, `image`, `video`. Defaults to `"all"`.                                                              |
| `cursor`          | string or null | No       |                                                                                                                    |
| `idempotency_key` | string         | No       | Client-chosen key identifying this call. Reuse it only when retrying the same call. Length 1 to 200.               |
| `max_credits`     | number         | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                      |
| `response_format` | enum           | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field                    | Type            | Description                                                                              |
| ------------------------ | --------------- | ---------------------------------------------------------------------------------------- |
| `ads`                    | array of object | Items up to 50.                                                                          |
| `cursor`                 | string or null  |                                                                                          |
| `totalCount`             | number or null  |                                                                                          |
| `totalCountIsLowerBound` | boolean         | True when totalCount is a lower bound because Meta capped at least one count at 50,000.  |
| `servedFrom`             | enum or null    | One of: `archive`, `provider`.                                                           |
| `failedBrands`           | array of object |                                                                                          |
| `notice`                 | string          | Present when results were left out to keep the response small. Says how to see the rest. |
| `credits_charged`        | number          | Workspace credits charged by this call.                                                  |
| `credits_left`           | number or null  | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_recommended_ads_search",
    "arguments": {
      "category": "all",
      "max_credits": 1.5
    }
  }
}
```

## `ad_spy_product_brand_recommendations_get`

**Get brand recommendations for a product**

Returns stored Ad Spy brand recommendations for one workspace product. Queues a bounded backfill when none exist yet, and retries a failed match with no brands once a few minutes have passed since it failed.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Writes data                 |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field       | Type          | Required | Description |
| ----------- | ------------- | -------- | ----------- |
| `productId` | string (uuid) | Yes      |             |

### Output

| Field            | Type            | Description                           |
| ---------------- | --------------- | ------------------------------------- |
| `productId`      | string (uuid)   |                                       |
| `productName`    | string          |                                       |
| `status`         | enum            | One of: `pending`, `ready`, `failed`. |
| `errorMessage`   | string or null  |                                       |
| `computedAt`     | string or null  |                                       |
| `requestedAt`    | string          |                                       |
| `pendingTooLong` | boolean         |                                       |
| `brands`         | array of object |                                       |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_product_brand_recommendations_get",
    "arguments": {
      "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  }
}
```

## `ad_spy_run`

**Refresh Ad Spy data or write hooks**

Paid Ad Spy jobs. brand\_ads fetches the ads a brand runs now, once a day per brand. product\_recommendations recomputes a product's brands to watch in the background, then read the product brand recommendations; unchanged products are skipped free. write\_hooks writes hooks for a product modelled on a library hook and returns them unsaved; save one the user keeps on a sales angle.

When kind is "brand\_ads" or "product\_recommendations" or "write\_hooks", the call uses workspace credits: pass max\_credits, the most it may spend. The call is refused before any work starts if it can cost more, or if it would take this connection past its daily credit limit.

Sellify may ask the user to confirm before it deletes something or spends many credits. If a call returns mcp\_confirmation\_required, show the user its question and retry with confirmation\_token only after they say yes.

| Property        | Value                                                   |
| --------------- | ------------------------------------------------------- |
| Access          | Writes data                                             |
| Scope           | Ad Spy: write (`adspy:write`)                           |
| Credits         | About 0 to 7 credits, depending on quantity and options |
| Who can call it | Workspace owners and admins                             |

### Input

| Field         | Type          | Required                                                  | Description                                                                                                                                                                  |
| ------------- | ------------- | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `kind`        | enum          | Yes                                                       | brand\_ads (pageId, pageName), product\_recommendations (productId) or write\_hooks (productId, openingHash). One of: `brand_ads`, `product_recommendations`, `write_hooks`. |
| `pageId`      | string        | When `kind` is `brand_ads`                                | Length 1 to 64.                                                                                                                                                              |
| `pageName`    | string        | When `kind` is `brand_ads`                                | Length 1 to 200.                                                                                                                                                             |
| `max_credits` | number        | Yes                                                       | The most credits this call may spend, with at most two decimals. Up to 10000.                                                                                                |
| `productId`   | string (uuid) | When `kind` is `product_recommendations` or `write_hooks` |                                                                                                                                                                              |
| `openingHash` | string        | When `kind` is `write_hooks`                              | The openingHash of a hook from the hook library. Length 1 to 128.                                                                                                            |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_run",
    "arguments": {
      "kind": "brand_ads",
      "pageId": "example",
      "pageName": "example",
      "max_credits": 7
    }
  }
}
```

## `ad_spy_market_get`

**Get Ad Spy markets, brands or trending ads**

Free. markets: the markets the workspace products sell in, or the market of a niche passed as term. brands: leading brands of a market, or recommended brands without one. trending: ads most saved across Sellify in 30 days.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type   | Required | Description                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `kind`            | enum   | Yes      | markets, brands (marketCategory is a markets category) or trending. One of: `markets`, `brands`, `trending`.       |
| `term`            | string | No       | A niche to resolve, such as cold plunge. Length 1 to 120.                                                          |
| `response_format` | enum   | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |
| `marketCategory`  | string | No       | Length 1 to 64.                                                                                                    |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_market_get",
    "arguments": {
      "kind": "markets"
    }
  }
}
```

## `ad_spy_saved_ads_list`

**List saved Ad Spy ads**

Returns a bounded tenant-scoped list, deterministic resolution status, and exact totalCount and formatCounts for saved Ad Spy ads. Use an exact saved-ad ID, advertiser, or headline query to resolve the source ad. Answer how-many questions from totalCount and formatCounts, never from savedAds length or resolution.candidateCount. With sort and no query, savedAds\[0] is the answer (not\_found means no saved ads match); an ambiguous resolution then only means more ads exist, so do not ask the user to choose.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type    | Required | Description                                                                                                                                                          |
| ----------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `query`           | string  | No       | Matches brand, headline or caption text, or an exact ad id. Never put ordering words like "oldest" or "newest" here; use sort instead. Length 1 to 120.              |
| `sort`            | enum    | No       | Order by savedAt (when each ad was saved to this workspace). Defaults to newest. Use oldest for the oldest, first, or earliest saved ad. One of: `newest`, `oldest`. |
| `limit`           | integer | No       | Between 1 and 10. Defaults to `5`.                                                                                                                                   |
| `response_format` | enum    | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                   |

### Output

| Field          | Type            | Description                                                                                                                                                                                                                                        |
| -------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `savedAds`     | array of object | Items up to 10.                                                                                                                                                                                                                                    |
| `resolution`   | object          |                                                                                                                                                                                                                                                    |
| `totalCount`   | integer         | Exact number of saved ads matching the query, or all saved ads when no query is given. Use this for how-many questions.                                                                                                                            |
| `formatCounts` | object          | Exact per-format counts over the same ads as totalCount; they sum to totalCount. video: VIDEO format, a video MIME type, or a stored video. carousel: CAROUSEL or MULTI\_IMAGES. image: IMAGE or no format. other: DCO, DPA, and any other format. |
| `notice`       | string          | Present when results were left out to keep the response small. Says how to see the rest.                                                                                                                                                           |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_saved_ads_list",
    "arguments": {}
  }
}
```

## `ad_spy_expert_picks_get`

**Browse Expert Picks**

Reads Expert Picks, winning ads the Sellify team picked. Free.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type          | Required                    | Description                                                                                                        |
| ----------------- | ------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `kind`            | enum          | Yes                         | collections lists them; collection returns a collection's ads, best first. One of: `collections`, `collection`.    |
| `response_format` | enum          | No                          | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |
| `collectionId`    | string (uuid) | When `kind` is `collection` |                                                                                                                    |
| `offset`          | integer       | No                          |                                                                                                                    |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_expert_picks_get",
    "arguments": {
      "kind": "collections"
    }
  }
}
```

## `ad_spy_saved_ad_set_saved`

**Save or unsave an Ad Spy ad**

Saves an ad from an Ad Spy search or Expert Picks into this workspace, or removes it from the saved ads, by the ad's exact adArchiveId. With saved true it returns the savedSpyAdId that cloning the ad needs, and repeating it returns the existing saved ad. With saved false the ad is removed from the saved ads, and repeating that reports removed false.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field              | Type    | Required | Description                                                                                                                                                          |
| ------------------ | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `saved`            | boolean | Yes      | true to save the ad, false to remove it from the saved ads.                                                                                                          |
| `adArchiveId`      | string  | Yes      | The exact adArchiveId of an Ad Spy search result or saved ad. Never infer or invent this value. Length 1 to 64.                                                      |
| `imageIndex`       | integer | No       | Between 0 and 49.                                                                                                                                                    |
| `expertPick`       | object  | No       | Only for an Expert Picks ad: the collectionId and itemId from its collection.                                                                                        |
| `expectedPageName` | string  | No       | The pageName of the saved ad. When present, the removal is refused if the saved ad has a different page name, ignoring case and surrounding spaces. Length 1 to 200. |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_saved_ad_set_saved",
    "arguments": {
      "saved": true,
      "adArchiveId": "example"
    }
  }
}
```

## `ad_spy_brand_set_following`

**Follow or unfollow an Ad Spy brand**

Follows or stops following one exact brand from an Ad Spy result in this tool's bound workspace. When the page belongs to a brand with several pages, every page of that brand is followed or unfollowed together. If the user names another workspace, do not call this tool. With following true it follows the brand, and repeating it returns the existing followed brand. With following false it stops following the brand, and repeating that is safe.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field              | Type           | Required                   | Description                                                                                                                                                                                                                                                        |
| ------------------ | -------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `following`        | boolean        | Yes                        | true to follow the brand (pass its pageId and pageName), false to stop following it (pass its pageId).                                                                                                                                                             |
| `pageId`           | string         | Yes                        | The exact page ID returned with an Ad Spy ad or brand. Never infer or invent this value. Length 1 to 64.                                                                                                                                                           |
| `pageName`         | string         | When `following` is `true` | Length 1 to 200.                                                                                                                                                                                                                                                   |
| `profilePicUrl`    | string or null | No                         |                                                                                                                                                                                                                                                                    |
| `expectedPageName` | string         | No                         | The page name, or for a brand group the brand name that the followed brands list returns as pageName. When present, the unfollow is refused if neither the followed page nor its brand group has this name, ignoring case and surrounding spaces. Length 1 to 200. |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_set_following",
    "arguments": {
      "following": true,
      "pageId": "example",
      "pageName": "example"
    }
  }
}
```

## `ad_spy_brand_follow_batch`

**Follow several Ad Spy brands**

Follows up to 100 exact brands returned by Ad Spy. Existing follows are left unchanged and reported separately, with the page IDs of the brands followed now and the ones already followed.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field    | Type            | Required | Description     |
| -------- | --------------- | -------- | --------------- |
| `brands` | array of object | Yes      | Items 1 to 100. |

### Output

| Field                    | Type            | Description                                                                                                                                 |
| ------------------------ | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `followedCount`          | integer         |                                                                                                                                             |
| `alreadyFollowedCount`   | integer         |                                                                                                                                             |
| `followedPageIds`        | array of string |                                                                                                                                             |
| `alreadyFollowedPageIds` | array of string |                                                                                                                                             |
| `statsWaitForCredits`    | true            | Present when the workspace is out of credits: the brand is followed, and its stats fill in after the workspace tops up. Tell the user this. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_follow_batch",
    "arguments": {
      "brands": [
        {
          "pageId": "example",
          "pageName": "example"
        }
      ]
    }
  }
}
```

## `ad_spy_brand_request_ads`

**Request Ad Spy collection for a brand**

Queues collection for an exact Meta brand. The request runs asynchronously; alreadyCollecting means an existing collection is still in progress.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |

### Input

| Field      | Type   | Required | Description                                                                                      |
| ---------- | ------ | -------- | ------------------------------------------------------------------------------------------------ |
| `pageId`   | string | Yes      | The exact Meta page ID of a brand from an Ad Spy brand search. Never infer or invent this value. |
| `pageName` | string | Yes      | Length 1 to 200.                                                                                 |

### Output

| Field               | Type            | Description |
| ------------------- | --------------- | ----------- |
| `enqueued`          | boolean         |             |
| `alreadyCollecting` | boolean         |             |
| `requestedAtMs`     | integer or null |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_request_ads",
    "arguments": {
      "pageId": "example",
      "pageName": "example"
    }
  }
}
```

## `ad_spy_brand_status`

**Check Ad Spy brand collection and enrichment**

Reports, for each exact brand page ID, whether this workspace follows it, the state of its latest ads collection request (collecting or collected, collected with no ads, failed, or not requested), whether Ad Spy already has archived ads for it, and whether its brand stats are ready. Use it to report the outcome of a brand ads request or a batch follow.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type            | Required | Description                                                                                                        |
| ----------------- | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `pageIds`         | array of string | Yes      | Items 1 to 100.                                                                                                    |
| `response_format` | enum            | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field    | Type            | Description                                                                              |
| -------- | --------------- | ---------------------------------------------------------------------------------------- |
| `brands` | array of object | Items up to 100.                                                                         |
| `notice` | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_status",
    "arguments": {
      "pageIds": [
        "example"
      ]
    }
  }
}
```

## `ad_spy_followed_brands_list`

**List followed Ad Spy brands**

Lists the brands this workspace follows in Ad Spy, one item per brand exactly as the Following page shows them, so you can answer "which brands am I following", "how many brands do I follow" or "how many live ads does each brand I follow have". A brand with several Facebook pages is one item named after the brand, with its followed pages under pages and activeAdCount summed across them; never list those pages as separate brands. Order is newest follow first unless sort is activeAdCount. It reads stored Ad Spy data for free. activeAdCount is the live count shown on the Following page from Sellify's ad archive, activeAdCountSource is archive, and activeAdCountAsOf is the oldest archive sighting among the brand's pages with active ads. A zero count means Sellify holds ads for that brand but none are running; null means Sellify has not collected any of its ads yet. For the running ad count of one named brand, use adSpy.brand.getOverview instead. Results come in pages: pass limit, and while hasMore is true pass nextCursor as cursor, with the same sort, to get the next page. followedBrandCount is the number of brands across all pages, and 0 means the workspace follows no brands yet.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type           | Required | Description                                                                                                                                                                                                                                                                                                                         |
| ----------------- | -------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `limit`           | integer        | No       | How many followed brands to return in this page. Between 1 and 100. Defaults to `50`.                                                                                                                                                                                                                                               |
| `cursor`          | string or null | No       | nextCursor from the previous page. Leave it out for the first page, and keep the same sort for every page.                                                                                                                                                                                                                          |
| `sort`            | enum           | No       | Order of the brands. followedAt (default) lists the newest follow first. activeAdCount lists the brand with the most live ads first, brands without a count last, ties by name; use it when the user asks to sort or rank followed brands by live or active ads. One of: `followedAt`, `activeAdCount`. Defaults to `"followedAt"`. |
| `response_format` | enum           | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                                                                                                                                                                  |

### Output

| Field                | Type            | Description                                                                                                |
| -------------------- | --------------- | ---------------------------------------------------------------------------------------------------------- |
| `followedBrandCount` | integer         | How many brands the workspace follows across all pages, counting a brand with several Facebook pages once. |
| `followedBrands`     | array of object | Items up to 100.                                                                                           |
| `hasMore`            | boolean         |                                                                                                            |
| `nextCursor`         | string or null  |                                                                                                            |
| `notice`             | string          | Present when results were left out to keep the response small. Says how to see the rest.                   |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_followed_brands_list",
    "arguments": {}
  }
}
```

## `ad_spy_followed_brands_new_ads`

**List new ads from followed Ad Spy brands**

Lists the ads that brands this workspace follows launched since a moment you choose, defaulting to the last 24 hours, so you can answer "what's new from brands I follow since yesterday". It reads stored Ad Spy data for free. Returns up to 10 Facebook pages with the newest launches and up to 6 ads each; each entry in brands is one page, and a followed brand with several pages can have several entries, so count brands with followedBrandCount, not with the entries. newAdCount is each page's full count, and since and until give the exact window read. Pages with no new ads are left out, and followedBrandCount 0 means the workspace follows no brands yet.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type               | Required | Description                                                                                                                                                        |
| ----------------- | ------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `since`           | string (date-time) | No       | ISO 8601 date and time. Only ads Ad Spy first saw after this moment are returned. Defaults to 24 hours ago; anything older than 31 days is treated as 31 days ago. |
| `response_format` | enum               | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                 |

### Output

| Field                | Type            | Description                                                                                                                                                                       |
| -------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `since`              | string          |                                                                                                                                                                                   |
| `until`              | string          |                                                                                                                                                                                   |
| `followedBrandCount` | integer         | How many brands the workspace follows, counting a brand with several Facebook pages once.                                                                                         |
| `brands`             | array of object | One entry per Facebook page with new ads, not per brand: several entries can belong to one followed brand, so never compare their number with followedBrandCount. Items up to 10. |
| `notice`             | string          | Present when results were left out to keep the response small. Says how to see the rest.                                                                                          |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_followed_brands_new_ads",
    "arguments": {}
  }
}
```

## `ad_spy_brand_get_overview`

**Get an Ad Spy brand overview**

Reads the stored overview for one verified Ad Spy brand. It returns statistics, but no ad examples. Use for explicit count or overview requests; use adSpy.brandAds.search for what/which/show/list requests. activeAdCount answers how many ads the brand is running now and is never limited by timeWindow: it is Sellify's ad archive count of the brand's active ads as of activeAdCountAsOf, summed across every page of the brand (its brand group), the same number as the Following page and adSpy.followedBrands.list; null means Sellify has no running count for the brand right now. Every other field, including coverageCount, mediaMix, newAdsLast30d, landing pages and niche, covers the requested page only, except instagramEngagement, which comes from the first page of the brand group with a confirmed Instagram account. coverageCount counts active archived ads of that page that started within timeWindow; never report it as the running total or compare it with activeAdCount. pageId must be the page ID an Ad Spy brand search returned for this brand; never guess it. Pass a returned normalizedUrl verbatim to adSpy.brand.getLandingPageAds. This is an archive/cache read and does not run a live ad-provider search.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type   | Required | Description                                                                                                                                                                                                                                             |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pageId`          | string | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.                                                                                                                                           |
| `timeWindow`      | enum   | No       | Limits coverageCount and the ad-mix fields to active ads that started within this window. It never changes activeAdCount. Keep the default all unless the user asks about recently launched ads. One of: `3m`, `6m`, `12m`, `all`. Defaults to `"all"`. |
| `response_format` | enum   | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                                                                                      |

### Output

| Field                      | Type            | Description                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------- | --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `source`                   | enum            | One of: `archive`, `legacy`.                                                                                                                                                                                                                                                                                                                                                                                                     |
| `timeWindow`               | enum            | The start-date window applied to coverageCount. One of: `3m`, `6m`, `12m`, `all`.                                                                                                                                                                                                                                                                                                                                                |
| `activeAdCount`            | integer or null | Ads the brand is running now in Sellify's ad archive, summed across all of the brand's pages (its brand group) and never limited by timeWindow. The same number as the Following page and adSpy.followedBrands.list. Zero when Sellify holds ads for the brand but none are running; null when Sellify has no running count for the brand right now, because its ads have not been collected yet or the count could not be read. |
| `activeAdCountSource`      | enum or null    | archive: archived ads that the Ad Spy archive last saw running. Null exactly when activeAdCount is null. meta\_ad\_library remains in the response enum for backward compatibility. One of: `archive`, `meta_ad_library`.                                                                                                                                                                                                        |
| `activeAdCountAsOf`        | string or null  | ISO time activeAdCount was taken: the oldest archive sighting among all of the brand's pages with active ads. Null when no page of the brand has active ads.                                                                                                                                                                                                                                                                     |
| `coverageCount`            | integer or null | Active archived ads of the requested page only that started within timeWindow; the basis for mediaMix, landing pages and niche. Never the running total; do not compare it with activeAdCount, which covers all of the brand's pages. Null for legacy overviews.                                                                                                                                                                 |
| `distinctLandingPageCount` | integer or null |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `duplicateCreativeCount`   | integer or null |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `hasError`                 | boolean         |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `instagramEngagement`      | object or null  | The brand's Instagram account, only when Sellify confirmed it belongs to the brand, with figures from its last 12 posts: posts per week, median likes, median comments, median views (null with fewer than 3 videos) and the most-liked post. Likes include engagement from boosted posts. Null when no account is confirmed.                                                                                                    |
| `landingPageCoverageCount` | integer         |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `landingPages`             | array of object | Items up to 10.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `mediaMix`                 | object or null  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `monthlyActive`            | array of object | Items up to 24.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `newAdsLast30d`            | integer or null |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `newAdsPrev30d`            | integer or null |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `niche`                    | array of string | Items up to 10.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `partnership`              | object or null  |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `pending`                  | boolean         |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `social`                   | object          |                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `storeSize`                | object or null  | The brand's online store size, estimated from third-party store data as of Oct 2026, never from Meta: estimated monthly sales in USD, ecommerce platform and product count. summary is the line the brand page shows, such as est. $132k/mo on Shopify, 240 products. Null when Sellify has no store data for the brand, either because no store matched or because the store data could not be read right now.                  |
| `notice`                   | string          | Present when results were left out to keep the response small. Says how to see the rest.                                                                                                                                                                                                                                                                                                                                         |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get_overview",
    "arguments": {
      "pageId": "example"
    }
  }
}
```

## `ad_spy_brand_get_intelligence`

**Get stored Ad Spy brand intelligence**

Reads the stored top landing pages and popular hooks for one verified Ad Spy brand. pending reports whether background enrichment is still running; this action does not make a live provider call.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type   | Required | Description                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `pageId`          | string | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.      |
| `response_format` | enum   | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field          | Type            | Description                                                                              |
| -------------- | --------------- | ---------------------------------------------------------------------------------------- |
| `landingPages` | array of object | Items up to 10.                                                                          |
| `popularHooks` | array of object | Items up to 10.                                                                          |
| `scannedCount` | integer         |                                                                                          |
| `pending`      | boolean         |                                                                                          |
| `hasError`     | boolean         |                                                                                          |
| `notice`       | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get_intelligence",
    "arguments": {
      "pageId": "example"
    }
  }
}
```

## `ad_spy_brand_get_stats`

**Get stored stats for a followed Ad Spy brand**

Reads stored aggregate stats for one brand followed by this workspace, including active ads, trend, media mix and landing-page counts. activeAdsCount is the last checked Meta Ad Library active count (may be a lower bound) and may differ from adSpy.brand.getOverview activeAdCount; monthlyActive counts ads active at any point in each month. If enrichment is pending, retry later; this action does not make a live provider call.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type   | Required | Description                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `pageId`          | string | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.      |
| `response_format` | enum   | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field                      | Type            | Description                                                                              |
| -------------------------- | --------------- | ---------------------------------------------------------------------------------------- |
| `activeAdsCount`           | integer or null |                                                                                          |
| `activeSince`              | integer or null |                                                                                          |
| `changeFromPrevMonthPct`   | number or null  |                                                                                          |
| `distinctLandingPageCount` | integer or null |                                                                                          |
| `duplicateCreativeCount`   | integer or null |                                                                                          |
| `mediaMix`                 | object or null  |                                                                                          |
| `monthlyActive`            | array of object | Items up to 24.                                                                          |
| `newAdsLast30d`            | integer or null |                                                                                          |
| `newAdsPrev30d`            | integer or null |                                                                                          |
| `niche`                    | array of string | Items up to 10.                                                                          |
| `pageLikeCount`            | integer or null |                                                                                          |
| `pageProfileUrl`           | string or null  |                                                                                          |
| `pending`                  | boolean         |                                                                                          |
| `profilePicUrl`            | string or null  |                                                                                          |
| `notice`                   | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get_stats",
    "arguments": {
      "pageId": "example"
    }
  }
}
```

## `ad_spy_brand_get_research`

**Get Ad Spy brand research rollups**

Reads bounded research rollups for one verified brand: hooks, copy, headlines, landing pages, personas, angles, USPs, desires, emotions and themes. Use it when the user asks which hooks, copy, headlines, angles, personas or landing pages a named brand uses most, or in how many ads. The numbers match the Brand page for that page ID: ads live in the window, ended ones included, and variations of one ad count once. Pass a returned section and row key verbatim to adSpy.brand.getResearchAds. Rows can be ranked by ad count or longest-running-days, the available durability proxy. representativeAdId is the longest-running ad in the row, so its start date matches longestDays. Each row share of ads is adCount divided by the basisAds of its section.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type    | Required | Description                                                                                                                                                                                                                                                       |
| ----------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pageId`          | string  | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.                                                                                                                                                     |
| `window`          | enum    | No       | Counts ads live in this window, ended ones included. Defaults to 3m, the window the Brand page overview opens on; its research tabs open on 30d. Pass the same window to adSpy.brand.getResearchAds. One of: `30d`, `3m`, `6m`, `12m`, `all`. Defaults to `"3m"`. |
| `section`         | enum    | No       | One of: `hook`, `copy`, `headline`, `landing`, `persona`, `adAngle`, `usp`, `desire`, `emotion`, `theme`.                                                                                                                                                         |
| `sortBy`          | enum    | No       | One of: `ad_count`, `longest_running`. Defaults to `"ad_count"`.                                                                                                                                                                                                  |
| `limit`           | integer | No       | Maximum rows returned per research section. Between 1 and 10. Defaults to `10`.                                                                                                                                                                                   |
| `response_format` | enum    | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                                                                                                |

### Output

| Field              | Type                     | Description                                                                                                               |
| ------------------ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| `totalAds`         | integer                  |                                                                                                                           |
| `taggedAds`        | integer                  |                                                                                                                           |
| `groupingVersion`  | string                   | Length up to 100.                                                                                                         |
| `groupingPending`  | boolean                  |                                                                                                                           |
| `taggingPending`   | boolean                  |                                                                                                                           |
| `tagsCapped`       | boolean                  |                                                                                                                           |
| `window`           | enum                     | The window these rows cover; pass the same window to adSpy.brand.getResearchAds. One of: `30d`, `3m`, `6m`, `12m`, `all`. |
| `sortedBy`         | enum                     | One of: `ad_count_desc`, `longest_running_days_desc`.                                                                     |
| `performanceProxy` | "longest\_running\_days" |                                                                                                                           |
| `sections`         | array of object          | Items up to 10.                                                                                                           |
| `notice`           | string                   | Present when results were left out to keep the response small. Says how to see the rest.                                  |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get_research",
    "arguments": {
      "pageId": "example"
    }
  }
}
```

## `ad_spy_brand_get_research_ads`

**Get ads matching a brand research row**

Reads a bounded page of stored ads matching an exact research section and row key returned by adSpy.brand.getResearch. The response contains compact ad summaries rather than raw provider payloads and does not run a live provider search.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type           | Required | Description                                                                                                                                                                         |
| ----------------- | -------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pageId`          | string         | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.                                                                       |
| `window`          | enum           | No       | The window of the adSpy.brand.getResearch call that returned rowKey. One of: `30d`, `3m`, `6m`, `12m`, `all`. Defaults to `"3m"`.                                                   |
| `section`         | enum           | Yes      | One of: `hook`, `copy`, `headline`, `landing`, `persona`, `adAngle`, `usp`, `desire`, `emotion`, `theme`.                                                                           |
| `rowKey`          | string         | Yes      | The exact row key returned by adSpy.brand.getResearch. Length 1 to 2048.                                                                                                            |
| `cursor`          | string or null | No       | Opaque pagination cursor. Omit it for the first page; for the next page, pass the previous response nextCursor verbatim. Never invent, decode, or transform it. Defaults to `null`. |
| `limit`           | integer        | No       | Between 1 and 25. Defaults to `10`.                                                                                                                                                 |
| `response_format` | enum           | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                  |

### Output

| Field        | Type            | Description                                                                                                          |
| ------------ | --------------- | -------------------------------------------------------------------------------------------------------------------- |
| `ads`        | array of object | The current page of stored ad summaries in stable order. Items up to 25.                                             |
| `nextCursor` | string or null  | Opaque cursor for the next page. Pass it verbatim as cursor on the next call; null means there are no more pages.    |
| `totalCount` | integer or null | Exact matching-ad count on the first page; null on every page requested with a cursor.                               |
| `window`     | enum            | The window these ads were matched in, the same window as the research rows. One of: `30d`, `3m`, `6m`, `12m`, `all`. |
| `notice`     | string          | Present when results were left out to keep the response small. Says how to see the rest.                             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get_research_ads",
    "arguments": {
      "pageId": "example",
      "section": "hook",
      "rowKey": "example"
    }
  }
}
```

## `ad_spy_brand_get_landing_page_ads`

**Get stored ads for a brand landing page**

Reads a bounded page of active stored ads that send traffic to an exact landing-page normalizedUrl supplied by the user, returned by adSpy.brand.getOverview, or returned as row\.key by the landing section of adSpy.brand.getResearch. Prefer the normalizedUrl or research row\.key; the action also normalizes a research row\.url display URL before lookup. Use this action instead of adSpy.brand.getResearchAds for exact landing-page URL requests. The response contains compact ad summaries and does not run a live provider search.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type           | Required | Description                                                                                                                                                                                                                                                                                               |
| ----------------- | -------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `pageId`          | string         | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.                                                                                                                                                                                             |
| `normalizedUrl`   | string         | Yes      | The landing-page normalizedUrl supplied by the user, returned by adSpy.brand.getOverview, or returned as row\.key by the landing section of adSpy.brand.getResearch. Prefer that exact normalized value. A research row\.url display URL is also accepted and normalized before lookup. Length 1 to 2048. |
| `timeWindow`      | enum           | No       | One of: `3m`, `6m`, `12m`, `all`. Defaults to `"all"`.                                                                                                                                                                                                                                                    |
| `cursor`          | string or null | No       | Opaque pagination cursor. Omit it for the first page; for the next page, pass the previous response nextCursor verbatim. Never invent, decode, or transform it. Defaults to `null`.                                                                                                                       |
| `limit`           | integer        | No       | Between 1 and 25. Defaults to `10`.                                                                                                                                                                                                                                                                       |
| `response_format` | enum           | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                                                                                                                                        |

### Output

| Field        | Type            | Description                                                                                                       |
| ------------ | --------------- | ----------------------------------------------------------------------------------------------------------------- |
| `ads`        | array of object | The current page of stored ad summaries in stable order. Items up to 25.                                          |
| `nextCursor` | string or null  | Opaque cursor for the next page. Pass it verbatim as cursor on the next call; null means there are no more pages. |
| `totalCount` | integer or null | Exact matching-ad count on the first page; null on every page requested with a cursor.                            |
| `notice`     | string          | Present when results were left out to keep the response small. Says how to see the rest.                          |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get_landing_page_ads",
    "arguments": {
      "pageId": "example",
      "normalizedUrl": "example"
    }
  }
}
```

## `ad_spy_brand_get_longest_running_ads`

**Get a brand's longest-running live ads**

Lists the oldest still-running ads of one verified Ad Spy brand, one per variation group, ranked by start date (oldest first, ties to the lower adArchiveId). Use it for longest-running, oldest still-running or evergreen ads, never a newest-first or top-performer search. An ad counts as still running when Sellify last recorded it as active and saw it within the last 21 days. runningDays counts whole days from startedAt to now, and daysSinceSeen says how long ago Sellify last saw the ad. coverage complete means a full crawl of the brand's ad history finished recently, so the ranking covers every ad the brand runs. When coverage is collecting or partial, the ranking covers only the ads Sellify holds so far: say so before calling an ad the brand's longest-running or saving anything, and an empty ads list means none are held yet, not that the brand runs no ads. When coverage is partial and the user wants the full history, offer to collect it with adSpy.brand.requestAds. This reads stored data for free, changes nothing and does not run a live provider search.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type    | Required | Description                                                                                                        |
| ----------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `pageId`          | string  | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.      |
| `limit`           | integer | No       | Maximum ads returned, oldest still-running first. Between 1 and 20. Defaults to `5`.                               |
| `response_format` | enum    | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field      | Type            | Description                                                                                                                                                                                                                                                                                 |
| ---------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ads`      | array of object | Still-running ads, one per variation group, oldest start date first. Ties go to the lower adArchiveId. Items up to 20.                                                                                                                                                                      |
| `coverage` | enum            | complete: a full crawl of the brand's ad history finished recently, so the ranking covers every ad it runs. collecting: Sellify's first collection of the brand is in progress. partial: the ranking covers only the ads Sellify holds so far. One of: `complete`, `collecting`, `partial`. |
| `notice`   | string          | Present when results were left out to keep the response small. Says how to see the rest.                                                                                                                                                                                                    |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get_longest_running_ads",
    "arguments": {
      "pageId": "example"
    }
  }
}
```

## `ad_spy_brand_get`

**Read what a brand tests and who it competes with**

Reads more of one Ad Spy brand by pageId. creative\_tests: what it is testing, meaning days it launched several new ads at once and which are winning. ad\_families: ads it keeps remaking with new copy or creative. similar\_brands: its closest competitors. group: its Facebook pages and websites. Free.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type            | Required | Description                                                                                                                                                                              |
| ----------------- | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `kind`            | enum            | Yes      | creative\_tests takes window; ad\_families takes familyKey, cursor and limit; similar\_brands takes includeFollowed. One of: `creative_tests`, `ad_families`, `similar_brands`, `group`. |
| `pageId`          | string          | Yes      | The exact page ID returned by an Ad Spy brand or ad search. Never infer or invent this value. Length 1 to 64.                                                                            |
| `window`          | enum            | No       | Launch days in this window, as on the Tests tab. One of: `30d`, `3m`, `6m`, `12m`, `all`. Defaults to `"30d"`.                                                                           |
| `response_format` | enum            | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                       |
| `familyKey`       | string or null  | No       | Pass a family key to page through all its versions. Defaults to `null`.                                                                                                                  |
| `cursor`          | integer or null | No       | The previous nextCursor. Defaults to `null`.                                                                                                                                             |
| `limit`           | integer         | No       | Between 1 and 24. Defaults to `10`.                                                                                                                                                      |
| `includeFollowed` | boolean         | No       | false leaves out brands this workspace follows. Defaults to `true`.                                                                                                                      |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_brand_get",
    "arguments": {
      "kind": "creative_tests",
      "pageId": "example"
    }
  }
}
```

## `ad_spy_ads_summarize`

**Count or summarize stored Ad Spy ads**

Reads the ads Sellify already holds for a keyword or one brand, without searching Meta. Free. Variations count once as creative groups. count returns how many there are, how many still run and how fresh they are; call it before a paid search, and when searchLikelyFree is true that search will most likely cost nothing. breakdown summarizes them by format, call to action, run length, launch month and topBrands; ads running past 30 or 90 days are the strongest sign of a winner. For one brand’s live total use the brand overview activeAdCount.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type   | Required | Description                                                                                                                              |
| ----------------- | ------ | -------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `kind`            | enum   | Yes      | count for totals and freshness, breakdown for the market shape. One of: `count`, `breakdown`.                                            |
| `query`           | string | No       | A keyword, product or niche from the user request. Pass this or pageId, not both. Length 1 to 200.                                       |
| `pageId`          | string | No       | The exact page ID of one brand, returned by an Ad Spy brand or ad search. Pass this or query, not both. Never invent it. Length 1 to 64. |
| `country`         | string | No       | Two-letter country code. Omit for all countries. A country also includes ads with no recorded country. Length 2 to 2.                    |
| `status`          | enum   | No       | ACTIVE counts only ads still running. Defaults to ACTIVE. One of: `ALL`, `ACTIVE`.                                                       |
| `response_format` | enum   | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                       |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_ads_summarize",
    "arguments": {
      "kind": "count"
    }
  }
}
```

## `ad_spy_ads_top_hooks`

**Rank hooks or browse the hook library**

Free. query ranks the hooks most reused in stored ads for a keyword or one brand; report adsWithHookCount of matchedAdCount. library lists the strongest hooks of one market (a markets category), with goal and pattern; its openingHash lets Sellify write hooks like it.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type    | Required | Description                                                                                                                                                                                     |
| ----------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `kind`            | enum    | Yes      | query (pass query or pageId) or library. One of: `query`, `library`.                                                                                                                            |
| `query`           | string  | No       | A keyword, product or niche from the user request. Pass this or pageId, not both. Length 1 to 200.                                                                                              |
| `pageId`          | string  | No       | The exact page ID of one brand, returned by an Ad Spy brand or ad search. Pass this or query, not both. Never invent it. For one brand's hooks, prefer adSpy.brand.getResearch. Length 1 to 64. |
| `country`         | string  | No       | Two-letter country code. Omit for all countries. A country also includes ads with no recorded country. Length 2 to 2.                                                                           |
| `status`          | enum    | No       | ACTIVE counts only ads still running. Defaults to ACTIVE. One of: `ALL`, `ACTIVE`.                                                                                                              |
| `limit`           | integer | No       | How many hooks to return. Defaults to 10. Between 1 and 25.                                                                                                                                     |
| `response_format` | enum    | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                              |
| `category`        | string  | No       | Length 1 to 64.                                                                                                                                                                                 |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_ads_top_hooks",
    "arguments": {
      "kind": "query"
    }
  }
}
```

## `ad_spy_ad_get`

**Read one Ad Spy ad**

Reads one stored ad. detail: its brand, copy, landing page, media, platforms, start date and whether it still runs. hooks: its hook, angle, persona, desire, emotion and selling point; when analyzed is false, offer to transcribe or analyze a video ad instead, which costs credits. similar: the closest ads from other brands. landing\_page: what the page an ad links to sells, with title, product and price. Free.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field                | Type    | Required | Description                                                                                                                                  |
| -------------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| `kind`               | enum    | Yes      | All take adArchiveId. similar also takes mediaType, activeOnly and includeSourceBrand. One of: `detail`, `hooks`, `similar`, `landing_page`. |
| `adArchiveId`        | string  | Yes      | The ad archive ID from an Ad Spy result. Never invent it. Length 1 to 64.                                                                    |
| `mediaType`          | enum    | No       | One of: `all`, `image`, `video`. Defaults to `"all"`.                                                                                        |
| `activeOnly`         | boolean | No       | Defaults to `true`.                                                                                                                          |
| `includeSourceBrand` | boolean | No       | true also returns ads from the same brand. Defaults to `false`.                                                                              |
| `response_format`    | enum    | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                           |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_ad_get",
    "arguments": {
      "kind": "detail",
      "adArchiveId": "example"
    }
  }
}
```

## `ad_spy_advertisers_find_by_domain`

**Find advertisers by website domain**

Finds the brand pages whose stored ads send people to a website domain or store URL, including its subdomains. Returns each brand page ID, name and ad counts. Costs no credits.

Free. Use this when the user gives a website or store URL instead of a brand name, or asks who advertises a site. Pass the pageId from a result to the brand tools for that brand. An empty list means Sellify holds no ads pointing at that domain yet; then search Ad Spy brands by name.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type    | Required | Description                                                                                                                                |
| ----------------- | ------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `domain`          | string  | Yes      | A website domain or store URL from the user request, such as gymshark.com or `https://www.gymshark.com/collections/new`. Length 3 to 2048. |
| `limit`           | integer | No       | How many advertisers to return. Defaults to 10. Between 1 and 25.                                                                          |
| `response_format` | enum    | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                         |

### Output

| Field         | Type            | Description                                                                              |
| ------------- | --------------- | ---------------------------------------------------------------------------------------- |
| `domain`      | string          | Length up to 253.                                                                        |
| `advertisers` | array of object | Items up to 25.                                                                          |
| `notice`      | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_advertisers_find_by_domain",
    "arguments": {
      "domain": "example"
    }
  }
}
```

## `ad_spy_saved_search_list`

**List saved Ad Spy searches**

Lists the saved Ad Spy searches in this workspace, newest 50 first, with the exact id needed to run or delete one and the keyword or brand each one searches. canDelete says whether the current user may delete it. Costs no credits.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type | Required | Description                                                                                                        |
| ----------------- | ---- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `response_format` | enum | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field           | Type            | Description                                                                              |
| --------------- | --------------- | ---------------------------------------------------------------------------------------- |
| `savedSearches` | array of object | Items up to 50.                                                                          |
| `truncated`     | boolean         |                                                                                          |
| `notice`        | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_saved_search_list",
    "arguments": {}
  }
}
```

## `ad_spy_saved_search_run`

**Run a saved Ad Spy search**

Runs a saved Ad Spy search by its id and returns the same ads a fresh search with its keyword or brand would return. It is charged exactly like that search: often nothing when Sellify already holds fresh ads, otherwise a few credits per results page. When totalCountIsLowerBound is true, Meta capped at least one count at 50,000, so totalCount is only a lower bound: report it as more than totalCount rounded down (50,001 is more than 50,000), never as an exact count.

Use this when the user asks to run, rerun or check a search they saved, passing the id from the saved search list. max\_credits is the most the run may spend, not what it will cost.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | About 2.4 credits           |
| Safe to repeat | Yes                         |

### Input

| Field             | Type           | Required | Description                                                                                                        |
| ----------------- | -------------- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `id`              | string (uuid)  | Yes      | The exact saved search id returned when the search was listed or saved. Never invent it.                           |
| `cursor`          | string or null | No       | The cursor from the previous run of this saved search, to get the next page. Omit for the first page.              |
| `idempotency_key` | string         | No       | Client-chosen key identifying this call. Reuse it only when retrying the same call. Length 1 to 200.               |
| `max_credits`     | number         | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                                      |
| `response_format` | enum           | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field                    | Type            | Description                                                                              |
| ------------------------ | --------------- | ---------------------------------------------------------------------------------------- |
| `ads`                    | array of object | Items up to 50.                                                                          |
| `cursor`                 | string or null  |                                                                                          |
| `totalCount`             | number or null  |                                                                                          |
| `totalCountIsLowerBound` | boolean         | True when totalCount is a lower bound because Meta capped at least one count at 50,000.  |
| `servedFrom`             | enum or null    | One of: `archive`, `provider`.                                                           |
| `failedBrands`           | array of object |                                                                                          |
| `savedSearch`            | object          |                                                                                          |
| `notice`                 | string          | Present when results were left out to keep the response small. Says how to see the rest. |
| `credits_charged`        | number          | Workspace credits charged by this call.                                                  |
| `credits_left`           | number or null  | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_saved_search_run",
    "arguments": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "max_credits": 2.4
    }
  }
}
```

## `ad_spy_video_transcript_start`

**Start video ad transcription**

Starts transcription for a video ad. If the result is pending, poll the transcript status action until it is ready or failed.

Use this when the user wants the words spoken in a video ad. Take adArchiveId from an Ad Spy search or saved ad result; never invent one. Transcription runs in the background. This returns pending or ready, never the transcript itself: poll the video status tool with kind transcript and the same adArchiveId until it is ready or failed, and read the transcript from that result.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | About 0.25 credits            |
| Who can call it | Workspace owners and admins   |

### Input

| Field             | Type   | Required | Description                                                                                           |
| ----------------- | ------ | -------- | ----------------------------------------------------------------------------------------------------- |
| `adArchiveId`     | string | Yes      | Length 1 to 64.                                                                                       |
| `idempotency_key` | string | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200. |
| `max_credits`     | number | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                         |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `status`          | enum           | One of: `pending`, `ready`.                                                              |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_video_transcript_start",
    "arguments": {
      "adArchiveId": "example",
      "max_credits": 1
    }
  }
}
```

## `ad_spy_video_get_status`

**Get Ad Spy video job status**

Checks an Ad Spy video job (a transcript, a scene-by-scene analysis, or similar scripts) and returns its result when it is ready. While the status is pending or processing, wait a few seconds and call this again. When it fails, tell the user why and stop polling. Missing means the job was never started for this ad.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field          | Type          | Required                                  | Description                                                                                                                                                                                                                  |
| -------------- | ------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `kind`         | enum          | Yes                                       | Which job to check. transcript and analysis take the adArchiveId the job was started for. similar\_scripts takes the submissionId returned when script writing started. One of: `transcript`, `analysis`, `similar_scripts`. |
| `adArchiveId`  | string        | When `kind` is `transcript` or `analysis` | Length 1 to 64.                                                                                                                                                                                                              |
| `format`       | "storyboard"  | No                                        | Return a storyboard table instead of scenes. Only for kind analysis.                                                                                                                                                         |
| `submissionId` | string (uuid) | When `kind` is `similar_scripts`          |                                                                                                                                                                                                                              |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_video_get_status",
    "arguments": {
      "kind": "transcript",
      "adArchiveId": "example"
    }
  }
}
```

## `ad_spy_video_analysis_start`

**Start full video ad analysis**

Starts structured full-video analysis for an ad. If the result is pending, poll the video analysis status action until it is ready or failed.

Use this when the user wants a video ad broken down scene by scene, such as its hook, visuals and pacing. When they only want the spoken words, transcribe the video instead, which costs less. Take adArchiveId from an Ad Spy search or saved ad result; never invent one. Analysis runs in the background. This returns pending or ready, never the analysis itself: poll the video status tool with kind analysis and the same adArchiveId until it is ready, failed, or storyboard (with format storyboard), and read the analysis from that result.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | About 3 credits               |
| Who can call it | Workspace owners and admins   |

### Input

| Field             | Type           | Required | Description                                                                                           |
| ----------------- | -------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `adArchiveId`     | string         | Yes      | Length 1 to 64.                                                                                       |
| `brandName`       | string or null | No       |                                                                                                       |
| `idempotency_key` | string         | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200. |
| `max_credits`     | number         | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                         |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `status`          | enum           | One of: `pending`, `ready`.                                                              |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_video_analysis_start",
    "arguments": {
      "adArchiveId": "example",
      "max_credits": 3
    }
  }
}
```

## `ad_spy_video_similar_scripts_start`

**Generate similar video-ad scripts**

Queues three product-specific scripts from a snapshotted video transcript and returns a submission id to poll.

Use this when the user wants new video ad scripts modeled on an Ad Spy video ad for one of their saved products. Take adArchiveId from an Ad Spy search or saved ad result and productId from the product list; never invent either. The ad must be transcribed first: if it has no transcript, transcribe it and wait until its transcript is ready. Each call writes three scripts. Then poll the video status tool with kind similar\_scripts and the returned submissionId until it is ready or failed, and read the scripts from that result.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | About 1 credit                |
| Who can call it | Workspace owners and admins   |

### Input

| Field             | Type          | Required | Description                                                                                           |
| ----------------- | ------------- | -------- | ----------------------------------------------------------------------------------------------------- |
| `adArchiveId`     | string        | Yes      | Length 1 to 64.                                                                                       |
| `productId`       | string (uuid) | Yes      |                                                                                                       |
| `idempotency_key` | string        | No       | Client-chosen key identifying this write. Reuse it only when retrying the same call. Length 1 to 200. |
| `max_credits`     | number        | Yes      | The most credits this call may spend, with at most two decimals. Up to 10000.                         |

### Output

| Field             | Type           | Description                                                                              |
| ----------------- | -------------- | ---------------------------------------------------------------------------------------- |
| `submissionId`    | string (uuid)  |                                                                                          |
| `credits_charged` | number         | Workspace credits charged by this call.                                                  |
| `credits_left`    | number or null | Workspace credits remaining after this call, or null when the balance could not be read. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_video_similar_scripts_start",
    "arguments": {
      "adArchiveId": "example",
      "productId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "max_credits": 1
    }
  }
}
```

## `ad_spy_board_update`

**Update or move an Ad Spy board**

Renames, recolors, or moves an Ad Spy board while preserving a maximum nesting depth of one. Agent callers pass the exact current board name as expectedName so a stale id/name pairing is refused.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field          | Type                  | Required | Description                                                   |
| -------------- | --------------------- | -------- | ------------------------------------------------------------- |
| `boardId`      | string (uuid)         | Yes      |                                                               |
| `name`         | string                | No       |                                                               |
| `color`        | enum                  | No       | One of: `blue`, `green`, `yellow`, `red`, `purple`, `orange`. |
| `parentId`     | string (uuid) or null | No       |                                                               |
| `expectedName` | string                | Yes      |                                                               |

### Output

| Field     | Type | Description |
| --------- | ---- | ----------- |
| `success` | true |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_update",
    "arguments": {
      "boardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "expectedName": "example"
    }
  }
}
```

## `ad_spy_board_delete`

**Delete an Ad Spy board**

Soft-deletes an Ad Spy board, its direct sub-boards, and their memberships. Agent callers pass the exact current board name as expectedName so a stale id/name pairing is refused.

When the user asks for this, call it directly: Sellify asks the user to confirm before anything is deleted. If it returns mcp\_confirmation\_required, show the user its question and retry with confirmation\_token only after they say yes.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field                | Type          | Required | Description                                                                                                              |
| -------------------- | ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------ |
| `boardId`            | string (uuid) | Yes      |                                                                                                                          |
| `expectedName`       | string        | Yes      |                                                                                                                          |
| `confirmation_token` | string        | No       | Only for retrying a call that returned mcp\_confirmation\_required: the exact token from that result. Never make one up. |

### Output

| Field             | Type                   | Description |
| ----------------- | ---------------------- | ----------- |
| `success`         | true                   |             |
| `deletedBoardIds` | array of string (uuid) |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_delete",
    "arguments": {
      "boardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "expectedName": "example"
    }
  }
}
```

## `ad_spy_board_remove_ad`

**Remove a saved ad from an Ad Spy board**

Removes a saved-ad membership from an Ad Spy board.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field          | Type          | Required | Description |
| -------------- | ------------- | -------- | ----------- |
| `boardId`      | string (uuid) | Yes      |             |
| `savedSpyAdId` | string (uuid) | Yes      |             |

### Output

| Field     | Type | Description |
| --------- | ---- | ----------- |
| `success` | true |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_remove_ad",
    "arguments": {
      "boardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "savedSpyAdId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  }
}
```

## `ad_spy_board_resolve_ads`

**Resolve a saved ad within an Ad Spy board**

Returns a bounded, tenant-scoped list of ads from one exact Ad Spy board and deterministic resolution status. Use the exact board id from listAdSpyBoards. For the oldest or newest ad, set sort; never put ordering words in query. With sort and no query, savedAds\[0] is the answer (not\_found means the board has no ads); an ambiguous resolution then only means the board has more ads, so do not ask the user to choose.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type          | Required | Description                                                                                                                                                                         |
| ----------------- | ------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `boardId`         | string (uuid) | Yes      | The exact id returned by listBoards or createBoard. Never use an Ecom generated-ad board id.                                                                                        |
| `query`           | string        | No       | Matches brand, headline or caption text, or an exact ad id. Never put ordering words like "oldest" or "newest" here; use sort instead. Length 1 to 120.                             |
| `sort`            | enum          | No       | Order by addedToBoardAt (when each ad was added to this board), not savedAt. Defaults to newest. Use oldest for the oldest or earliest ad on the board. One of: `newest`, `oldest`. |
| `limit`           | integer       | No       | Between 1 and 10. Defaults to `5`.                                                                                                                                                  |
| `response_format` | enum          | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.                                                                  |

### Output

| Field        | Type            | Description                                                                              |
| ------------ | --------------- | ---------------------------------------------------------------------------------------- |
| `board`      | object          |                                                                                          |
| `savedAds`   | array of object | Items up to 10.                                                                          |
| `resolution` | object          |                                                                                          |
| `notice`     | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_resolve_ads",
    "arguments": {
      "boardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  }
}
```

## `ad_spy_board_resolve`

**Resolve an Ad Spy board for Agent use**

Lists Ad Spy saved-ad boards in the current workspace. Use query to resolve a user-named Ad Spy board before creating one. These are distinct from Ecom generated-ad library folders.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type    | Required | Description                                                                                                                 |
| ----------------- | ------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
| `query`           | string  | No       | The exact board name from the user when resolving a named board. Include it instead of listing every board. Length 1 to 80. |
| `limit`           | integer | No       | Between 1 and 50. Defaults to `25`.                                                                                         |
| `response_format` | enum    | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`.          |

### Output

| Field        | Type            | Description                                                                              |
| ------------ | --------------- | ---------------------------------------------------------------------------------------- |
| `boards`     | array of object | Items up to 50.                                                                          |
| `resolution` | object          |                                                                                          |
| `notice`     | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_resolve",
    "arguments": {}
  }
}
```

## `ad_spy_board_ensure`

**Ensure an Ad Spy board exists for Agent use**

Creates a saved-ad board in Ad Spy, or a sub-board when parentId is passed. If an active board with the same name already exists in the same place, returns it as a successful no-op with created false. Never use this for generated Ecom ads.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field      | Type          | Required | Description                                                                 |
| ---------- | ------------- | -------- | --------------------------------------------------------------------------- |
| `name`     | string        | Yes      | Length 1 to 80.                                                             |
| `color`    | enum          | No       | One of: `blue`, `green`, `yellow`, `red`, `purple`, `orange`.               |
| `parentId` | string (uuid) | No       | To make a sub-board: the exact id of a top-level board from the board list. |

### Output

| Field       | Type          | Description                                                   |
| ----------- | ------------- | ------------------------------------------------------------- |
| `id`        | string (uuid) |                                                               |
| `name`      | string        | Length up to 80.                                              |
| `color`     | enum          | One of: `blue`, `green`, `yellow`, `red`, `purple`, `orange`. |
| `sortOrder` | integer       |                                                               |
| `createdAt` | string        |                                                               |
| `updatedAt` | string        |                                                               |
| `created`   | boolean       |                                                               |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_ensure",
    "arguments": {
      "name": "example"
    }
  }
}
```

## `ad_spy_board_save_ads`

**Save Ad Spy ads to a board**

Saves exact ads returned by Ad Spy research into the selected Ad Spy board. Pass exact adArchiveIds from search results and the exact board id from listBoards or createBoard. Existing saved ads and memberships are successful no-ops.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field          | Type            | Required | Description                                                                                                                                                      |
| -------------- | --------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `boardId`      | string (uuid)   | Yes      | The exact id returned by listBoards or createBoard. Never use an Ecom generated-ad board id.                                                                     |
| `adArchiveIds` | array of string | Yes      | Items 1 to 10.                                                                                                                                                   |
| `expectedName` | string          | No       | The current name of the board. When present, the save is refused if the board id no longer has this name, ignoring case and surrounding spaces. Length 1 to 120. |

### Output

| Field                 | Type            | Description       |
| --------------------- | --------------- | ----------------- |
| `board`               | object          |                   |
| `requestedCount`      | integer         | Between 1 and 10. |
| `addedToBoardCount`   | integer         |                   |
| `alreadyInBoardCount` | integer         |                   |
| `failedCount`         | integer         |                   |
| `results`             | array of object | Items up to 10.   |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_save_ads",
    "arguments": {
      "boardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "adArchiveIds": [
        "example"
      ]
    }
  }
}
```

## `ad_spy_saved_search_manage`

**Save or delete an Ad Spy search**

Saves a named Ad Spy search (a keyword or one brand page ID, plus country, status and sort) so it can be run again later, or deletes one the current user saved. Free. Saving does not run the search. A saved search is not a filter preset.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |

### Input

| Field        | Type            | Required                  | Description                                                                                                                                                                  |
| ------------ | --------------- | ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `action`     | enum            | Yes                       | create to save a search (pass name and query, or pageId and pageName), delete to remove one (pass the id from ad\_spy\_saved\_search\_list). One of: `create`, `delete`.     |
| `name`       | string          | When `action` is `create` | A short name the user will recognize, such as "Cold plunge US". Length 1 to 100.                                                                                             |
| `query`      | string          | No                        | For a keyword search: the keyword, product or advertiser name itself, without words like "ads", for example "cold plunge". Pass this or pageId, never both. Length 1 to 200. |
| `pageId`     | string          | No                        | Only for a search of one brand: its verified page ID from an Ad Spy brand search. Leave it out of a keyword search. Never invent it. Length 1 to 64.                         |
| `pageName`   | string          | No                        | Only with pageId: the brand name returned with it. Leave it out of a keyword search. Length 1 to 200.                                                                        |
| `country`    | "ALL" or string | No                        | Two-letter country code, or ALL. Omit to use the search default.                                                                                                             |
| `status`     | enum            | No                        | ACTIVE for ads still running, ALL for every ad. INACTIVE works only with pageId. Omit to use the search default. One of: `ALL`, `ACTIVE`, `INACTIVE`.                        |
| `sortBy`     | enum            | No                        | Omit unless the user asks for a sort order. One of: `total_impressions`, `relevancy_monthly_grouped`.                                                                        |
| `timeWindow` | enum            | No                        | Only with pageId: how far back to look. Leave it out of a keyword search, and omit it for all time. One of: `3m`, `6m`, `12m`, `all`.                                        |
| `id`         | string (uuid)   | When `action` is `delete` | The exact saved search id returned when the search was listed or saved. Never invent it.                                                                                     |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_saved_search_manage",
    "arguments": {
      "action": "create",
      "name": "example"
    }
  }
}
```

## `ad_spy_board_reorder`

**Reorder root Ad Spy boards**

Reorders all active root Ad Spy boards using an exact current permutation.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field             | Type                   | Required | Description     |
| ----------------- | ---------------------- | -------- | --------------- |
| `orderedBoardIds` | array of string (uuid) | Yes      | Items 1 to 200. |

### Output

| Field     | Type | Description |
| --------- | ---- | ----------- |
| `success` | true |             |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_reorder",
    "arguments": {
      "orderedBoardIds": [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      ]
    }
  }
}
```

## `ad_spy_board_set_sharing`

**Share or stop sharing an Ad Spy board**

Turns public sharing on or off for an Ad Spy board. With shared true it returns the board's share link, which anyone can open to view its saved ads without signing in; an already shared board keeps its link. With shared false the existing link stops working. Pass the exact current board name as expectedName so a stale id and name pairing is refused.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field          | Type          | Required | Description                                                      |
| -------------- | ------------- | -------- | ---------------------------------------------------------------- |
| `shared`       | boolean       | Yes      | true to turn on sharing and get the link, false to stop sharing. |
| `boardId`      | string (uuid) | Yes      |                                                                  |
| `expectedName` | string        | Yes      |                                                                  |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_board_set_sharing",
    "arguments": {
      "shared": true,
      "boardId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "expectedName": "example"
    }
  }
}
```

## `ad_spy_followed_brands_digest_get`

**Get the followed-brands digest setting**

Reports how often the current user gets the email digest of new ads from brands this workspace follows: off, daily or weekly. The digest is sent by email to the current user only. followedBrandCount 0 means the digest has nothing to report until the workspace follows a brand.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

This tool takes no input.

### Output

| Field                | Type    | Description                       |
| -------------------- | ------- | --------------------------------- |
| `frequency`          | enum    | One of: `off`, `daily`, `weekly`. |
| `channel`            | "email" |                                   |
| `followedBrandCount` | integer |                                   |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_followed_brands_digest_get",
    "arguments": {}
  }
}
```

## `ad_spy_followed_brands_digest_set`

**Set the followed-brands digest**

Turns the email digest of new ads from followed brands on or off for the current user: daily, weekly, or off. Turning it on starts from ads found after that moment; switching between daily and weekly continues from the last digest sent, so no ad is skipped or sent twice. The digest goes to the current user by email only; Slack delivery is not available. The digest only covers brands this workspace follows.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Writes data                   |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field       | Type | Required | Description                       |
| ----------- | ---- | -------- | --------------------------------- |
| `frequency` | enum | Yes      | One of: `off`, `daily`, `weekly`. |

### Output

| Field                | Type    | Description                       |
| -------------------- | ------- | --------------------------------- |
| `frequency`          | enum    | One of: `off`, `daily`, `weekly`. |
| `channel`            | "email" |                                   |
| `followedBrandCount` | integer |                                   |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_followed_brands_digest_set",
    "arguments": {
      "frequency": "off"
    }
  }
}
```

## `ad_spy_filter_preset_list`

**List Ad Spy filter presets**

Lists the saved Ad Spy filter presets in this workspace in one call, newest 50 first, and sets truncated when there are more; pass pageType only to narrow to one page type. Each preset has the exact id needed to update, delete or make it the default, or to run it as presetId on an Ad Spy ads search. canEdit says whether the current user may update or delete it; any member can make a preset the default.

| Property       | Value                       |
| -------------- | --------------------------- |
| Access         | Read-only                   |
| Scope          | Ad Spy: read (`adspy:read`) |
| Credits        | Free                        |
| Safe to repeat | Yes                         |

### Input

| Field             | Type | Required | Description                                                                                                        |
| ----------------- | ---- | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `pageType`        | enum | No       | One of: `discovery`, `following`.                                                                                  |
| `response_format` | enum | No       | Pass "detailed" when you need full text or nested details. One of: `concise`, `detailed`. Defaults to `"concise"`. |

### Output

| Field       | Type            | Description                                                                              |
| ----------- | --------------- | ---------------------------------------------------------------------------------------- |
| `presets`   | array of object | Items up to 50.                                                                          |
| `truncated` | boolean         |                                                                                          |
| `notice`    | string          | Present when results were left out to keep the response small. Says how to see the rest. |

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_filter_preset_list",
    "arguments": {}
  }
}
```

## `ad_spy_filter_preset_manage`

**Create, update, delete, or set the default Ad Spy filter preset**

Manages the named filter presets of the Ad Spy page (shown in the app as Saved searches) for discovery or followed-brand ads. create saves a new preset; names must be unique within the page type. update changes only the fields passed on a preset the current user created. delete removes a preset the current user created. set\_default makes one preset the default for a page type, or clears the default when id is null. Pass a preset id as presetId to an Ad Spy ads search to run it.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |

### Input

| Field       | Type                  | Required                                               | Description                                                                                                                                                                                                                                                                                            |
| ----------- | --------------------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `action`    | enum                  | Yes                                                    | create to add a preset (pass name, pageType and config), update to change one (pass id and the fields to change), delete to remove one (pass id), set\_default to choose the default for a page type (pass pageType and id, or null to clear it). One of: `create`, `update`, `delete`, `set_default`. |
| `name`      | string                | When `action` is `create`                              | Length 1 to 100.                                                                                                                                                                                                                                                                                       |
| `pageType`  | enum                  | When `action` is `create` or `set_default`             | One of: `discovery`, `following`.                                                                                                                                                                                                                                                                      |
| `config`    | object                | When `action` is `create`                              |                                                                                                                                                                                                                                                                                                        |
| `isDefault` | boolean               | No                                                     |                                                                                                                                                                                                                                                                                                        |
| `id`        | string (uuid) or null | When `action` is `update` or `delete` or `set_default` |                                                                                                                                                                                                                                                                                                        |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_filter_preset_manage",
    "arguments": {
      "action": "create",
      "name": "example",
      "pageType": "discovery",
      "config": {
        "country": "example",
        "activeOnly": true,
        "hideAiGenerated": true,
        "minVariations": 1,
        "minBrandFollowers": 0,
        "minCopyLength": 1,
        "startedAfter": "example",
        "limitPerBrand": 1,
        "adFormats": [
          "IMAGE"
        ],
        "channels": [
          "example"
        ],
        "ctaTypes": [
          "example"
        ]
      }
    }
  }
}
```

## `ad_spy_saved_ad_set_sharing`

**Share or stop sharing a saved Ad Spy ad**

Turns public sharing on or off for one saved Ad Spy ad. With shared true it returns a share link anyone can open without signing in. With shared false the existing link stops working.

| Property        | Value                         |
| --------------- | ----------------------------- |
| Access          | Changes or deletes data       |
| Scope           | Ad Spy: write (`adspy:write`) |
| Credits         | Free                          |
| Who can call it | Workspace owners and admins   |
| Safe to repeat  | Yes                           |

### Input

| Field          | Type          | Required | Description                                                                                              |
| -------------- | ------------- | -------- | -------------------------------------------------------------------------------------------------------- |
| `shared`       | boolean       | Yes      | true to turn on sharing and get the link, false to stop sharing.                                         |
| `savedSpyAdId` | string (uuid) | Yes      | The id of a saved ad in this workspace, as listed among its saved ads. Never infer or invent this value. |

### Output

The result is text for the model to read.

### Example

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ad_spy_saved_ad_set_sharing",
    "arguments": {
      "shared": true,
      "savedSpyAdId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    }
  }
}
```

## Related

[Tool reference overview](https://sellify.ai/docs/developers/mcp-tools) · [Authentication](https://sellify.ai/docs/developers/authentication) · [Credits and limits](https://sellify.ai/docs/developers/credits-and-limits)
