Kaminari Ad

v0.28.5
io.github.kaminari-ad/mcp Checked 4 days ago Published 2 days ago

Real-device ad verification: malvertising and cloaking scans, AI policies, alerts, webhooks.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_account Get Account

Get the organization owning the current API key (id, name, owner_id, is_active, created_at). Use this to confirm authentication and capture the org context for follow-up tool calls.

update_org Update Organization

Update the caller's organization display name.

ParameterTypeDescription
namestringNew organization display name.

list_org_users List Organization Members

List every member of the caller's organization with their role, ownership flag, and join date.

invite_user Invite User

Send an invitation email so a new person can join the caller's organization with a chosen role. Returns the pending member record.

ParameterTypeDescription
email *stringEmail of the person to invite. They get a signup link.
role_id *stringUUID of the role to assign on accept. Get UUIDs from `list_org_roles`.
namestringOptional display name for the invitee.
timezonestringOptional IANA timezone for the invitee, e.g. 'Europe/Berlin'. Default: UTC.

update_user_role Update User Role

Change an organization member's role. The owner role can only be transferred via `transfer_ownership`. Returns `{updated: true}` on success; refetch with `list_org_users` if you need the new role echoed.

ParameterTypeDescription
role_id *stringUUID of the new role (see `list_org_roles`).
user_id *stringUUID of the member to update.

remove_user Remove User

Revoke a member's access to the organization. The user is signed out and any active API keys they created remain unless revoked separately. CANNOT remove the owner — use `transfer_ownership` first.

ParameterTypeDescription
user_id *stringUUID of the member to remove.

transfer_ownership Transfer Organization Ownership

Hand the organization owner role to another existing member. ONE-WAY: the previous owner becomes a regular member afterwards. Require explicit confirmation from the user.

ParameterTypeDescription
user_id *stringUUID of the existing member to become the new owner.

list_org_roles List Organization Roles

List the roles defined for the organization — built-in (owner, admin, member) plus any custom roles, with each role's permission set.

create_custom_role Create Custom Role

Create a custom organization role with the supplied permission set. Returns the persisted role; assign it to users via `update_user_role`.

ParameterTypeDescription
name *stringDisplay name for the role.
permissions *arrayPermission slugs the role grants (e.g. 'scans.read', 'campaigns.write'). Use `list_org_roles` to see permissions on existing system roles.

list_account_labels List Account Labels

List the organization's custom label definitions (key, display_name, position, auto_extract, show_in_public_report). Labels enrich scans and can be used as filters in `list_scans`.

update_account_labels Update Account Labels

REPLACE the organization's full set of custom label definitions, including each label's auto_extract and public-report visibility. The API replaces the list (no merge); read the current list with `list_account_labels` first. Returns the persisted list with allocated positions.

ParameterTypeDescription
labels *arrayREPLACEMENT list of all labels — pass every label you want to keep. Order in the array becomes `position`. Empty array removes all labels.

list_api_keys List Api Keys

List the organization's API keys: id, key prefix (first 8 chars of the secret), display name, expiry, created_at. The full secret is NEVER returned by this endpoint — only the prefix.

create_api_key Create API Key

Mint a new API key for the caller's organization. The full secret is returned in `full_key` THIS ONE TIME ONLY — show it to the user and instruct them to store it; the server keeps only a hash and cannot reveal it again.

ParameterTypeDescription
name *stringHuman-readable label (e.g. `ci-pipeline`, `claude-mcp`).
expires_atOptional ISO-8601 expiry timestamp. Omit or send `null` for a non-expiring key (operator can revoke any time).

revoke_api_key Revoke API Key

Permanently invalidate an API key. Any subsequent request using it returns 401. Cannot be undone — the user would have to `create_api_key` again.

ParameterTypeDescription
key_id *stringUUID of the key to revoke (from `list_api_keys`).

list_geos List Geos

List every country the Kaminari Ad platform can scan ads from, with ISO 3166-1 alpha-2 code, name, continent, and emoji.

get_proxy_targeting Get Proxy Targeting

List the proxy regions, cities, and ISPs accepted for a country. Call this before setting proxy targeting on create_scan, create_bulk_scans, create_campaign, or update_campaign — the accepted values come from the upstream network provider and cannot be listed in those tools' schemas, so a guess is a 422. Anything listed here is accepted. Values are ordered by pool size, largest first; prefer values near the front. Two traps: residential and mobile are separate pools, so pass the proxy_type the scan will use; and without a region the cities are the whole country's, so if you target a region,…

ParameterTypeDescription
country_code *stringISO 3166-1 alpha-2 country code, e.g. 'US'. Case-insensitive.
proxy_typestringWhich network to describe. Defaults to residential. Pass 'mobile' when the scan will use mobile: the two are separate pools with different catalogues, so a residential ISP is normally rejected for a m…
regionstringNarrow the returned cities to one region. Pass a value from this tool's own 'regions' array. Omit it for the country-wide city list.

list_emulators List Emulators

List every device/OS emulator profile available for scans (id, display name, category, browser). For `create_scan`, use the `id` as `emulator_id`. For `create_campaign` / `update_campaign`, use the `category` in `emulator_categories` or the `id` in `emulator_specific_ids`.

get_scan Get Scan

Get full detail for one scan by UUID: status, offer URL, absolute screenshot URL, report_url + public_report_url deep-links, timing, labels, and the parent campaign if any. VAST video scans also carry `vast_tag`, `creative_kind` (`banner` or `video` today; treat it as an open string), and a `video` block (duration, media-file URL, the creative's `click_through` destination, VAST version, ad system, VPAID flag, wrapper depth). Repeats and retries: `repeat_index` / `repeat_total` place this scan inside its repeat group (0-based, so 2 of 5 reads as repeat_index 1), a non-null `repeat_session_id`…

ParameterTypeDescription
scan_id *stringThe scan's UUID (returned by `list_scans` or `create_scan`).

list_scan_children List Scan Children

List the discovered-ad child scans of a publisher ad-discovery scan — one per detected ad block on the page. Each child brief carries ad_kind (banner|pop), slot_index, and the ad's attribution split in two: network is the ad network's NAME and is empty when the ad server is unrecognised, network_host is the domain observed — so read network first and fall back to network_host. Both are empty when the ad came from infrastructure that is not an ad network (tag manager, analytics) or from the publisher's own creative CDN; a pop carries a network but no host, because pop networks rotate their…

ParameterTypeDescription
scan_id *stringThe publisher scan's UUID (an ad-discovery scan created with ad_discovery=true).
limitintegerPage size (1-200). Default 50.
pageinteger1-indexed page number.

list_scans List Scans

List scans for the caller's organization with optional filters (status, country, URL substring, date range, run/campaign/group, tag, AI/IAB/brand category, dynamic labels). Returns a paginated envelope; each brief carries `is_ad_tag` and `is_vast` flags, an absolute screenshot URL plus report_url (auth dashboard) and public_report_url (shareable) deep-links — link users with those, never hand-build URLs. Repeated scans look like near-duplicate rows: `repeat_index` / `repeat_total` place each one inside its repeat group (0-based) and a non-null `repeat_session_id` means the group ran in `shar…

ParameterTypeDescription
ai_categorystringFilter by the freeform LLM-generated category prefix on the scan (slash-separated tier path, e.g. 'Gambling/Online Casinos').
brandstringFilter by detected advertiser brand (case-insensitive).
campaign_idstringFilter to scans of one campaign.
country_codestringComma-separated ISO 3166-1 alpha-2 country codes, e.g. US,DE,JP.
date_fromstringISO date (YYYY-MM-DD), inclusive lower bound on scan creation.
date_tostringISO date (YYYY-MM-DD), inclusive upper bound on scan creation.
group_idstringFilter to scans of one campaign group.
iab_categorystringFilter by legacy IAB V2.2 category (only present on pre-P3 scans).
iab_v3_categorystringFilter by canonical IAB Content Taxonomy V3 prefix (slash-separated tier path).
labelsobjectDynamic label filters as a flat object: { brand_safety: 'high', vertical: 'gambling' }. Keys are snake_case and must exist in the org's label catalogue. Each key becomes a `label_<key>=<value>` query…
limitintegerPage size (1-200). Default 50.
pageinteger1-indexed page number.
parent_scan_idstringFilter to the ad-discovery child scans of one parent scan. Setting this lifts the default 7-day window, so old children stay reachable. `list_scan_children` is the paginated equivalent.
run_idstringFilter to scans of one run.
scan_idstringComma-separated scan UUIDs to fetch a specific set.
statusstringComma-separated statuses to filter by. Lifecycle values: pending, running, crawled, checking, checking_async, rechecking, completed, partial, failed, cancelled.
tagstringComma-separated tag slugs to filter by.
tag_matchstringHow multiple `tag` slugs combine: `any` (default) returns scans carrying at least one, `all` requires every one of them.
timezonestringIANA timezone (e.g. 'Europe/Berlin') applied to date_from / date_to. Defaults to UTC.
urlstringSubstring match against the scanned URL.

cancel_scan Cancel Scan

Cancel one pending scan by UUID. Already-running or completed scans are no-ops. Cancellation refunds the scan credit.

ParameterTypeDescription
scan_id *stringUUID of the pending scan to cancel.

create_bulk_scans Create Bulk Scans

Queue one new scan per country in a single call (e.g. test the same URL, ad-tag, or VAST video tag from US + DE + JP). Every other field applies to each country, `campaign_id` included. COSTS N CREDITS where N = number of countries times `repeat_count`. Returns one entry per country; each entry's `repeat_scan_ids` lists that country's extra repeats.

ParameterTypeDescription
country_codes *arrayList of ISO 3166-1 alpha-2 country codes, any case; one scan per country is created.
emulator_id *stringDevice/OS profile slug; same for every country in the batch.
ad_discoverybooleanPublisher ad discovery: detect ad blocks on the page and spawn one child scan per detected ad (banner/video/pop). Only valid with `url`. Each child is a separate billed scan; list them with `list_scan…
ad_formatsarrayWhich ad formats an ad-discovery run checks: any of `banner`, `video` and `pop` (`pop` covers pop-unders and tab-unders), each at most once. A format left out is neither captured nor billed — `['pop…
ad_tagstringRaw ad-tag HTML/JS OR an http(s) URL of a page with the creative already rendered. Provide exactly one of `url`, `ad_tag`, or `vast_tag`.
campaign_idstringOptional campaign UUID to attribute the scan to. Required for alerts: policies are attached to campaigns, so a scan without a campaign is checked and tagged but never raises an alert.
ignore_first_n_domainsintegerHow many leading domains of the redirect chain to exclude from detection and tagging (0-5). Use it when the check enters through the caller's OWN click or tracking domains: without it a reputation hit…
labelsobjectArbitrary metadata copied onto every created scan.
max_discovered_adsintegerHow many ad blocks to look for on each publisher page before stopping (1-25). Every ad found becomes its own scan with its own report and is BILLED AS A SEPARATE CHECK, so this multiplies the cost: a…
proxyobjectOptional proxy geo targeting for the crawl. Omit to use the org default. Call `get_proxy_targeting` for the country first: the accepted values come from the upstream network provider and cannot be lis…
referrerstringOptional http(s) page URL the check is performed from. With `ad_tag` or `vast_tag` this is the publisher page the tag is embedded in — NOT the creative and NOT its landing page; the browser commits…
repeat_countintegerHow many times to repeat every scan this call already produces (1-20). It is a multiplier on top of the tool's own fan-out — see that tool's description for the exact formula — and each resulting…
repeat_modestringHow the repeats of one combination relate to each other. 'isolated' gives every repeat a fresh browser and a new IP, so the repeats are statistically independent. 'shared' runs all repeats of one comb…
retry_max_attemptsintegerExtra crawl attempts when a scan fails for a technical reason — dead proxy, navigation timeout, browser crash (0-5). Permanent failures are never retried. The same scan is reused and only a complete…
run_idstringOptional run UUID inside the campaign. Omit it to join the campaign's API run for the day.
urlstringDirect URL. Provide exactly one of `url`, `ad_tag`, or `vast_tag`.
vast_tagstringVAST video ad tag: an http(s) URL of a VAST endpoint OR raw VAST XML. Provide exactly one of `url`, `ad_tag`, or `vast_tag`.

create_scan Create Scan

Queue a single new scan for a URL, ad-tag, or VAST video tag against one country. Takes one target and one country — there is no multi-URL form; call it once per URL. COSTS CREDITS and bills the caller's organization: this call creates exactly `repeat_count` scans (default 1) and bills every one of them. Returns the newly-created scan record; when `repeat_count` > 1 the response's `repeat_scan_ids` lists the sibling scans this call also created.

ParameterTypeDescription
country_code *stringISO 3166-1 alpha-2 country code, e.g. US, DE, JP. Determines proxy geo.
emulator_id *stringDevice/OS profile slug; use `list_emulators` to discover valid values.
ad_discoverybooleanPublisher ad discovery: detect ad blocks on the page and spawn one child scan per detected ad (banner/video/pop). Only valid with `url`. Each child is a separate billed scan; list them with `list_scan…
ad_formatsarrayWhich ad formats an ad-discovery run checks: any of `banner`, `video` and `pop` (`pop` covers pop-unders and tab-unders), each at most once. A format left out is neither captured nor billed — `['pop…
ad_tagstringRaw HTML/JS ad tag (script, iframe, image) OR an http(s) URL of a page with the creative already rendered. Provide exactly one of `url`, `ad_tag`, or `vast_tag`.
campaign_idstringOptional campaign UUID to attribute the scan to. Required for alerts: policies are attached to campaigns, so a scan without a campaign is checked and tagged but never raises an alert.
ignore_first_n_domainsintegerHow many leading domains of the redirect chain to exclude from detection and tagging (0-5). Use it when the check enters through the caller's OWN click or tracking domains: without it a reputation hit…
labelsobjectArbitrary string -> string metadata attached to the scan.
max_discovered_adsintegerHow many ad blocks to look for on each publisher page before stopping (1-25). Every ad found becomes its own scan with its own report and is BILLED AS A SEPARATE CHECK, so this multiplies the cost: a…
proxyobjectOptional proxy geo targeting for the crawl. Omit to use the org default. Call `get_proxy_targeting` for the country first: the accepted values come from the upstream network provider and cannot be lis…
referrerstringOptional http(s) page URL the check is performed from. With `ad_tag` or `vast_tag` this is the publisher page the tag is embedded in — NOT the creative and NOT its landing page; the browser commits…
repeat_countintegerHow many times to repeat every scan this call already produces (1-20). It is a multiplier on top of the tool's own fan-out — see that tool's description for the exact formula — and each resulting…
repeat_modestringHow the repeats of one combination relate to each other. 'isolated' gives every repeat a fresh browser and a new IP, so the repeats are statistically independent. 'shared' runs all repeats of one comb…
retry_max_attemptsintegerExtra crawl attempts when a scan fails for a technical reason — dead proxy, navigation timeout, browser crash (0-5). Permanent failures are never retried. The same scan is reused and only a complete…
run_idstringOptional run UUID inside the campaign. Omit it to join the campaign's API run for the day.
urlstringDirect URL of the ad / landing page. Provide exactly one of `url`, `ad_tag`, or `vast_tag`.
vast_tagstringVAST video ad tag: an http(s) URL of a VAST endpoint OR raw VAST XML (a document containing a <VAST> element). Fetched and played in a real browser. Provide exactly one of `url`, `ad_tag`, or `vast_ta…

recheck_scans Recheck Scans

Re-run the checker pipeline against recent COMPLETED scans (e.g. after updating policies or custom rules). Returns the number of scans queued for re-evaluation. No new crawl fee — only the checker cost.

ParameterTypeDescription
scope_type *stringSelection mode. `last_n` = most recent N scans; `hours` = scans from the past N hours.
scope_value *integerNumber of scans (`last_n`, max 5000) OR number of hours (`hours`, max 72). API enforces tighter caps per mode.

get_scan_screenshot Get Scan Screenshot

Fetch the primary screenshot for a scan as an inline image (base64-encoded WebP — the API stores and serves every screenshot as WebP, so the client must be able to decode it). Pass `width` to request a resized version (50-2000 px). Returns one MCP image content block.

ParameterTypeDescription
scan_id *stringScan UUID.
widthintegerOptional resize width in pixels. The API resizes server-side to keep the image small for the agent's context window. It also top-crops a resized page screenshot whose height exceeds 2.5x its width, so…

get_scan_creative_screenshot Get Scan Creative Screenshot

Fetch the creative screenshot for an ad-tag scan as an inline image (base64-encoded WebP — the API stores and serves every screenshot as WebP, so the client must be able to decode it). Returns 404 if the scan is not an ad-tag scan or has no creative captured yet.

ParameterTypeDescription
scan_id *stringScan UUID — must be an ad-tag scan (is_ad_tag=true).
widthintegerOptional resize width in pixels.

get_scan_landing_screenshot Get Scan Landing Screenshot

Fetch the screenshot of one landing tab on an ad-tag scan as an inline image (base64-encoded WebP — the API stores and serves every screenshot as WebP, so the client must be able to decode it). Use `get_scan` first to discover available `landings[*].ord` values.

ParameterTypeDescription
landing_ord *integer0-indexed landing slot (see `get_scan(...).landings[*].ord`).
scan_id *stringScan UUID (ad-tag scan).
widthintegerOptional resize width in pixels. The API top-crops a resized landing screenshot whose height exceeds 2.5x its width, so a long landing page comes back as its top region only — never conclude that so…

get_scan_creative_html Get Scan Creative HTML

Fetch the generated creative markup for an ad-tag scan as text — the HTML the ad tag produced, with the scripts, iframes and click-through URLs it embedded. Use it to explain WHY a creative was tagged when a screenshot cannot show it (obfuscated redirectors, hidden trackers, injected handlers). Only ad-tag scans have this artifact; a URL or VAST scan returns not-found. The markup is returned inert as text and is never executed. Markup over 256 KiB is refused — open the report URL from `get_scan` for those.

ParameterTypeDescription
scan_id *stringScan UUID.

get_scan_creative_video Get Scan Creative Video

Fetch the MP4 MediaFile a VAST scan downloaded, as one inline resource block. Only VAST scans have it; others return not-found. Prefer `get_scan_creative_screenshot` for a still frame and `get_scan_vast_xml` for the declared metadata — both are far cheaper. Reach for the video itself only when the moving image is the evidence. Files over 8 MiB are refused rather than inlined; fall back to `get_scan_creative_screenshot` or the report URL from `get_scan` for those.

ParameterTypeDescription
scan_id *stringScan UUID.

get_scan_vast_xml Get Scan VAST XML

Fetch the VAST document for a VAST scan as text, with wrappers already resolved so the whole chain is visible in one payload. Use it to inspect the tracking pixels, verification vendors, companion ads and click-through targets a video ad declared — the parsed summary on `get_scan` (`video` block) covers duration, media file and ad system, but not the full element tree. Only VAST scans have this artifact; others return not-found. Documents over 256 KiB are refused.

ParameterTypeDescription
scan_id *stringScan UUID.

list_scan_resources List Scan Resources

List the sub-resources a scan captured on one surface — URL, type, content type, size, and `skipped` when the body was not kept — so you can pick one to read with `get_scan_resource_body` by its `index`. Use it to find a network's pop script, a redirector or a kit stage the screenshots cannot show. The contents are the scripts, fetch/XHR responses and iframe documents the crawler kept for that surface — never images, video, fonts or stylesheets — each up to the per-resource limit, within a per-scan total. A resource that was not kept still has a row, with `skipped` saying why: `too_lar…

ParameterTypeDescription
scan_id *stringScan UUID.
surface *stringWhose contents: `page` — the scanned page (for a discovered ad, its landing); `creative` — an ad-tag or discovered-ad creative; `landing` — one landing tab of an ad-tag scan, chosen by `landing_…
landing_ordintegerRequired with `surface: 'landing'`: the tab's `ord` from `get_scan` `landings`.
limitintegerPage size (1-200). Default 50.
pageinteger1-indexed page number.
resource_typestringOnly this kind of resource; `document` is a child frame.
url_containsstringOnly resources whose URL contains this text (case-insensitive).

get_scan_resource_body Get Scan Resource Body

Read the contents of one sub-resource a scan captured, by its `index` from `list_scan_resources`, a chunk at a time: `total_length` is the full length in characters and `next_offset` is where the next chunk starts (`null` once you have it all). A row with `skipped` has no body. The contents are the scripts, fetch/XHR responses and iframe documents the crawler kept for that surface — never images, video, fonts or stylesheets — each up to the per-resource limit, within a per-scan total. A resource that was not kept still has a row, with `skipped` saying why: `too_large`, `unavailable` (the b…

ParameterTypeDescription
index *integerThe resource's `index` from `list_scan_resources` for the same surface.
scan_id *stringScan UUID.
surface *stringWhose contents: `page` — the scanned page (for a discovered ad, its landing); `creative` — an ad-tag or discovered-ad creative; `landing` — one landing tab of an ad-tag scan, chosen by `landing_…
landing_ordintegerRequired with `surface: 'landing'`: the tab's `ord` from `get_scan` `landings`.
lengthintegerCharacters to return (1-100000). Default 50000.
offsetintegerFirst character to return; pass the previous call's `next_offset` to continue.

get_campaign Get Campaign

Get one campaign by UUID: name, type (url|ad_tag|vast|ad_discovery), target URL / ad-tag / VAST tag (vast_tag), countries, emulator selection, proxy targeting, schedule status, archive status, parent group. Also echoes the repeat / retry settings — `repeat_count`, `repeat_mode`, `retry_max_attempts` — so this is how you confirm what `create_campaign` or `update_campaign` actually saved, and how many scans a run will produce (countries x device profiles x `repeat_count`). `ad_discovery` campaigns store the publisher page in the URL field.

ParameterTypeDescription
campaign_id *stringCampaign UUID.

list_campaigns List Campaigns

List campaigns for the caller's organization, optionally filtered by group, archived flag, name substring, or creation / last-run date range. Paginated. Each row carries the same fields as `get_campaign`, including the repeat / retry settings (`repeat_count`, `repeat_mode`, `retry_max_attempts`) — use them to spot the campaigns that multiply their per-run scan count.

ParameterTypeDescription
archivedbooleanWhen omitted, the API returns active campaigns only. Pass `true` to see archived campaigns, `false` for active-only (explicit).
created_fromstringISO date (YYYY-MM-DD), inclusive lower bound on the creation day.
created_tostringISO date (YYYY-MM-DD), inclusive upper bound on the creation day.
group_idstringOptional campaign-group UUID to filter by.
last_run_fromstringISO date (YYYY-MM-DD), inclusive lower bound on the most recent run. Setting either last-run bound excludes anything that has never run.
last_run_tostringISO date (YYYY-MM-DD), inclusive upper bound on the most recent run.
limitintegerPage size (1-200).
pageinteger1-indexed page number.
qstringSubstring search against campaign name (case-insensitive).
timezonestringIANA timezone (e.g. 'Europe/Berlin') the date bounds are read in. Defaults to UTC.

archive_campaign Archive Campaign

Soft-delete (archive) a campaign. Removes it from default lists and stops the scheduler; previously-collected scans are preserved.

ParameterTypeDescription
campaign_id *stringCampaign UUID to archive.

unarchive_campaign Unarchive Campaign

Restore an archived campaign. Inverse of `archive_campaign`. The campaign re-appears in default lists; if `schedule_enabled` was true, the scheduler resumes producing runs.

ParameterTypeDescription
campaign_id *stringCampaign UUID.

cancel_campaign Cancel Campaign

Cancel every pending scan across all unfinished runs of a campaign. Running scans complete normally; pending scans are marked cancelled and credits refunded. Returns count of cancelled scans.

ParameterTypeDescription
campaign_id *stringCampaign UUID.

run_campaign Run Campaign Now

Trigger an immediate, ad-hoc run of a campaign. Costs N credits where N = number of countries × number of emulators in the campaign config. Returns the new run with progress counters (total / completed / failed / partial / cancelled); track further progress via `get_run`.

ParameterTypeDescription
campaign_id *stringCampaign UUID to run now.

create_campaign Create Campaign

Create a recurring scan campaign (template). The schedule produces N scans per run where N = number of countries times number of device profiles times `repeat_count`. Scans cost credits when they run, not when the campaign is created, so a high `repeat_count` multiplies the bill on every run. The returned campaign echoes `repeat_count`, `repeat_mode`, and `retry_max_attempts`, so read it back to confirm what the campaign will do.

update_campaign Update Campaign

Update one or more fields of a campaign. Fields not supplied are left unchanged. `policy_set_id` accepts null to clear the binding, `referrer` accepts null to clear the publisher page scans are checked from, `max_discovered_ads` accepts null to go back to the platform ad cap, and `ad_formats` accepts null to go back to checking every ad format. `ignore_first_n_domains` is the exception: it is not nullable, so pass 0 to go back to skipping nothing. `notifications` is not merged either: when supplied it replaces the campaign's whole alert routing.

list_campaign_runs List Campaign Runs

List every run (scheduled execution) of one campaign, paginated, with per-run counters.

ParameterTypeDescription
campaign_id *stringCampaign UUID.
limitintegerPage size.
pageinteger1-indexed page.

list_campaigns_picker List Campaigns (Picker)

Slim per-row campaign list for selection UIs — id, name, group_id, is_archived. Cheaper than `list_campaigns` for orgs with thousands of campaigns. Use `get_campaign(id)` after a selection to fetch full details.

ParameterTypeDescription
archivedbooleanPass true to include archived campaigns. Defaults to active-only.
group_idstringFilter to one campaign group.
limitintegerMaximum rows to return (default per API, typically 200).
qstringSubstring search against campaign name (case-insensitive).

get_run Get Run

Get one run by UUID with totals (queued, completed, failed, partial, cancelled), parent campaign, label, source.

ParameterTypeDescription
run_id *stringRun UUID.

list_run_scans List Run Scans

List the tile-scan items produced by one run (status, country, offer URL, absolute screenshot URL, report_url + public_report_url deep-links, elapsed ms, error). Link users to a scan with the returned `report_url` (auth dashboard) or `public_report_url` (shareable) — never hand-build URLs. For full scan details (input URL, labels, classification, redirect chain) fetch a specific scan via `get_scan`.

ParameterTypeDescription
run_id *stringRun UUID.
limitintegerPage size.
pageinteger1-indexed page.

cancel_run Cancel Run

Cancel every pending scan within one run. Running scans complete; pending ones get refunded. Returns the count of cancelled scans.

ParameterTypeDescription
run_id *stringRun UUID.

get_campaign_group Get Campaign Group

Get one campaign group by UUID with default/archive/pause flags and campaign count.

ParameterTypeDescription
group_id *stringCampaign group UUID.

list_campaign_groups List Campaign Groups

List campaign groups — folders that group related campaigns — with per-group campaign count and `last_run_at`. Filter by archived flag, name substring, or creation / last-run date range; a group's last run is the newest run across its campaigns. Not paginated; the org-scoped list is typically small (a few dozen groups max).

ParameterTypeDescription
archivedbooleanIf true, list ONLY archived groups. Default: only active groups.
created_fromstringISO date (YYYY-MM-DD), inclusive lower bound on the creation day.
created_tostringISO date (YYYY-MM-DD), inclusive upper bound on the creation day.
last_run_fromstringISO date (YYYY-MM-DD), inclusive lower bound on the most recent run. Setting either last-run bound excludes anything that has never run.
last_run_tostringISO date (YYYY-MM-DD), inclusive upper bound on the most recent run.
qstringSubstring search against group name (case-insensitive).
timezonestringIANA timezone (e.g. 'Europe/Berlin') the date bounds are read in. Defaults to UTC.

create_campaign_group Create Campaign Group

Create a new campaign group (folder). Free operation, no scans queued.

ParameterTypeDescription
name *stringDisplay name (1-200 chars).

update_campaign_group Update Campaign Group

Rename a campaign group. To pause/resume its scheduler, use `pause_campaign_group_schedule` / `resume_campaign_group_schedule` instead.

ParameterTypeDescription
group_id *stringGroup UUID to update.
namestringNew display name.

run_campaign_group Run Campaign Group

Fire an immediate run of every active (non-archived, non-paused) campaign in the group. Returns aggregate stats: how many campaigns triggered, the per-campaign run UUIDs, and any per-campaign failures.

ParameterTypeDescription
group_id *stringCampaign group UUID.

cancel_campaign_group Cancel Campaign Group

Cancel every pending scan across every campaign in the group. Refunds credits for cancelled scans. Returns the total cancelled count.

ParameterTypeDescription
group_id *stringCampaign group UUID.

archive_campaign_group Archive Campaign Group

Soft-delete the group AND every campaign in it. The default group cannot be archived; ask the user to move campaigns out first.

ParameterTypeDescription
group_id *stringCampaign group UUID.

unarchive_campaign_group Unarchive Campaign Group

Restore an archived campaign group and re-expose its campaigns in default lists.

ParameterTypeDescription
group_id *stringCampaign group UUID.

pause_campaign_group_schedule Pause Group Schedule

Pause the scheduler for EVERY campaign in the group. Already-pending scans complete; no new scheduled runs are produced until you `resume_campaign_group_schedule`.

ParameterTypeDescription
group_id *stringCampaign group UUID.

resume_campaign_group_schedule Resume Group Schedule

Re-enable the scheduler for every campaign in the group. Inverse of `pause_campaign_group_schedule`.

ParameterTypeDescription
group_id *stringCampaign group UUID.

list_tags List Tags

List every tag definition in service for this organization (system tags + organization custom tags) with category, severity, visibility, and usage counters (scans + rules per tag). Optionally filter by category, and pass `include_archived` to also see the retired definitions this organization owns.

ParameterTypeDescription
categorystringFilter to tags in one category slug (e.g. 'security', 'malware', 'compliance'). Use the slug exactly as it appears in `category` of an existing tag.
include_archivedbooleanAlso return the archived tag definitions this organization owns, which are excluded by default. An archived tag is retired: it is no longer assigned to scans and no longer raises alerts, and archived…

get_tag_definition Get Tag Definition

Get full definition of one tag: display name, description, severity, category, source (system vs custom), public-report visibility, usage counts, plus `linked_rules` — the custom rules currently producing this tag (id, name, active flag). Fetch a specific rule's full config via `get_custom_rule`. Returns 404 for a retired (archived) tag this organization does not own, including every archived system tag.

ParameterTypeDescription
slug *stringTag slug (e.g. `malware`, `redirect_chain_too_long`).

update_tag_definition Update Tag Definition

Update display fields of a CUSTOM tag your organization owns (system tags and other organizations' tags are read-only). Only supplied fields are touched. To read the updated definition, follow up with `get_tag_definition`.

ParameterTypeDescription
slug *stringTag slug.
descriptionstringNew description.
display_namestringNew human-readable name.
severitystringNew severity level.
visibilitystringTag visibility on the scan report: hidden = not surfaced; internal = visible to org members; public = appears in the public scan-share view.

delete_tag_definition Delete Tag Definition

Delete a CUSTOM tag definition your organization owns. Historical tag assignments are preserved; future scans will not receive this tag. System tags cannot be deleted. A tag other organizations depend on (shared with every organization, or emitted by other organizations' rules) returns HTTP 409 / `checking.tag_in_use_by_other_orgs`.

ParameterTypeDescription
slug *stringCustom tag slug to delete.

list_scan_tags List Scan Tags

List every tag (system + custom) attached to one scan by the checker pipeline, with display name, category, and severity. Tags whose definition has since been archived are omitted — the scan can therefore report fewer tags than when it ran.

ParameterTypeDescription
scan_id *stringScan UUID.

list_custom_rules List Custom Rules

Paginated list of the organization's custom tag-detection rules (regex / heuristics) with their config, target, and active flag. Returns `{items, total, page, limit}`. To iterate: there is a next page iff `page * limit < total` (or equivalently `items.length === limit` until the last page). `page` is 1-indexed. For `rule_type='combo'` the returned `config` may carry the rule-level key `match_scope` ("scan" = count conditions across the whole scan, "url" = every condition must be satisfied by tags on the same link). Resend it verbatim when updating: `update_custom_rule` replaces `config` wholes…

ParameterTypeDescription
limitintegerPage size.
pageinteger1-indexed page number.

get_custom_rule Get Custom Rule

Get one custom rule by UUID with name, tag-slug, type, config object, target, active flag. For `rule_type='combo'` the returned `config` may carry the rule-level key `match_scope` ("scan" = count conditions across the whole scan, "url" = every condition must be satisfied by tags on the same link). Resend it verbatim when updating: `update_custom_rule` replaces `config` wholesale, so dropping the key reverts the rule to whole-scan matching.

ParameterTypeDescription
rule_id *stringRule UUID.

create_custom_rule Create Custom Rule

Define a custom tag-detection rule. Use `rule_type='regexp_request_url'` to match captured network and subresource URLs; fresh scans carry up to 5,000 URLs, while later tests/rechecks use a reduced persisted request tree and are best-effort. Use `rule_type='regexp_request_body'` to match the CONTENTS of those sub-resources instead — the right choice when the code you want to catch keeps changing its filename; those contents are kept for one day. `rule_type='regexp_url'` remains redirect-chain-only. The API auto-registers a tag definition for each emitted slug that is new or owned by your org…

ParameterTypeDescription
config *Rule-type-specific configuration object. Shape depends on `rule_type`. For `rule_type='regexp_request_url'` and `rule_type='regexp_request_body'`, `config` must be exactly `{ pattern: string, flags?:…
name *stringDisplay name. For non-LLM rules this also becomes the `display_name` of the auto-registered tag definition (see `tag_slug`) — only when the tag is new or owned by your organization.
rule_type *stringRule engine. One of: `stopword_content`, `stopword_url`, `regexp_content`, `regexp_url`, `regexp_request_url`, `regexp_request_body`, `blacklist_domain`, `combo`, `llm`. `regexp_url` checks redirect-c…
tag_slugstringTag slug to assign on match. Empty = create-only (advanced). The API auto-registers a custom tag definition for this slug with `display_name = name` when the slug is new or owned by your organization;…
targetstringWhere to apply the rule (e.g. 'page' for landing HTML). `regexp_request_url` and `regexp_request_body` also accept `'creative'` (the ad-tag creative's own traffic) and `'creative_and_page'` (both, rep…

update_custom_rule Update Custom Rule

Update a custom tag-detection rule. Only supplied fields are sent, but `config` replaces the stored object wholesale; read the rule first and resend every required key. `regexp_request_url` and `regexp_request_body` need a non-empty pattern (max 4,096), flags `''`/`'i'`, and a target of `'page'`, `'creative'` or `'creative_and_page'`. Same-slug GLOBAL rule edits preserve separately managed tag metadata; use `update_tag_definition` to change it. Existing scans are not re-evaluated until `recheck_scans`.

ParameterTypeDescription
rule_id *stringRule UUID to update.
configNew rule-type-specific config object. Replaces the stored config wholesale — resend every key you want to keep, including a combo rule's `match_scope`. For `rule_type='llm'` the keys of `config.tags…
is_activebooleanEnable/disable the rule.
namestringNew rule display name. For PERSONAL non-LLM rules this refreshes the auto-registered tag's display name. A same-slug GLOBAL rule keeps its separately managed tag metadata unchanged; use `update_tag_de…
tag_slugstringNew tag slug to assign on match. **MUST NOT collide with a built-in system tag slug** (see `list_tags` where `scope=system`); colliding requests return 422 with code `checking.system_slug_reserved`. L…
targetstringWhere to apply the rule. `regexp_request_url` and `regexp_request_body` accept `'page'`, `'creative'` or `'creative_and_page'`. See API docs for the valid targets of other rule types.

delete_custom_rule Delete Custom Rule

Permanently delete a custom rule. Already-applied tags on past scans are preserved; the rule simply stops running on future scans.

ParameterTypeDescription
rule_id *stringRule UUID to delete.

test_custom_rule Test Custom Rule

Preview-test a rule definition against a stored scan without persisting it. For `regexp_request_url`, the historical snapshot contains main-frame hops plus at most 200 persisted subrequests with selected resource types omitted, so a no-match does not prove the original fresh scan lacked the request. For `regexp_request_body`, the captured contents live for ONE DAY — pick a scan from the last 24 hours, because an older one reports no match with nothing left to read. Returns match state, elapsed time, and per-tag detail; the preview response does not expose the matched request URL separately.…

ParameterTypeDescription
config *Rule-type-specific config to test. Same shape as `create_custom_rule`'s `config`. For `rule_type='regexp_request_url'` and `rule_type='regexp_request_body'`, `config` must be exactly `{ pattern: strin…
rule_type *stringRule engine type. One of: `stopword_content`, `stopword_url`, `regexp_content`, `regexp_url`, `regexp_request_url`, `regexp_request_body`, `blacklist_domain`, `combo`, `llm`. `regexp_url` checks redir…
scan_id *stringExisting scan UUID to evaluate the rule against.
target *stringWhere to apply the rule (e.g. 'page' for landing HTML). `regexp_request_url` and `regexp_request_body` also accept `'creative'` and `'creative_and_page'`. See API docs for the full set of valid values…

test_custom_rules_batch Test Custom Rules Batch

Preview-test up to 20 rule definitions against up to 50 stored scans in one call, without saving them. Returns one cell per rule and scan; a cell's `index` is the rule's position in `rules`, so pair it with `scan_id` to identify the cell. A rule definition the API rejects fails the whole call as invalid input before anything runs. Otherwise a cell that could not run has `error` and `error_code` and never fails the rest: `deadline_exceeded` means the call ran out of time before that cell (about 110s per call) — call again with just those rules and scans; others are `timed_out`, `llm_failed`,…

ParameterTypeDescription
rules *arrayUp to 20 rules. Every rule runs against every scan in `scan_ids`.
scan_ids *arrayUp to 50 stored scan UUIDs. Testing one rule against many scans is the usual case.

list_custom_taxonomies List Custom Taxonomies

List the calling org's custom classification taxonomies. Returns slim summaries (id, name, slug, version, node_count, is_active, show_in_public_report). Only active taxonomies are listed unless you pass `include_inactive: true`; soft-deleted ones then appear with `is_active=false`. Fetch the full tree via `get_custom_taxonomy`.

ParameterTypeDescription
include_inactivebooleanInclude soft-deleted taxonomies, which are excluded by default. Pass `true` to find one to `restore_custom_taxonomy`, or to resolve a taxonomy id seen on an older scan.

get_custom_taxonomy Get Custom Taxonomy

Get one custom taxonomy by UUID with its full node tree (each node has id, parent_id, level, position, name, description, is_default) and its `show_in_public_report` flag.

ParameterTypeDescription
taxonomy_id *stringCustom taxonomy UUID.

create_custom_taxonomy Create Custom Taxonomy

Create a custom classification taxonomy with its initial tree. Exactly one node should have is_default=true (fallback for scans the LLM cannot classify confidently). Returns the persisted taxonomy with allocated node UUIDs and version=1.

ParameterTypeDescription
name *stringDisplay name (1-100 chars).
descriptionstringFree-form description (defaults to empty string).
nodesarrayInitial tree as a flat array (parents before children, linked via client_id / parent_client_id). Empty / omitted = empty taxonomy.
show_in_public_reportbooleanShow this taxonomy's tiers on unauthenticated public scan reports. Defaults to false.

update_custom_taxonomy Update Custom Taxonomy

REPLACE a custom taxonomy's name, description, public-report visibility, and full tree atomically. The API bumps `version` on every successful update; ongoing scan classifications continue with the previous tree until they finish, so updates are safe but not retroactive.

ParameterTypeDescription
name *stringNew display name.
taxonomy_id *stringCustom taxonomy UUID.
descriptionstringNew description (defaults to empty string).
nodesarrayREPLACEMENT tree as a flat array (REPLACES the existing tree, not a merge). Read the current tree via `get_custom_taxonomy` first if you only want to tweak one node.
show_in_public_reportbooleanShow this taxonomy's tiers on unauthenticated public scan reports. REPLACED like every other field: omitting it sets false and hides the taxonomy from public reports, so pass the current value from `g…

delete_custom_taxonomy Delete Custom Taxonomy

Soft-delete a custom taxonomy (sets is_active=false). Historical scan classifications keep referencing the id; new scans skip this taxonomy. Use `restore_custom_taxonomy` to undo.

ParameterTypeDescription
taxonomy_id *stringCustom taxonomy UUID.

restore_custom_taxonomy Restore Custom Taxonomy

Re-activate a previously soft-deleted custom taxonomy. Returns the restored taxonomy with its full tree (is_active=true).

ParameterTypeDescription
taxonomy_id *stringCustom taxonomy UUID (must currently be is_active=false).

parse_custom_taxonomy_text Parse Custom Taxonomy Text

Preview-parse pasted free-form text into a taxonomy tree (NOT persisted). Returns `nodes: [{level, name, description}]` + `warnings: string[]`. After review, persist via `create_custom_taxonomy` (remember to flag exactly one node as is_default).

ParameterTypeDescription
text *stringFree-form text describing the tree (one node per line; indentation expresses depth). Up to 50 000 chars.

list_policy_sets List Policy Sets

Paginated list of policy sets: named collections of violation rules (tag / IAB V3 / brand / AI category / custom-taxonomy entries) that define what counts as a violation. Campaigns bind to one policy set. Returns `{items, total, page, limit}`. List items omit `entries` for payload size — fetch a single set via `get_policy_set` when you need them. `is_default` is true on the owned set that new campaigns bind when `policy_set_id` is omitted. Use `visibility=public` to discover Kaminari Ad-curated sets.

ParameterTypeDescription
limitintegerPage size.
pageinteger1-indexed page number.
visibilitystringNarrow to one scope. `private` = org-owned only, `public` = Kaminari Ad-curated sets visible to every org. Omit the filter to see BOTH combined.

get_policy_set Get Policy Set

Get one policy set by UUID with its complete list of entries (each entry is one of five rule kinds — tag / iab_v3 / brand / ai_category / custom_taxonomy — plus applicable country codes). `is_default` is true when this owned set is the organization's default for new campaigns.

ParameterTypeDescription
policy_set_id *stringPolicy set UUID.

create_policy_set Create Policy Set

Create a new policy set (named collection of violation rules). Each rule is one of: tag slug, IAB V3 category prefix, advertiser brand, freeform AI category, or per-org custom-taxonomy node. Bind campaigns to the set via `update_campaign`.

ParameterTypeDescription
description *stringFree-form description (use empty string for none).
entries *arrayAt least one entry. Each entry is a discriminated union over five rule kinds: tag / iab_v3 / brand / ai_category / custom_taxonomy.
name *stringDisplay name.

update_policy_set Update Policy Set

REPLACE a policy set's name, description, and entry list. The API requires all three fields on every update — read the current set with `get_policy_set` first if you only want to change one thing. Supports all five rule kinds (tag / iab_v3 / brand / ai_category / custom_taxonomy).

ParameterTypeDescription
description *stringNew description (empty string allowed).
entries *arrayREPLACEMENT entries list — REPLACES the current list, not a merge. Each entry is a discriminated union over five rule kinds (tag / iab_v3 / brand / ai_category / custom_taxonomy).
name *stringNew name (always required by the API on update).
policy_set_id *stringPolicy set UUID.

delete_policy_set Delete Policy Set

Permanently delete a policy set. IMPORTANT: API returns HTTP 400 if any active campaign is still bound to this set. To unbind first, call `list_campaigns` with a `policy_set_id` filter (when available) or scan your campaigns for matches, then `update_campaign` for each match setting `policy_set_id=null`, then retry delete. Alerts created under this set persist (their `policy_set_id` becomes `null`).

ParameterTypeDescription
policy_set_id *stringPolicy set UUID.

request_policy_set_approval Request Policy Set Approval

Submit a private policy set for Kaminari Ad team review so it can be marked PUBLIC and used by other organizations. The set must be complete and well-formed. Returns immediately; approval status is reflected on the policy set entity once the review completes.

ParameterTypeDescription
policy_set_id *stringPolicy set UUID.

unpublish_policy_set Unpublish Policy Set

Return one of your organization's policy sets to PRIVATE. Inverse of request_policy_set_approval: removes an approved set from the shared catalog other organizations browse, or withdraws a publication request that is still awaiting review. The set stays fully usable inside your own organization. Campaigns in other organizations that already reference the set keep their binding — going private blocks new attachments rather than breaking existing ones. Safe to call on a set that is already private.

ParameterTypeDescription
policy_set_id *stringPolicy set UUID.

set_default_policy_set Set Default Policy Set

Mark or clear one of your organization's policy sets as the default for new campaigns. At most one owned set may be default. Creating a campaign without `policy_set_id` then binds this set (or stays unbound if none is set). Pass `policy_set_id: null` on create_campaign to opt out of the default. Foreign public sets cannot be made default. The API returns 204; this tool echoes `is_default`.

ParameterTypeDescription
is_default *booleanTrue makes this the organization's default for new campaigns (clearing any previous default). False clears the flag on this set and leaves the org without a default.
policy_set_id *stringOwned policy set UUID.

list_policy_set_campaigns List Policy Set Campaigns

List the campaigns bound to a policy set, paginated, each with `id`, `name` and `is_archived`. `get_policy_set` returns only the first page of bindings plus a `campaigns_total`, so use this tool when a set has more campaigns than that page holds, or to search them by name. Read the membership here before `detach_policy_set_campaigns` — and before `delete_policy_set`, which the API refuses while any active campaign is still bound.

ParameterTypeDescription
policy_set_id *stringPolicy set UUID.
limitintegerPage size (1-200).
pageinteger1-indexed page number.
qstringSubstring search against campaign name (case-insensitive).

attach_policy_set_campaigns Attach Policy Set Campaigns

Bind campaigns to a policy set. This and `detach_policy_set_campaigns` are the only way to change membership — `update_policy_set` edits the set's name, description and rules, never its campaigns. Membership changes here are incremental: this set's other members are left alone. IMPORTANT: a campaign can belong to only one policy set, so naming a campaign currently on a DIFFERENT set MOVES it here — it stops being evaluated against its old set's rules, and no warning is returned. Check `list_campaigns` (`policy_set_id`) first when the campaign may already be bound elsewhere. Split lists lon…

ParameterTypeDescription
campaign_ids *arrayCampaign UUIDs to bind, at most 500 per call. A campaign already on THIS set is a no-op; a campaign on a DIFFERENT set is moved to this one.
policy_set_id *stringPolicy set UUID.

detach_policy_set_campaigns Detach Policy Set Campaigns

Unbind campaigns from a policy set INCREMENTALLY — the bindings you don't name survive. Pass `campaign_ids` for specific campaigns or `detach_all: true` to clear the whole membership. This and `attach_policy_set_campaigns` are the only way to change membership; `update_policy_set` edits the set's name, description and rules, never its campaigns. Detaching leaves the policy set and its rules intact, and alerts already raised under it are kept.

ParameterTypeDescription
policy_set_id *stringPolicy set UUID.
campaign_idsarrayCampaign UUIDs to unbind, at most 500 per call. Omit when using `detach_all`.
detach_allbooleanUnbind EVERY campaign from this policy set. Check the current membership with `list_policy_set_campaigns` first — the campaigns stop being evaluated against these rules, so alerts they would have ra…

list_alerts List Alerts

List violation alerts (one per scan + violating rule combo) with offer URL, country, status, scan back-reference, and the kind-aware fields `rule_type` (tag / iab_v3 / brand / ai_category / custom_taxonomy) + `matched_value` (the canonical text the scan matched against). Filter by campaign, status, policy set, tag, country and creation-date range; `policy_set_id`, `tag` and `country_code` take comma-separated values and match any of them. Pass the same filters to `get_alert_stats` to get counts that agree with this list.

ParameterTypeDescription
campaign_idstringFilter to one campaign's alerts.
country_codestringComma-separated ISO 3166-1 alpha-2 country codes, e.g. US,DE,JP.
date_fromstringISO date (YYYY-MM-DD), inclusive lower bound on alert creation.
date_tostringISO date (YYYY-MM-DD), inclusive upper bound on alert creation.
limitintegerPage size.
pageinteger1-indexed page number.
policy_set_idstringComma-separated policy-set UUIDs. Matches alerts raised by any of them; see `list_policy_sets`.
statusstringFilter by alert status. Open = unhandled; escalated = flagged for attention; resolved = closed; dismissed = closed without action.
tagstringComma-separated tag slugs. Matches alerts carrying any of them; see `list_tags`.
timezonestringIANA timezone (e.g. 'Europe/Berlin') the date bounds are read in. Defaults to UTC. Omitting both dates spans all time.

update_alert_status Update Alert Status

Update an alert's status in its lifecycle: open → escalated → resolved | dismissed. The API enforces valid transitions; an invalid one returns 422.

ParameterTypeDescription
alert_id *stringAlert UUID.
status *stringNew status: open | escalated | resolved | dismissed.

bulk_update_alert_status Bulk Update Alert Status

Change the status of many alerts at once. Select EITHER an explicit `ids` list (max 1000) OR `all_matching: true` with the `filter_*` fields, which mirror `list_alerts`. Alerts already in a state the transition cannot leave are skipped rather than failing the call, so the response reports `updated` and `skipped` counts — compare `updated + skipped` against the selection size to see how many were no-ops. Prefer `update_alert_status` for a single alert.

ParameterTypeDescription
status *stringStatus to move the selected alerts to.
all_matchingbooleanApply to every alert matching the `filter_*` fields instead of an id list. With no filters this means EVERY alert in the organization, so filter first and confirm the scope with `get_alert_stats` usin…
filter_campaign_idstringOnly with `all_matching`: restrict to one campaign.
filter_country_codesarrayOnly with `all_matching`: restrict to these ISO 3166-1 alpha-2 countries.
filter_date_fromstringOnly with `all_matching`: inclusive lower bound (YYYY-MM-DD) on alert creation.
filter_date_tostringOnly with `all_matching`: inclusive upper bound (YYYY-MM-DD) on alert creation.
filter_policy_set_idsarrayOnly with `all_matching`: restrict to alerts raised by any of these policy sets.
filter_statusstringOnly with `all_matching`: restrict to alerts currently in this status.
filter_tag_slugsarrayOnly with `all_matching`: restrict to alerts carrying any of these tag slugs.
filter_timezonestringIANA timezone for the filter date bounds. REQUIRED by the API whenever either date is set.
idsarrayExplicit alert UUIDs, at most 1000 per call. Mutually exclusive with `all_matching`.

get_alert_stats Get Alert Stats

Get alert counts grouped by status: open, escalated, resolved, dismissed. Accepts every filter `list_alerts` does except `status` — the response buckets BY status — so passing the same filters to both makes the four counts sum to the `total` that `list_alerts` reports. Unfiltered, the counts cover the whole organization over all time. Use this to size a selection before calling `bulk_update_alert_status` with `all_matching`.

ParameterTypeDescription
campaign_idstringFilter to one campaign's alerts.
country_codestringComma-separated ISO 3166-1 alpha-2 country codes, e.g. US,DE,JP.
date_fromstringISO date (YYYY-MM-DD), inclusive lower bound on alert creation.
date_tostringISO date (YYYY-MM-DD), inclusive upper bound on alert creation.
policy_set_idstringComma-separated policy-set UUIDs. Matches alerts raised by any of them; see `list_policy_sets`.
tagstringComma-separated tag slugs. Matches alerts carrying any of them; see `list_tags`.
timezonestringIANA timezone (e.g. 'Europe/Berlin') the date bounds are read in. Defaults to UTC. Omitting both dates spans all time.

list_webhooks List Webhooks

List the organization's registered webhook endpoints with their URL, subscribed event types, and active flag.

get_webhook Get Webhook

Get one webhook endpoint by UUID with URL, subscribed event types, active flag.

ParameterTypeDescription
webhook_id *stringWebhook endpoint UUID.

create_webhook Create Webhook

Register a webhook endpoint for the chosen event types. Response is a `{ webhook, secret }` envelope — the HMAC-SHA256 SIGNING SECRET is returned once and the caller MUST store it to verify event signatures.

ParameterTypeDescription
url *stringHTTPS endpoint URL.
campaign_idsarrayRestrict to events from these campaigns. Empty array = events from every campaign.
descriptionstringFree-form label shown in the dashboard.
event_typesarrayEvent-type slugs to subscribe to (see `list_webhook_event_types`). Empty array = subscribe to ALL events.

update_webhook Update Webhook

Update a webhook endpoint's URL, event-type subscriptions, and/or active flag. Signing secret is NOT rotated by this call — use `rotate_webhook_secret` for that.

ParameterTypeDescription
webhook_id *stringWebhook UUID.
campaign_idsarrayRestrict deliveries to these campaign UUIDs (replaces the current set).
clear_campaign_idsbooleanSet true to remove the campaign restriction so the webhook fires for all campaigns.
descriptionstringNew human-readable label.
event_typesarrayReplace the subscribed-event-types list.
is_activebooleanEnable / disable delivery.
urlstringNew endpoint URL.

delete_webhook Delete Webhook

Unregister a webhook endpoint. No further events are delivered; in-flight retries are dropped. Past delivery history is preserved.

ParameterTypeDescription
webhook_id *stringWebhook endpoint UUID to remove.

list_webhook_event_types List Webhook Event Types

List the catalog of event types a webhook can subscribe to (e.g. `scan.done`, `alert.opened`, `campaign.run.completed`) with each event's description and a sample payload.

list_webhook_deliveries List Webhook Deliveries

List delivery attempts for one webhook endpoint with event type, status (pending / delivered / failed), HTTP response status if any, and attempt timestamp. Filter by `success` and / or a `from_ts` / `to_ts` range. Paginated.

ParameterTypeDescription
webhook_id *stringWebhook endpoint UUID.
from_tsstringISO 8601 datetime (with offset), inclusive lower bound on attempt time.
limitintegerPage size.
pageinteger1-indexed page.
successbooleanFilter to delivered (true) or failed (false) attempts only.
to_tsstringISO 8601 datetime (with offset), inclusive upper bound.

test_webhook Test Webhook

Dispatch a synthetic event with the sample payload for the given `event_type` to the webhook endpoint and return the receiver's response synchronously. Includes HTTP status, elapsed time, and a snippet of the response body so the operator can diagnose receiver bugs.

ParameterTypeDescription
event_type *stringEvent type slug whose sample payload to send (see `list_webhook_event_types` for the catalog).
webhook_id *stringWebhook endpoint UUID.

rotate_webhook_secret Rotate Webhook Secret

Generate a new signing secret for a webhook. The new secret is returned IN FULL once — tell the user to store it. Subsequent deliveries are signed with the new secret; the old one stops working immediately.

ParameterTypeDescription
webhook_id *stringWebhook endpoint UUID.

replay_webhook_delivery Replay Webhook Delivery

Queue a re-attempt for one specific webhook-delivery attempt by id. Useful when an endpoint was temporarily down. Result of the replay shows up as a new entry in `list_webhook_deliveries`.

ParameterTypeDescription
attempt_id *stringDelivery-attempt UUID (from `list_webhook_deliveries`).

bulk_replay_webhook Bulk Replay Webhook

Replay every delivery attempt for this webhook endpoint that landed in [from_ts, to_ts). Returns `{ replayed, skipped }` counts. Use to recover after a downstream outage — every event in the window is re-fired.

ParameterTypeDescription
from_ts *stringISO-8601 lower bound (inclusive) of the time window to replay.
to_ts *stringISO-8601 upper bound (exclusive) of the time window to replay.
webhook_id *stringWebhook endpoint UUID.

get_billing_summary Get Billing Summary

Get the organization's billing snapshot: balance (in micros), current plan, period usage counters, suspension state, and whether new scans are accepted right now.

list_usage List Usage

List per-scan usage rows (cost in micros, kind, scan id, timestamp). Use to attribute cost to specific scans or campaigns.

ParameterTypeDescription
date_fromstringISO 8601 datetime (with timezone offset), inclusive lower bound on the usage timestamp. Plain dates also work — the API normalises to UTC midnight.
date_tostringISO 8601 datetime (with offset), inclusive upper bound.
limitintegerPage size.
pageinteger1-indexed page.
scan_idstringFilter to one scan's cost rows.

get_usage_summary Get Usage Summary

Get a one-liner aggregate of usage for the current billing period: total cost (micros), check count, period start/end.

list_balance_history List Balance History

List ledger transactions (charges, refunds, top-ups, invoice settlements and their corrections) on the organization's balance. Each row: type, amount in micros, description, timestamp. Filter by `type` (multi-select) and / or date range.

ParameterTypeDescription
date_fromstringISO date, inclusive.
date_tostringISO date, inclusive.
limitintegerPage size.
pageinteger1-indexed page.
typearrayFilter by transaction kind. Pass several values to OR them (e.g. ['top_up_manual','crypto_top_up','card_top_up','invoice_settlement'] for every way a balance is funded). Note `invoice_payment_adjustme…

list_invoices List Invoices

List invoices issued to the organization with number, type, status, total in micros, currency, due/paid dates. Filter by `type` and / or `status`. Use `get_invoice_pdf` to download the PDF for a specific invoice.

ParameterTypeDescription
limitintegerPage size.
pageinteger1-indexed page.
statusstringFilter by lifecycle status.
typestringFilter by invoice kind: proforma (advance bill) or final (issued after the period).

get_invoice_pdf Get Invoice PDF

Download one invoice as an inline PDF (base64-encoded). Returned as a single MCP resource content block — agents can save / forward it without a second API call.

ParameterTypeDescription
invoice_id *stringInvoice UUID — see `list_invoices`.

list_alert_destinations List Alert Destinations

List configured alert-notification destinations (channels): Slack workspaces, Telegram chats, email lists, generic webhooks. Each entry has id, kind, display name, version, creation timestamp and, when set, its label routing rule (`route_label_key` + `route_label_values`) used by campaigns that route by that label key.

delete_alert_destination Delete Alert Destination

Remove an alert-notification destination. The org stops receiving pings on this channel immediately; campaign-level overrides referencing it are pruned.

ParameterTypeDescription
destination_id *stringDestination UUID.

set_alert_destination_version Set Destination Version

Switch a destination to a specific versioned config — used after re-authorizing a Slack workspace, rotating a Telegram bot token, etc. The new version must already exist in the destination's history. The API returns no body on success; this tool reports `{ updated: true }`. Use `list_alert_destinations` to read the new state if needed.

ParameterTypeDescription
destination_id *stringDestination UUID.
version *stringWhich version of the scan-report link to embed in alert messages: `public` (anonymous, no auth) or `internal` (requires UI login).

get_campaign_alert_overrides Get Campaign Alert Overrides

Get the per-campaign override of which alert destinations receive its alerts. `mode` is one of `inherit` (no override — the campaign follows the org-wide destinations), `override` (alerts go ONLY to the returned `destination_ids`), or `silence` (the campaign sends nothing). `routing_label_key`, when set, adds label routing on top of inherit/override: each scan also reaches the destinations whose label rule on that key matches the scan's value.

ParameterTypeDescription
campaign_id *stringCampaign UUID.

set_campaign_alert_overrides Set Campaign Alert Overrides

REPLACE the per-campaign alert-routing override. `mode=inherit` drops the override so the campaign follows the org-wide destinations; `mode=override` routes its alerts ONLY to `destination_ids`; `mode=silence` sends nothing for the campaign. `routing_label_key` adds label routing on top of inherit/override: each scan also reaches the destinations whose label rule matches its value (e.g. one DSP's chat in a shared campaign). There is no 'route everywhere except these' mode — to exclude one destination, pass `override` with the destinations you DO want (see `list_alert_destinations`). To read…

ParameterTypeDescription
campaign_id *stringCampaign UUID.
mode *stringRouting mode: `inherit` (fall back to the org-wide destinations), `override` (route ONLY to `destination_ids`), `silence` (send nothing for this campaign).
destination_idsarrayDestination UUIDs to route to. Accepted ONLY with `mode: override` — the API rejects it for `inherit`/`silence`. An empty list with `override` routes nowhere, which is the same outcome as `silence`.
routing_label_keyScan label key to route by on top of `inherit` or `override` (e.g. `dspName`): each scan also goes to the destinations whose label rule matches the scan's value for this key, as shown by `route_label_…