Find Competitor Page
sonar_ad_spy_scanWRITE tool — search a competitor's Facebook page (channel "meta") or TikTok account (channel "tiktok") and return ranked candidates; an unambiguous top match is flagged best_match. It never links: show the candidates and let the user confirm, then call sonar_ad_spy_link (the page mapping is shared by every Sonar account, so a wrong link misleads everyone). A Meta scan that found nothing in the last 24h replays for free (cooldown: true). Spends one of the account's daily Ad Spy lookups (today's usage comes back in allowance from sonar_ad_spy_competitors); re-opening the same page, account or ad the same day is free. Past the allowance a refresh returns the cached copy with meta.stale and a meta.note to relay. Requires an Indie or Agency plan (a trial counts) and an authorized Sonar account or an API key with the write scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"competitor_id": "<competitor_id>"
},
"name": "sonar_ad_spy_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search this brand name or @handle instead of the app's name. | |
| channel | No | "meta" (default) finds the Facebook page; "tiktok" the TikTok account. | |
| competitor_id | Yes | Sonar app id of a tracked competitor (an `app_id` from sonar_ad_spy_competitors), or its store id. |