What can I ask?

The TONIC MCP server gives your AI assistant access to live TONIC publisher data. Below you will find the available tools, example questions you can ask, and what you will get back.

List the countries available in the TONIC platform.

Look up which countries are supported in TONIC, whether a country is available, and whether new campaigns can be created there (status).

Example questions to ask your AI assistant:

  • “Which countries can I create TONIC campaigns in right now?”
  • “Is Germany (DE) a supported country, and is it active?”
  • “List all TONIC countries with their codes and status.”

What you get back:

A list of country names, their two-letter codes (e.g. DE = Germany), each country's status (active = new campaigns allowed, inactive = historical only), and created/modified timestamps (modified shows when the row — e.g. its status — last changed), with the total count.

Technical details (for developers)

Tool name: get_countries api-bo:read

Reference lookup. Returns the canonical country code + name + status list, with offset/limit pagination and an optional substring search over code/name. Each country's status is 'active' or 'inactive'; only 'active' countries are eligible for NEW campaigns / article requests. Pass active_only=true to list only eligible countries. Presence in the list is NOT campaign-creation permission — check status.

ParameterTypeRequiredConstraints
offset integer no >= 0, default 0
limit integer no 1-1000, default 200
search string no optional substring, e.g. DE
active_only boolean no default false; true = only campaign-eligible (active) countries
Example request / response

Request

{"jsonrpc":"2.0","id":1,"method":"tools/call",
 "params":{"name":"get_countries","arguments":{"limit":2,"search":"de"}}}

Response

{"data":[{"code":"DE","name":"Germany","status":"active",
          "created":"2021-06-02T12:00:00","modified":"2024-06-01T12:00:00"}],
 "pagination":{"offset":0,"limit":2,"total":1,"has_more":false}}

Revenue for a set of publisher users or campaigns, with optional dimension breakdowns.

Pull revenue figures for your publisher users or campaigns over a date range of up to 7 days, broken down by campaign, country, or offer.

Example questions to ask your AI assistant:

  • “Show me my revenue for the last 7 days.”
  • “How much did campaign 12345 earn from June 1 to June 7, broken down by country?”
  • “Which offers made the most revenue last week?”
  • “Break down last week's revenue by user for campaigns 111 and 222.”

What you get back:

Revenue rows showing earnings, clicks, campaign, country, and offer for the requested date range, with a flag if totals are below the reporting threshold.

Technical details (for developers)

Tool name: get_revenue_report api-bo:read

Returns revenue rows (date x user x account, optionally broken down by campaign / country / offer) for a date range of at most 7 days. Exactly one of user_ids or campaign_ids must be provided. group_by selects breakdown dimensions; omit for a per-(date, user, account) aggregate. Cursor-paginated with a below_threshold flag on the first page.

ParameterTypeRequiredConstraints
date_from string (date) yes YYYY-MM-DD, inclusive
date_till string (date) yes YYYY-MM-DD, inclusive; range <= 7 days (upstream hard limit); must not be in the future
user_ids array no publisher user ids >= 1; exactly one of user_ids or campaign_ids must be provided
campaign_ids array no campaign ids >= 1; exactly one of user_ids or campaign_ids must be provided
group_by array no allowed values: campaign, country, offer; may combine; omit for per-(date,user,account) aggregate
limit integer no 1-1000, default 100
cursor string no opaque cursor from a prior response
Example request / response
Note: Placeholder shape — confirm against the live endpoint before publish (spec §2).

Request

{"jsonrpc":"2.0","id":2,"method":"tools/call",
 "params":{"name":"get_revenue_report",
           "arguments":{"date_from":"2026-06-01","date_till":"2026-06-07",
                        "user_ids":[55],"group_by":["campaign","offer"],"limit":1}}}

Response

{"data":[{"date":"2026-06-01","user_id":55,"account_name":"Acme",
          "campaign_id":456,"country":null,"offer":"Search",
          "clicks":1200,"revenue":"34.56"}],
 "pagination":{"limit":1,"next_token":"eyJ…","has_more":true,"expires_at":"2026-06-19T12:00:00Z"},
 "below_threshold":false}

Daily managed-access coverage across the publisher portfolio.

Review daily managed-access health across the publisher portfolio and surface at-risk publishers ranked by disconnected percentage.

Example questions to ask your AI assistant:

  • “Which publishers have the worst managed-access coverage today?”
  • “Show me publishers with disconnected ad-network accounts, worst first.”
  • “Are any publishers completely missing managed access?”

What you get back:

A ranked list of publishers and ad networks with disconnected vs. total account counts and the disconnected percentage, plus a separate list of publishers that are fully missing managed access.

Technical details (for developers)

Tool name: get_managed_access_coverage api-bo:read

Returns at-risk publishers, one row per publisher x ad network, ranked by percentage of disconnected managed-access accounts descending (in `data`), plus a distinct `missing` list of publishers with zero managed-access connections (fully missing). No parameters are required for the default daily run; offset/limit paginate the at-risk list.

ParameterTypeRequiredConstraints
offset integer no >= 0, default 0
limit integer no 1-1000, default 200
Example request / response

Request

{"jsonrpc":"2.0","id":3,"method":"tools/call",
 "params":{"name":"get_managed_access_coverage","arguments":{}}}

Response

{"data":[{"user_id":20,"email":"b@x.com","ad_network":"taboola",
          "disconnected_count":3,"total_count":4,"disconnected_pct":75.0}],
 "pagination":{"offset":0,"limit":200,"total":1,"has_more":false},
 "missing":[{"user_id":30,"email":"c@x.com"}]}

Active managed-access problems for a publisher user.

Check whether a publisher user has active managed-access problems.

Example questions to ask your AI assistant:

  • “Does user 123 have any managed-access issues?”
  • “Which ad network accounts are blocking publisher 123?”

What you get back:

A status and the affected ad-network account ids, including when the account was first and last seen.

Technical details (for developers)

Tool name: get_managed_access_issues api-bo:read

Returns only currently active ad-network accounts that require managed-access action for a publisher user. Old accounts without current traffic are omitted.

ParameterTypeRequiredConstraints
user_id integer yes publisher user id >= 1
Example request / response

Request

{"jsonrpc":"2.0","id":3,"method":"tools/call",
 "params":{"name":"get_managed_access_issues","arguments":{"user_id":123}}}

Response

{"data":[{"user_id":123,"status":"action_needed",
          "affected_accounts":[{"ad_network":"facebook","account_id":"123456",
          "action_needed_since":"2026-06-25 08:10:00",
          "last_seen":"2026-06-26 12:34:56"}]}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

Managed-access status for one ad-network account id.

Check whether a specific ad-network account id is connected, inactive, or needs action.

Example questions to ask your AI assistant:

  • “Is Facebook ad account 123456 connected?”
  • “Does ad network account 123456 need managed-access action?”

What you get back:

The account status, network, publisher user id if known, last seen timestamp, and current-traffic flag.

Technical details (for developers)

Tool name: get_managed_access_account_status api-bo:read

Looks up a specific ad-network account id. If the account was only seen historically, the response marks it inactive and explains that it is not currently sending traffic.

ParameterTypeRequiredConstraints
account_id string yes ad-network account id, non-empty
ad_network string no optional network filter, e.g. facebook
Example request / response

Request

{"jsonrpc":"2.0","id":4,"method":"tools/call",
 "params":{"name":"get_managed_access_account_status",
           "arguments":{"account_id":"123456","ad_network":"facebook"}}}

Response

{"data":[{"account_id":"123456","ad_network":"facebook","status":"inactive",
          "user_id":123,"action_needed_since":null,
          "last_seen":"2026-06-20 12:34:56","has_current_traffic":false,
          "message":"This account was seen before, but is not currently sending traffic."}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

Confirm whether managed access is set up correctly for a publisher.

Confirm whether managed access is set up correctly for a given publisher, before escalating an access issue.

Example questions to ask your AI assistant:

  • “Is managed access set up correctly for publisher 123?”
  • “Does user 123 still need to connect managed access to any ad network?”

What you get back:

One overall setup status (fully_configured, needs_action, or not_connected) with a plain-language message, and the affected ad-network accounts when action is needed.

Technical details (for developers)

Tool name: get_managed_access_setup_status api-bo:read

Looks up a publisher's full managed-access history (not only active accounts) and returns one overall state in plain terms: fully_configured, needs_action, or not_connected, plus the specific accounts behind a needs_action verdict.

ParameterTypeRequiredConstraints
user_id integer yes publisher user id >= 1
Example request / response

Request

{"jsonrpc":"2.0","id":5,"method":"tools/call",
 "params":{"name":"get_managed_access_setup_status","arguments":{"user_id":123}}}

Response

{"data":[{"user_id":123,"status":"needs_action",
          "affected_accounts":[{"ad_network":"facebook","account_id":"123456",
          "action_needed_since":"2026-06-25 08:10:00",
          "last_seen":"2026-06-26 12:34:56"}],
          "message":"Managed access is connected but needs action on one or more accounts."}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

Per-type campaign counts, limit, headroom, and network category for one TONIC user.

Check a TONIC user's campaign limit, headroom, and network category.

Example questions to ask your AI assistant:

  • “How much campaign headroom does user 42 have left?”
  • “What network is user 42 on, and how many active campaigns do they have?”

What you get back:

User id, network category, and a list of campaign types each with active/stopped/pending counts, limit, and remaining headroom.

Technical details (for developers)

Tool name: get_account_campaign_status api-bo:read

Looks up a TONIC publisher/user id and returns, per campaign type (display, search, rsoc), the active/stopped/pending campaign counts, the campaign limit, and the remaining headroom. If any type has zero headroom, includes an advisory message about the daily cleanup job. Also returns the user's ad-network category if it has one.

ParameterTypeRequiredConstraints
user_id string yes TONIC publisher/user id, non-empty
Example request / response

Request

{"jsonrpc":"2.0","id":5,"method":"tools/call",
 "params":{"name":"get_account_campaign_status",
           "arguments":{"user_id":"42"}}}

Response

{"data":[{"user_id":"42","network_category":"facebook",
          "campaign_types":[
            {"type":"display","active_campaigns":0,"stopped_campaigns":0,"pending_campaigns":0,"campaign_limit":200,"remaining_headroom":200},
            {"type":"search","active_campaigns":0,"stopped_campaigns":0,"pending_campaigns":0,"campaign_limit":200,"remaining_headroom":200},
            {"type":"rsoc","active_campaigns":5,"stopped_campaigns":2,"pending_campaigns":1,"campaign_limit":8,"remaining_headroom":0}],
          "advisory_message":"This account has no remaining campaign headroom. Stopped campaigns with no recent revenue are automatically deleted during a daily cleanup job, which frees up headroom — check back after the next cleanup run, or contact the account manager to review stop/delete timing for this account."}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

Current compliance status of an ad and, if blocked, the stated reason.

Ask what an ad's compliance status is, so you can answer a publisher's question about why an ad is or is not running.

Example questions to ask your AI assistant:

  • “What is the compliance status of ad abc123?”
  • “Why is ad abc123 not running?”
  • “Is ad abc123 blocked, and if so why?”
  • “Check the compliance status of ads abc123, def456 and ghi789.”
  • “Ad abc123 shows request-failed — is that our problem or the client's tracker?”

What you get back:

The ad's platform, publisher user id, campaign id and status, its compliance label (compliant / not compliant, or empty when not yet checked) with the underlying compliance_class, the non-compliance reason when blocked, when it was last checked, and a plain-language verdict. It may also include best-effort upstream data (not guaranteed, use only when present): the external network account/campaign ids, platform-specific ad metadata, and a relevancy block — the redirect journey plus, for a resolved ad, the TONIC offer/vertical/country/campaign it maps to (with the most reliable campaign status).

Technical details (for developers)

Tool name: get_ad_compliance_status api-bo:read

Looks up an ad id and returns its current compliance status plus a plain-language verdict. The explicit status field is compliance_class (1 = compliant, 2/3 = non-compliant/declined, null = not yet checked), also surfaced as the human-readable compliance_label ("compliant" / "not compliant", null when not yet checked). When the ad is blocked, noncompliance_explanation carries the recorded reason. checked_at / hours_since_last_check show check freshness. If the ad is not in our system, platform is null and the verdict explains why. When the ad was scraped but could not be checked, a relevancy block carries the reason and the redirect journey (first link is the one defined in the network, e.g. Facebook/TikTok); a 'request-failed' reason usually means the client's own tracker/redirect is broken rather than a problem on our side. When relevancy.is_relevant is true, its tonic_* fields give the resolved TONIC offer/vertical/country/campaign the ad maps to. Note: the relevancy block (incl. tonic_* fields), network_account_id, platform_campaign_id and platform_specifics are best-effort data from an upstream partner team — NOT guaranteed; use each field only when present, never infer from its absence. Prefer relevancy.tonic_campaign_status over the top-level campaign_status (often null). Accepts a single ad id or several as a comma-separated list; returns one row per requested id, in request order.

ParameterTypeRequiredConstraints
ad_id string yes the ad id to look up, non-empty; or several ids comma-separated (e.g. abc123,def456)
Example request / response

Request

{"jsonrpc":"2.0","id":6,"method":"tools/call",
 "params":{"name":"get_ad_compliance_status",
           "arguments":{"ad_id":"abc123"}}}

Response

{"data":[{"ad_id":"4294080029","platform":"taboola","user_id":"9620","campaign_id":5181795,
          "campaign_status":null,"network_account_id":"wanduum-bulkdup10-rsoc-sc",
          "platform_campaign_id":"49896475","platform_specifics":{"marketing_objective":"LEADS_GENERATION"},
          "compliance_class":1,"compliance_label":"compliant",
          "noncompliance_explanation":null,"checked_at":"2026-07-13T06:05:23","hours_since_last_check":7,
          "relevancy":{"is_relevant":true,"journey":["https://mapinpocket.com/de/articles/..."],
                       "tonic_offer":"Sleepwear","tonic_vertical":"Shopping","tonic_campaign_id":5181795,
                       "tonic_campaign_status":"active","tonic_campaign_country":"DE",
                       "tracking_link":"dq8rmt.srsnxkkwcxkpkbj.com"},
          "verdict":"Ad Id 4294080029 is valid for the campaign #5181795"},
         {"ad_id":"1870603504167313","platform":"tiktok","user_id":null,"campaign_id":null,
          "campaign_status":null,"network_account_id":"7618488767388778504",
          "platform_campaign_id":"1870603499815186","platform_specifics":{"adgroup_id":"1870603500443122"},
          "compliance_class":null,"compliance_label":null,
          "noncompliance_explanation":null,"checked_at":null,"hours_since_last_check":null,
          "relevancy":{"reason":"request-failed","message":"The response was unsuccessful",
                       "is_relevant":false,
                       "journey":["https://savingsbuild.com/...?utm_source=tiktok"]},
          "verdict":"request-failed. The response was unsuccessful. This means the ad's tracking link did not resolve to a TONIC article when we followed it — almost always the client's own tracker/redirect is broken, not our system. The 'journey' field shows the redirect chain we followed, starting with the link defined in the network (e.g. Facebook, TikTok)"}],
 "pagination":{"offset":0,"limit":2,"total":2,"has_more":false}}

Does this TONIC account currently have a payment hold, and since when?

Ask whether a given TONIC account has a payment hold, so you can explain a delayed payment or blocked action to the account holder.

Example questions to ask your AI assistant:

  • “Does user 42 have a payment hold on their account?”
  • “Is there a payment hold on account 42, and since when?”

What you get back:

Whether the account currently has a payment hold, and if so, since when.

Technical details (for developers)

Tool name: get_payment_hold_status api-bo:read

Looks up a TONIC publisher/user id and reports whether the account currently has a payment hold. The explicit status lives on the account's 'payout' user tag: has_hold is true only when that tag's value is 'onhold' (its other values — 'verified', 'payout_data_changed', 'none' — all mean no hold). since is when the tag's current value was set, i.e. since when the hold has been active; it is always null when has_hold is false.

ParameterTypeRequiredConstraints
user_id string yes TONIC publisher/user id, non-empty
Example request / response

Request

{"jsonrpc":"2.0","id":8,"method":"tools/call",
 "params":{"name":"get_payment_hold_status","arguments":{"user_id":"42"}}}

Response

{"data":[{"user_id":"42","has_hold":true,"since":"2026-05-01T17:00:00Z"}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

Is this ad-network site currently on the blacklist?

Ask whether a given ad-network site is on the blacklist, so you can confirm its status before it comes up in a publisher conversation.

Example questions to ask your AI assistant:

  • “Is site 123456 on the blacklist?”
  • “Check whether bad-site.com is blacklisted.”
  • “Is this site blocked on any network?”

What you get back:

Whether the site is blacklisted, plus the list of active blacklist entries that matched (network, site_id, site, comment, enforced_from). An empty list means it is not currently blacklisted.

Technical details (for developers)

Tool name: get_site_blacklist_status api-bo:read

Looks up an ad-network site by site_id or site name and reports whether it is currently blacklisted. is_blacklisted is true when at least one active blacklist entry matches. A site's site_id is only unique within one network, so the lookup matches across ALL networks; matches lists every active entry found, each carrying its network so overlapping entries across networks can be told apart. comment carries the recorded reason when present, and enforced_from shows when the block took effect. An empty matches list means the site is not currently blacklisted — there is no broader watch-list state (e.g. monitoring/warning) to infer a status from.

ParameterTypeRequiredConstraints
site string yes the site_id or site name to look up, non-empty
Example request / response

Request

{"jsonrpc":"2.0","id":7,"method":"tools/call",
 "params":{"name":"get_site_blacklist_status",
           "arguments":{"site":"bad-site.com"}}}

Response

{"data":[{"site":"bad-site.com","is_blacklisted":true,
          "matches":[{"network":"facebook","site_id":"123","site":"bad-site.com",
                      "comment":"low quality traffic","enforced_from":"2026-01-01T00:00:00"},
                     {"network":"taboola","site_id":"456","site":"bad-site.com",
                      "comment":null,"enforced_from":"2026-02-01T00:00:00"}]}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

What are this account's current payment terms?

Ask what an account's payment terms are, so you can answer a partner's question without checking a separate system.

Example questions to ask your AI assistant:

  • “What are the payment terms for account 42?”
  • “Is publisher 42 on net-45?”
  • “How many days until this account gets paid out?”

What you get back:

The account's current payment terms in net-days (e.g. 45 means net-45). Null means no payment cycle is configured for the account.

Technical details (for developers)

Tool name: get_payment_terms api-bo:read

Looks up a TONIC account and reports its current payment terms, in net-days (e.g. 15, 32, 45, 105 — the delay between earning revenue and receiving payout). payment_terms_days is null when the account has no payment cycle configured (neither an explicit value nor a tag default).

ParameterTypeRequiredConstraints
user_id string yes TONIC publisher/user id, non-empty
Example request / response

Request

{"jsonrpc":"2.0","id":8,"method":"tools/call",
 "params":{"name":"get_payment_terms","arguments":{"user_id":"42"}}}

Response

{"data":[{"user_id":"42","payment_terms_days":45}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

List a publisher's currently blocked ads, each with its stated reason.

Ask which of a publisher's ads are currently blocked and why, so you can explain the block to the publisher without a manual lookup.

Example questions to ask your AI assistant:

  • “Which of publisher 9620's ads are currently blocked?”
  • “Why are this publisher's ads blocked right now?”
  • “List the blocked ads for user 9620 with reasons, so I can explain it to them.”

What you get back:

Each currently blocked ad's id, network, campaign id and name, its compliance_class (2 or 3), the currently-in-force reason, when it was last checked, and when a pending status change takes effect, if any — plus the total count.

Technical details (for developers)

Tool name: get_publisher_blocked_ads api-bo:read

Looks up a publisher (TONIC user id) and returns every ad currently flagged non-compliant (compliance_class 2 or 3), with a reason for each. Calls the same upstream query path api-ui uses for the publisher's own v4 ad list, so compliance_class reflects any later re-check result, not just the first automated pass. reason reflects that later re-check when the ad is still blocked under it; if a pending re-check would clear the ad instead, reason falls back to the currently-in-force reason rather than showing empty. takes_effect_at, when present, is when a pending re-check result takes effect. checked_at/takes_effect_at are converted from TONIC BO's Pacific wall-clock storage to true UTC. Paginated via limit/offset; an empty result means no currently blocked ads.

ParameterTypeRequiredConstraints
user_id integer yes >= 1, the publisher's TONIC user id
limit integer no default 100, 1-1000
offset integer no default 0, for pagination
Example request / response

Request

{"jsonrpc":"2.0","id":7,"method":"tools/call",
 "params":{"name":"get_publisher_blocked_ads",
           "arguments":{"user_id":9620}}}

Response

{"data":[{"ad_id":"4294080029","network":"taboola","campaign_id":5181795,
          "campaign_name":"Sleepwear DE","compliance_class":2,
          "reason":"Misleading before/after imagery",
          "checked_at":"2026-07-20T20:05:23Z","takes_effect_at":null}],
 "pagination":{"offset":0,"limit":100,"total":1,"has_more":false}}

Which of a publisher's sites were blacklisted when they sent traffic in a window, and still are now.

Ask which of a publisher's sites that sent traffic recently are on the blacklist, so you can assess how much of their traffic touched blacklisted sites.

Example questions to ask your AI assistant:

  • “Which of publisher 5's sites that sent traffic this month are blacklisted?”
  • “Did publisher 5 send any traffic to blacklisted sites between June 1 and June 30?”
  • “How much of publisher 5's traffic in the last 2 weeks touched blacklisted sites?”

What you get back:

The publisher's sites that were blacklisted when they sent traffic in the window and are still blacklisted now, each with its network, site_id, site name, blacklist comment, enforced_from, and summed views/clicks for the window. An empty list means none of the traffic touched a site already blacklisted at the time.

Technical details (for developers)

Tool name: get_publisher_blacklisted_traffic_sites api-bo:read

Returns the publisher's sites (site_id + network, since a site_id is only unique within a network) that sent traffic during [date_from, date_till] while already blacklisted, and are still blacklisted right now. A site will NOT appear if it has since been removed from the blacklist, or if it sent traffic before being blacklisted and was only blacklisted afterwards (even if it's blacklisted today) — this re-confirms an existing block is still active, it does not discover blocks that started after the traffic occurred. views/clicks are summed over the window for that site. comment carries the recorded blacklist reason when present, and enforced_from shows when the block took effect. An empty result means none of the publisher's traffic in the window touched a site that was already blacklisted at the time. Date range is capped at 31 days (upstream limit).

ParameterTypeRequiredConstraints
user_id integer yes the publisher's TONIC user id, >= 1
date_from string (date) yes YYYY-MM-DD, inclusive
date_till string (date) yes YYYY-MM-DD, inclusive; range <= 31 days (upstream limit); must not be before date_from
Example request / response

Request

{"jsonrpc":"2.0","id":8,"method":"tools/call",
 "params":{"name":"get_publisher_blacklisted_traffic_sites",
           "arguments":{"user_id":5,"date_from":"2026-06-01","date_till":"2026-06-30"}}}

Response

{"data":[{"network":"taboola","site_id":"123","site":"bad-site.com",
          "comment":"low quality traffic","enforced_from":"2026-01-01T08:00:00Z",
          "views":500,"clicks":20}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

List PageHub publishers who haven't logged in for at least N weeks, flagged if already blocked.

Ask which publishers have been inactive for a given number of weeks, so you can follow up or clean up stale accounts.

Example questions to ask your AI assistant:

  • “Which publishers have been inactive for 8 weeks or more?”
  • “List publishers who haven't logged in for 12 weeks, and tell me which are already blocked.”

What you get back:

Each inactive publisher's user id, email, account status, whether they are already blocked, and when they last logged in — plus the total count.

Technical details (for developers)

Tool name: get_inactive_publishers api-bo:read

Returns every PageHub publisher (a TONIC user with at least one assigned PageHub domain) who logged in before but not for at least the given number of weeks. A publisher who has never logged in is not included — they haven't gone quiet, they never started. Each row also carries is_blocked so Sales can tell a publisher who's inactive and already handled (blocked) apart from one who's inactive and still needs a look (still active/pending). last_login is converted from TONIC BO's Pacific wall-clock storage to true UTC. Paginated via limit/offset; an empty result means no publisher has been inactive for that long.

ParameterTypeRequiredConstraints
weeks integer yes >= 1 and <= 520, minimum weeks since last login to count as inactive
offset integer no >= 0, default 0, pagination offset
limit integer no >= 1 and <= 1000, default 200, page size
Example request / response

Request

{"jsonrpc":"2.0","id":9,"method":"tools/call",
 "params":{"name":"get_inactive_publishers","arguments":{"weeks":8}}}

Response

{"data":[{"user_id":1,"user_email":"blocked@example.com","user_status":"blocked",
          "is_blocked":true,"last_login":"2026-01-01T08:00:00Z"},
         {"user_id":2,"user_email":"active@example.com","user_status":"active",
          "is_blocked":false,"last_login":"2026-01-15T08:00:00Z"}],
 "pagination":{"offset":0,"limit":200,"total":2,"has_more":false}}

Which PageHub domains are free to reassign — no publisher assigned at all.

Ask which domains are currently free to reassign, so you can find an available domain without checking multiple sources.

Example questions to ask your AI assistant:

  • “Which domains are free to reassign?”
  • “List domains with no publisher assigned at all.”
  • “Are there any unassigned domains available right now?”

What you get back:

Each fully unassigned domain's PageHub id, domain name, max_users capacity, and when it was created — plus the total count.

Technical details (for developers)

Tool name: get_unassigned_domains api-bo:read

Lists active PageHub domains with zero rows in pagehub_user_2_domain, i.e. no publisher assignment whatsoever. A domain that already has one or more publishers but still has an open slot (spare capacity) is NOT free in this sense and will not appear here. Paginated via offset/limit (client-side; the upstream endpoint returns the full set). An empty result means no domain is currently fully unassigned.

ParameterTypeRequiredConstraints
offset integer no default 0, for pagination
limit integer no default 200, 1-1000
Example request / response

Request

{"jsonrpc":"2.0","id":10,"method":"tools/call",
 "params":{"name":"get_unassigned_domains",
           "arguments":{}}}

Response

{"data":[{"domain":"fireball.com","pagehub_id":42,"max_users":5,
          "created":"2024-03-26T19:00:00Z"}],
 "pagination":{"offset":0,"limit":200,"total":1,"has_more":false}}

Which TONIC publisher account(s) is a PageHub domain assigned to?

Ask which account a given PageHub domain is assigned to, so an assignment question can be resolved without a manual lookup.

Example questions to ask your AI assistant:

  • “Which account is example.com assigned to?”
  • “Is example.com currently unassigned?”
  • “Is this domain assigned to more than one account?”

What you get back:

Whether the domain is currently assigned, and if so, each assigned publisher account's TONIC user id and email. An empty list means the domain is unassigned.

Technical details (for developers)

Tool name: get_domain_account_assignment api-bo:read

Looks up a PageHub domain and returns the publisher account(s) it is currently assigned to. is_assigned is true when at least one publisher is returned. A domain is usually assigned to a single publisher account, but a publisher with multiple accounts can have the same domain assigned in more than one account at once — a legitimate many-to-many relationship, not a data error — so publishers can contain more than one entry. An empty publishers list means the domain is currently unassigned.

ParameterTypeRequiredConstraints
domain string yes the PageHub domain to look up, non-empty
Example request / response

Request

{"jsonrpc":"2.0","id":9,"method":"tools/call",
 "params":{"name":"get_domain_account_assignment",
           "arguments":{"domain":"example.com"}}}

Response

{"data":[{"domain":"example.com","is_assigned":true,
          "publishers":[{"user_id":42,"user_email":"publisher@example.com"}]}],
 "pagination":{"offset":0,"limit":1,"total":1,"has_more":false}}

Which PageHub domains belonged to users who are now blocked or deactivated?

Ask which domains belonged to users who are now blocked, so you can identify domains that may be available for reassignment.

Example questions to ask your AI assistant:

  • “Which domains belonged to blocked users?”
  • “List PageHub domains owned by deactivated publishers.”
  • “Are there domains from blocked accounts that could be reassigned?”

What you get back:

Each such domain's PageHub id, domain name, owning publisher (id, email, account status), and whether it still shows recent activity — plus the total count.

Technical details (for developers)

Tool name: get_blocked_user_domains api-bo:read

Lists PageHub domains that are still assigned (via pagehub_user_2_domain) to a publisher whose account status is blocked or inactive — candidates for reassignment. Unlike get_unassigned_domains, every row here has an owning publisher; only that publisher's account is blocked/deactivated. Each row also reports has_recent_activity: whether the publisher still has an active RSoC campaign running on the domain (used as a recency proxy). Paginated via offset/limit (client-side; the upstream endpoint returns the full set).

ParameterTypeRequiredConstraints
offset integer no default 0, for pagination
limit integer no default 200, 1-1000
Example request / response

Request

{"jsonrpc":"2.0","id":11,"method":"tools/call",
 "params":{"name":"get_blocked_user_domains",
           "arguments":{}}}

Response

{"data":[{"domain":"fireball.com","pagehub_id":42,"user_id":1,
          "user_email":"publisher@example.com","user_status":"blocked",
          "has_recent_activity":false}],
 "pagination":{"offset":0,"limit":200,"total":1,"has_more":false}}

Who was assigned/unassigned to which PageHub domain, and when?

Ask whether a domain was ever assigned to someone else, which domains a user or account has (or had), or which users share a domain, by reading the assignment event history.

Example questions to ask your AI assistant:

  • “Show me the assignment history for abc.com and bloop.com. Who are they assigned to now, and were they ever assigned to someone else?”
  • “Which domains are currently assigned to user 1234, or to the Aporia account?”
  • “Which users share the domain abc.com?”

What you get back:

Each assign/unassign event's domain, publisher user and account name, which admin performed it, the action (assigned/removed), and when — plus the total count.

Technical details (for developers)

Tool name: get_domain_assignment_history api-bo:read

Lists the raw history of PageHub domain assign/unassign events (backed by the generic history table, not a dedicated assignment table), newest first. Each row is one event: the domain, the publisher user (and account name, if any), which admin performed it, and when. Filter by any combination of domain (one or more, comma-separated), domain_id, account (partial match on the publisher's "Account" tag, e.g. "Aporia"), and user_id; omit all filters to list the full history. Filtering by a single domain with no other filter, and reading which user_ids appear, answers "which users share this domain". This surfaces raw events, not a computed "current owner" — use get_unassigned_domains for "which domains are currently free". Caveat: only backoffice-admin-initiated changes are recorded — a domain assigned via the auto-assignment cron job or a direct api-bo call has no event here, so an "assigned" event with no later "removed" event does not prove a domain is still currently assigned.

ParameterTypeRequiredConstraints
domain string no one or more PageHub domain names, comma-separated, e.g. abc.com,bloop.com
domain_id integer no internal PageHub domain id, >= 1
account string no partial match on the publisher's Account tag, e.g. Aporia
user_id integer no TONIC publisher user id, >= 1
offset integer no default 0, for pagination
limit integer no default 100, 1-500
Example request / response

Request

{"jsonrpc":"2.0","id":12,"method":"tools/call",
 "params":{"name":"get_domain_assignment_history",
           "arguments":{"domain":"abc.com,bloop.com"}}}

Response

{"data":[{"user_id":42,"user_email":"publisher@example.com",
          "admin_id":7,"admin_name":"Jane Admin","domain_id":5,
          "domain":"example.com","account":"Aporia","action":"assigned",
          "created":"2026-08-05T19:00:00Z"}],
 "pagination":{"offset":0,"limit":100,"total":1,"has_more":false}}

Pre-estimation vs. 2h/final revenue of one RSoC publisher for one day, per session or grouped.

Compare a publisher's pre-estimations with the 2h or final revenue for one day, per session or by campaign, country or keyword.

Example questions to ask your AI assistant:

  • “How far off were the pre-estimations of user 858 on October 5th?”
  • “Which campaigns of user 858 had the biggest gap between pre-estimation and final revenue yesterday?”
  • “Show me the sessions of campaign 55 with the largest deviation on 2026-10-05.”

What you get back:

For each session/keyword (or campaign, country, keyword group): clicks, the pre-estimation, the revenue, which kind of revenue it is (pre, 2h, final, mixed or harmonizing), and the difference in money and percent — plus totals for the whole day and whether the day is open, being finalized or final.

Technical details (for developers)

Tool name: get_session_revenue_comparison api-bo:read

Compares the pre-estimation (available right after the click) with the newest revenue value of one RSoC publisher for one US/Pacific day, per session x keyword (default) or grouped by campaign, country and/or keyword, biggest deviation first, plus a summary over the whole day. revenue_type says what the revenue column is: pre (not preharmonized yet), 2h (preharmonized), final (day finalized), mixed (a group of an open day) or harmonizing (day marked final, final revenue not fully applied yet); day_status gives open/harmonizing/final for the whole day. RSoC has no separate 5h value — what publisher reports call "5h" is the same preharmonized value shown as 2h — and the 2h value of a finalized day is not available, so a final day compares pre against final. Cursor-paginated; a day without session stats returns a VALIDATION error on date.

ParameterTypeRequiredConstraints
user_id integer yes TONIC publisher user id >= 1
date string (date) yes YYYY-MM-DD, US/Pacific stats day; must not be in the future
campaign_ids array no campaign ids >= 1; omit for all campaigns of the user
group_by array no allowed values: campaign, country, keyword; may combine; omit for one row per session and keyword
order_by string (enum) no abs_diff (default), revenue, pre_estimation, clicks; always descending
limit integer no 1-1000, default 100
cursor string no opaque cursor from a prior response
Example request / response

Request

{"jsonrpc":"2.0","id":13,"method":"tools/call",
 "params":{"name":"get_session_revenue_comparison",
           "arguments":{"user_id":858,"date":"2026-10-05","group_by":["campaign"],"limit":1}}}

Response

{"data":[{"track_id":null,"keyword":null,"domain_id":null,"campaign_id":55,"country":null,
          "clicks":120,"pre_estimation":"30.5","revenue":"24.4","revenue_type":"final",
          "diff":"-6.1","diff_pct":"-20.0"}],
 "pagination":{"limit":1,"next_token":"eyJvIjoxLC…","has_more":true,"expires_at":null},
 "date":"2026-10-05","user_id":858,"day_status":"final",
 "summary":{"clicks":410,"pre_estimation":"101.2","revenue":"96.7","diff":"-4.5","diff_pct":"-4.45"}}

RSoC pre-estimation and preharmonization of today vs. their shadow runs vs. the final revenue, with errors and latencies.

Ask how accurate and how fast the new RSoC pre-estimation and preharmonization are compared to today's and to the final revenue.

Example questions to ask your AI assistant:

  • “How did the new pre-estimation do against the final revenue last week, per day?”
  • “Is the fast preharmonization faster and as accurate as today's for user 858?”
  • “Which campaigns have the largest error of the new pre-estimation on 2026-10-05?”

What you get back:

For each day, hour, campaign, country or publisher: clicks, the five revenues (pre-estimation today and new, preharmonization today and fast, final), the error figures of each estimate against the final and the 2h value, and how long the preharmonized values took to arrive — plus totals over the whole range and what data exists for it.

How to read the results
FieldMeaning
pre_current (A) Today's pre-estimation, available right after the click. Per click a random value drawn from the keyword × country × campaign revenue of the last 7 days and kept between the 25th and the 75th percentile, so it tends to be below the average; the campaign × country average where the keyword has no value.
pre_new (B) The new pre-estimation (MOET-1018, shadow run only): clicks × the expected revenue per click of their hour for the campaign × country, falling back to the country and then the provider value. It would be available right after the click as well.
preharm_current (C) Today's preharmonized value, the "2h" value the ad networks receive after about two hours. Clicks that are not preharmonized yet count with their pre-estimation (A). It is only captured while the day is open; days the comparison never saw open have no C.
preharm_fast (D) The fast preharmonization (MOET-1017, shadow run only), meant to be available at most 45 minutes after the click. Every feed run (every 20 minutes) spreads its new revenue of a campaign × country evenly over open clicks; clicks not served yet count with B.
final (E) The final revenue after the harmonization, usually one or two days later. The reference all estimates are measured against; empty until the day is finalized.
h3 / h6 (new_method) The two variants of B. The expected revenue per click is a moving average of the last 7 days in which older hours count less: their weight halves every 3 hours (h3, default) or every 6 hours (h6) — the half-life. h3 follows changes faster, h6 is smoother.
time-of-day factor, calibration How B is adjusted: for the typical revenue per click of the hour of the day in each country (from 14 days), and by how far B was off the preharmonized revenue on the day before (separately for new and existing campaign × country, limited to 0.5–2).
b (fast_variant) Default variant of D, coupled to Google's page views: each feed run serves as many of the oldest open clicks as Google reported new page views, converted with the page views per click estimated per campaign × country.
a20 / a30 (fast_variant) Time-based variants of D: each feed run serves all open clicks made at least 20 or 30 minutes before the run.
units The campaign × country × day combinations in the group (× hour with unit = hour). Errors are measured per unit. There is no reliable reference below campaign × country, because the feed only reports revenue at that level.
errors (estimate_vs_reference) One block per comparison, named after the estimate and its reference, e.g. pre_new_vs_final is B against E and pre_new_vs_preharm_current is B against C. Comparisons against C only count units with at least 95 % of the clicks preharmonized.
truth The reference revenue of the units in a comparison. Every percentage of that comparison is relative to it.
wape_pct Weighted absolute percentage error: the absolute deviations per unit added up and divided by truth, so units with more revenue count more. Lower is better.
bias_pct The deviations with their sign added up and divided by truth: systematic over- (positive) or underestimation (negative). Over- and underestimates cancel out, read it together with wape_pct.
within_20_pct Share of truth in units that are at most 20 % off. Higher is better.
below_minus_50_pct Share of truth in units that are underestimated by more than half. Lower is better.
preharmonized_clicks preharm_current: clicks that already have their 2h value; preharm_fast: shadow clicks the chosen variant of D has served; shadow_total: all clicks in the shadow run.
latency_minutes (p50 / p95 / max) Minutes from the click until C or D could be read: the median, the 95th percentile and the maximum. In groups wider than one hour, p50 and p95 are click-weighted averages of the hourly values, not exact percentiles of the whole group.
revenue totals Each total only covers the units that have that value, so with gaps they cover different units. Compare the error figures, not the totals.
coverage, status no_data coverage shows which data exists in the date range at all (hours with B, D and E); status no_data means there is nothing for the filters yet, e.g. before the shadow run.
Technical details (for developers)

Tool name: get_estimation_comparison api-bo:read

Evaluates the shadow run of the new RSoC estimations. Per group (day, hour, campaign, country and/or publisher) it puts five revenues of the same clicks side by side: today's pre-estimation (A), the new pre-estimation of MOET-1018 (B, method h3 or h6), today's preharmonization that the ad networks get after ~2h (C), the fast preharmonization of MOET-1017 (D, variant a20, a30 or b) and the final revenue (E, only once the day is finalized). For A/B/C/D vs. E and A/B vs. C it gives WAPE, bias, the share of revenue within ±20 % and the share more than 50 % too low, measured on campaign x country x day (or hour) units — there is no truth below campaign x country; pairs against C only count units with at least 95 % of the clicks preharmonized. It also gives how many minutes after the click C and D were readable (p50, p95, max). RSoC has no 5h value. status no_data marks a range the comparison table has nothing for yet (e.g. before the shadow run started); coverage tells which values exist. Cursor-paginated.

ParameterTypeRequiredConstraints
date_from string (date) yes YYYY-MM-DD, US/Pacific stats day; not in the future
date_till string (date) yes YYYY-MM-DD, US/Pacific; not before date_from, at most 62 days
user_id integer no TONIC publisher user id >= 1
campaign_ids array no campaign ids >= 1; omit for all
country string no two letter country code
group_by array no allowed values: day, hour, campaign, country, user; may combine; hour needs unit hour; default [day], [] for one row overall
unit string (enum) no day (default) or hour: campaign x country units the errors are measured on
new_method string (enum) no h3 (default) or h6: variant of the new pre-estimation
fast_variant string (enum) no b (default), a20 or a30: variant of the fast preharmonization
order_by string (enum) no key (default, group keys ascending) or revenue (final, else 2h value, descending)
limit integer no 1-1000, default 100
cursor string no opaque cursor from a prior response
Example request / response

Request

{"jsonrpc":"2.0","id":15,"method":"tools/call",
 "params":{"name":"get_estimation_comparison",
           "arguments":{"date_from":"2026-10-05","date_till":"2026-10-11","group_by":["day"],"limit":1}}}

Response

{"data":[{"date":"2026-10-05","hour":null,"campaign_id":null,"country":null,"user_id":null,
          "units":120,"clicks":48000,
          "revenue":{"pre_current":"11000.0","pre_new":"10200.0","preharm_current":"10100.0",
                     "preharm_fast":"10150.0","final":"10000.0"},
          "preharmonized_clicks":{"preharm_current":47000,"preharm_fast":46500,"shadow_total":48100},
          "latency_minutes":{"preharm_current":{"p50":"130.0","p95":"200.0","max":"480.0"},
                             "preharm_fast":{"p50":"40.0","p95":"60.0","max":"240.0"}},
          "errors":{"pre_new_vs_final":{"units":120,"truth":"10000.0","wape_pct":"12.0",
                                        "bias_pct":"2.0","within_20_pct":"85.0","below_minus_50_pct":"1.0"},
                    "…":"…"}}],
 "pagination":{"limit":1,"next_token":"eyJvIjoxLC…","has_more":true,"expires_at":null},
 "date_from":"2026-10-05","date_till":"2026-10-11","status":"ok","group_by":["day"],"unit":"day",
 "new_method":"h3","fast_variant":"b","order_by":"key",
 "coverage":{"rows":2880,"hours":168,"first_hour":"2026-10-05 00:00:00","last_hour":"2026-10-11 23:00:00",
             "hours_with_pre_new":168,"hours_with_preharm_fast":168,"hours_with_final":96},
 "summary":{"…":"…"}}

Publisher registration applications (pending, approved, declined) from the BO page /privileged/users/pending.

Ask which registration applications are waiting for review, were approved or declined, or what a given applicant answered.

Example questions to ask your AI assistant:

  • “Which registration applications are still pending?”
  • “Show me the declined applications submitted in September.”
  • “Did someone from Acme Media apply, and what did they answer?”

What you get back:

Each application's email, name, company, website, country, status, assigned account manager, submission and last-change time, and the IP-hash fraud check with matching users — optionally the full questionnaire — plus the total count.

Technical details (for developers)

Tool name: get_registration_applications api-bo:read

Lists the sign-up applications of prospective publishers — people who filled in the registration questionnaire but have no user account yet — newest first, exactly as the BO page /privileged/users/pending shows them in its Pending, Approved and Declined tabs. Each entry has the applicant's email, name, company, website and country from the questionnaire, the assigned account manager, the submission and last-change time (there is no separate decision date), and the BO fraud check: ip_hash_check passed/failed/pending plus the users sharing the IP hash or the (experimental) browser fingerprint. Filter by status, a case-insensitive search over email and answers, and a submission day range (US/Pacific); include_answers adds the full questionnaire. Offset-paginated. Access matches the BO page: the MCP login is only open to the productowner, accountmanager and compliance roles (superadmin always).

ParameterTypeRequiredConstraints
status string (enum) no pending, approved or declined; omit for all three
search string no 1-200 chars, case-insensitive part of the email or any answer
submitted_from string (date) no YYYY-MM-DD, US/Pacific, inclusive; not after submitted_to
submitted_to string (date) no YYYY-MM-DD, US/Pacific, inclusive
include_answers boolean no default false; adds the full questionnaire
offset integer no default 0, for pagination
limit integer no default 100, 1-500
Example request / response

Request

{"jsonrpc":"2.0","id":14,"method":"tools/call",
 "params":{"name":"get_registration_applications",
           "arguments":{"status":"pending","limit":1}}}

Response

{"data":[{"application_id":12,"email":"jane@acme.example","status":"pending",
          "submitted_at":"2026-10-07T16:30:00Z","last_modified_at":"2026-10-07T17:00:00Z",
          "account_manager_id":7,"account_manager_name":"John Smith",
          "first_name":"Jane","last_name":"Doe","company_name":"Acme Media",
          "company_website":"https://acme.example","country":"Germany",
          "ip_hash_check":"passed","users_with_same_ip_hash":[],
          "users_with_same_fingerprint":[],"answers":null}],
 "pagination":{"offset":0,"limit":1,"total":4,"has_more":true}}
Technical details (for developers) — HTTP endpoints & error contract

HTTP endpoints

PathMethodAuthPurpose
/mcp POST Bearer (OAuth) MCP protocol (streamable HTTP, stateless)
/health GET none Liveness probe (always 200)
/ready GET none Readiness probe (200 ready / 503 degraded)

Response & error contract

Successful responses are envelopes: {data, pagination} (offset pagination {offset, limit, total, has_more}, or cursor pagination {limit, next_token, has_more, expires_at}). Errors carry JSON {code, message, details?}:

  • UPSTREAM_AUTH — Upstream authentication/authorization failed
  • UPSTREAM_ERROR — Upstream API returned an error
  • UPSTREAM_TIMEOUT — Upstream API timed out
  • VALIDATION — Input failed validation
  • FORBIDDEN — Token lacks a required scope for this tool
  • INTERNAL — Unexpected internal error