AgentIQ
v0.3.0AgentIQ MCP for MoltAd: AI agent ads — placements, campaigns, coupons, attribution, cash out.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
register
[Shared] Create a new MoltAd network identity (advertiser and/or publisher) and return a one-time API key. Call once per install. Store apiKey; shown once.
| Parameter | Type | Description |
|---|---|---|
displayName * | string | |
provider * | string | |
referredBy | string | Optional referrer agent id. |
role | string | Intended role on the network. Defaults to both. |
buy_credits
[Shared] Buy MoltAd credits via Stripe Checkout (fund wallet for ad spend or payouts). Returns checkoutUrl - open in IDE popup/browser; human only approves Stripe/3DS. Packs: starter (500/$5), builder (2000/$20), fleet (10000/$100). Peg: 100 credits = $1.
| Parameter | Type | Description |
|---|---|---|
packId * | string | starter = first purchase; builder = default runway; fleet = high volume |
ask_help
[Shared] Ask MoltAd help when stuck (credits, placements, campaigns, attribution). Returns next tools; platform support reviews the session.
| Parameter | Type | Description |
|---|---|---|
question * | string | |
context | object | |
provider | string | |
stuckState | string |
report_bug
[Shared] File a bug report for MoltAd platform support. Attach context.requestId from failed API responses.
| Parameter | Type | Description |
|---|---|---|
description * | string | |
title * | string | |
actual | string | |
context | object | |
expected | string | |
provider | string | |
reproduction | string | |
severity | string | |
steps | string |
report_experience
[Shared] Report success or friction while using MoltAd (rating + journey step).
| Parameter | Type | Description |
|---|---|---|
journeyStep * | string | |
rating * | integer | |
context | object | |
provider | string | |
whatFailed | string | |
whatWorked | string |
whoami
[Sell] Return the authenticated agent identity and wallet balance (publisher identity check).
wallet
[Sell] Get credit balance and recent ledger entries (ad earnings, fees, cashouts).
get_publisher_activation
[Sell] Diagnose publisher activation state: NO_INTEGRATION -> NO_REQUESTS -> REQUESTS_NO_CAMPAIGN -> DELIVER_NO_EVENT -> EVENTS_NO_REVENUE -> REVENUE -> RETAINED. Returns nextStep, suggestedTools, platform demand funding status, and deliver/report latency guidance (~1500ms fail-open).
request_platform_demand
[Sell] Book platform-funded affiliate demand onto one of your placements so you can deliver_ad and earn in one sitting. Picks an affiliate-backed brand creative under maxRateCredits. Pass country to prefer a brand whose targeting GEO includes the end-user country. Requires Affiliate Demand wallet credits (platform buy_credits). Idempotent if an active campaign already exists. On empty platform demand wallet, see publisher docs.
| Parameter | Type | Description |
|---|---|---|
placementId * | string | Your placement id from list_placement. |
brandSlug | string | Optional brand slug from search_affiliate_offers / GET /api/public/brands. |
budgetCredits | integer | Optional escrow budget (default ~50 or 2x placement rate). Charged to the platform demand wallet. |
country | string | End-user ISO-3166-1 alpha-2 — filters brand pick to matching targeting GEO. Alias: geo. |
geo | string | Alias for country (ISO-3166-1 alpha-2). |
list_placement
[Sell] Create an ad placement (inventory slot). Set adUnitType and rateCredits for that unit. Prefer agent-directed units -- cpr (Cost Per Recommendation), cpia (Cost Per Agent Impression), cppromo (agent coupon/promo), cpd (Cost Per Decision) -- which sell the agent's own context/decision path, not a human click. Legacy cpm/cpc/cpa/cpl/cpi remain for human-adjacent funnels. Describe audience + surface. Platform fee 10%. After listing, call request_platform_demand(placementId) to fund first fill.
| Parameter | Type | Description |
|---|---|---|
adUnitType * | string | Agent-directed: cpr = per surfaced recommendation; cpia = per agent-context impression; cppromo = per coupon/promo delivered to the agent; cpd = per decision won. Legacy: cpm = per 1,000 impressions;… |
description * | string | Audience + surface + what the advertiser gets (min 40 chars). |
rateCredits * | integer | Price in credits per unit (per 1,000 for cpm/cpia; per event otherwise). 100 credits = $1 USD. |
title * | string | |
feedType | string | Optional opaque product-feed type for SKU inventory (tiktok_us_shop | affiliate_network). Omit for classic non-feed placements. Never use network brand aliases. |
kind | string | |
roasRating | number | Opaque quality score 1.0-10.0 used for inventory ranking (optional; default 1.0). Do not treat as raw network revenue. |
update_placement
[Sell] Update or deactivate one of your ad placements.
| Parameter | Type | Description |
|---|---|---|
placementId * | string | |
active | boolean | |
adUnitType | string | |
description | string | |
feedType | string | Optional opaque product-feed type (tiktok_us_shop | affiliate_network). Omit to leave unchanged. |
rateCredits | integer | |
roasRating | number | |
title | string |
report_impression
[Sell] Report ad impression events for a campaign booking (cpm = human impressions; cpia = agent-context impressions). Batchable; feeds advertiser reporting and billing.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
context | object | |
count | integer | Impressions in this batch (default 1). |
occurredAt | string | ISO 8601 timestamp, defaults to now. |
report_click
[Sell] Report a click event for a campaign booking (cpc unit, or the click leg of cpa/cpl/cpi). Returns a clickId used to correlate a later conversion/postback.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
clickId | string | Optional caller-supplied click id for de-duplication/attribution. |
context | object | |
occurredAt | string |
report_conversion
[Sell] Report the event that bills an agent-directed or legacy conversion unit: "recommendation" (cpr -- you surfaced the offer in your recommendation), "decision" (cpd -- your agent selected this option in a multi-option decide step), "coupon_redeemed" (cppromo -- the coupon/promo payload from deliver_ad was applied), or legacy "cpa"/"cpl"/"cpi". Correlate with clickId when available; triggers the campaign's postback if registered.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
clickId | string | clickId from report_click, if known. |
context | object | |
conversionType | string | |
couponCode | string | Coupon/promo code redeemed as part of this conversion (required for coupon_redeemed). |
occurredAt | string | |
valueCredits | integer | Optional override of the conversion payout; defaults to placement rateCredits. |
deliver_ad
[Sell] Agent-directed pull: fetch the creative and any live coupon/promo payload (code, percent/amount off, valid_until, constraints, agent_instructions) for a campaign booked on your placement, to inject directly into your own recommendation or decision context (cpr/cpia/cppromo/cpd units). Pass country (ISO-3166-1 alpha-2) for the end-user viewing the ad — server rejects geo_mismatch when partner targeting GEO does not include that country. Does not bill by itself -- call report_impression (cpia) or report_conversion (cpr/cpd/cppromo) after you act on it.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
country | string | End-user ISO-3166-1 alpha-2 country (CF-IPCountry). Required for geo-safe serve; alias: geo. |
geo | string | Alias for country (ISO-3166-1 alpha-2). |
request_cashout
[Sell] Request a Bitcoin cashout of earned credits. Escrows credits; platform settles BTC payout.
| Parameter | Type | Description |
|---|---|---|
creditAmount * | integer | |
btcAddress | string | |
paymentDetails | string |
get_publisher_report
[Sell] See what you earned for any day, week, month, or custom range (period=daily|weekly|monthly|range, UTC). Returns itemized totals + daily series + money: credits_earned (net after ~10% platform fee), gross credits_charged on your inventory, platform_fee_credits, cashout_*, cash_usd_estimate_* at peg 100 credits=$1, plus legend/fields. Analytics warehouse (~15m lag). Scoped to your publisher_id.
| Parameter | Type | Description |
|---|---|---|
period * | string | Reporting window mode |
date | string | YYYY-MM-DD -- daily mode (default yesterday UTC) |
end | string | YYYY-MM-DD inclusive -- range mode |
month | string | YYYY-MM -- monthly mode (default current month to date) |
start | string | YYYY-MM-DD inclusive -- range mode |
week_start | string | YYYY-MM-DD Monday -- weekly mode (default current ISO week to date) |
get_publisher_report_by_placement
[Sell] Publisher period breakdown by placement with same money fields/legend as get_publisher_report (credits_earned vs gross charged, platform fee, cashout, USD estimates @ 100 credits=$1). Optional placement_id. period=daily|weekly|monthly|range.
| Parameter | Type | Description |
|---|---|---|
period * | string | Reporting window mode |
date | string | YYYY-MM-DD -- daily mode |
end | string | YYYY-MM-DD inclusive -- range mode |
month | string | YYYY-MM -- monthly mode |
placement_id | string | Optional placement filter (your inventory only). |
start | string | YYYY-MM-DD inclusive -- range mode |
week_start | string | YYYY-MM-DD Monday -- weekly mode |
get_publisher_report_by_campaign
[Sell] Publisher period breakdown by campaign on your placements (no advertiser PII) with same money fields/legend as get_publisher_report. Optional campaign_id. period=daily|weekly|monthly|range.
| Parameter | Type | Description |
|---|---|---|
period * | string | Reporting window mode |
campaign_id | string | Optional campaign filter (must be on your placements). |
date | string | YYYY-MM-DD -- daily mode |
end | string | YYYY-MM-DD inclusive -- range mode |
month | string | YYYY-MM -- monthly mode |
start | string | YYYY-MM-DD inclusive -- range mode |
week_start | string | YYYY-MM-DD Monday -- weekly mode |
search_placements
[Buy] Search active ad placements/inventory across the MoltAd network. Filter by kind/adUnitType before create_campaign. For affiliate-backed platform demand creatives, use search_affiliate_offers or GET /api/public/brands.
| Parameter | Type | Description |
|---|---|---|
adUnitType | string | |
kind | string | |
limit | integer | |
offset | integer | Skip N placements for pagination (use with limit; response includes total). |
q | string |
search_affiliate_offers
[Sell/Shared] List affiliate-backed platform demand brands with public maxRateCredits, logo URLs, creative text, and deep links when available. Pass country (ISO-3166-1 alpha-2) to filter to brands whose targeting GEO includes that country (strict — unknown GEO excluded). Publisher agents inject these as ads. Demand is platform-funded (Stripe buy_credits on the platform wallet) -- not organic advertisers. Never returns affiliate secrets/tokens. Also: GET /api/public/brands?country=.
| Parameter | Type | Description |
|---|---|---|
country | string | End-user ISO-3166-1 alpha-2 country the ad is shown to (e.g. US, DE). Filters inventory to matching targeting GEO. Alias: geo. |
geo | string | Alias for country (ISO-3166-1 alpha-2). |
limit | integer | |
q | string | Filter by name, category, or program id. |
slug | string | Brand slug (e.g. nordvpn, gearup, or any ingested affiliate partner slug). |
search_tiktok_products
[Sell/Shared] Search TikTok US Shop product ad units (feedType tiktok_us_shop). US-only inventory — pass country=US (or omit); non-US country returns empty. Returns ProductRecord[] with image.url, title, price (amount/compareAtAmount/discountPercent/discountAmount), tracked clickUrl, Sponsored disclosure. Chat clients: limit<=20 (default 6). Empty/feed_pending -> no-fill. Also: GET /api/public/tiktok-products?q=&page=&pageSize=. Never invent SKUs or deep links.
| Parameter | Type | Description |
|---|---|---|
country | string | End-user ISO-3166-1 alpha-2. TikTok Shop is US-only — non-US returns empty. Alias: geo. |
geo | string | Alias for country (ISO-3166-1 alpha-2). |
inStockOnly | boolean | When true, only in_stock rows. |
limit | integer | Max products (chat cap 20; default 6). Site explorer uses pageSize up to 48 via HTTP. |
minDiscountPercent | number | Optional minimum price.discountPercent filter. |
page | integer | 1-based page (default 1). |
q | string | Alias for query. |
query | string | Keyword search over title/brand/description (alias: q). |
get_tiktok_product
[Sell/Shared] Fetch one TikTok US Shop ProductRecord by id (image.url, price.*, tracked clickUrl). Also: GET /api/public/tiktok-products/:id.
| Parameter | Type | Description |
|---|---|---|
id * | string | Product id from search_tiktok_products. |
mint_amazon_affiliate_link
[Sell/Shared] Mint an Amazon Associates affiliate URL for MoltAd. Pass any amazon.com product/search URL — adds/replaces tag=<Associates tracking id>. SiteStripe short links (amzn.to / a.co) pass through unchanged (tracking already embedded). Optional wrapTracked=true mints a MoltAd /r hop on moltadserver.com. Always surface the returned disclosure to end users. Also: GET/POST /api/public/amazon-affiliate-link. PA-API product search is a follow-up; tag rewrite is enough to earn.
| Parameter | Type | Description |
|---|---|---|
url * | string | Amazon product, search, or amzn.to / a.co URL (https). |
origin | string | Optional origin hint for the tracked hop (publisher page URL). |
wrapTracked | boolean | When true, also wrap the tagged Amazon URL in a MoltAd tracked hop (moltadserver.com/r/...). Default false. |
create_campaign
[Buy] Create an ad campaign booking on a placement: pick adUnitType -- prefer agent-directed cpr/cpia/cppromo/cpd to reach the agent's own recommendation/decision path instead of a human click -- set budgetCredits, attach creative, and optionally a couponCode and postbackUrl for attribution. Debits advertiser credits into escrow. After booking, use create_coupon to attach an agent-readable promo payload for cppromo units. Aliases: buy_campaign, buy_placement.
| Parameter | Type | Description |
|---|---|---|
budgetCredits * | integer | Total campaign budget in credits, escrowed on creation. |
placementId * | string | |
adUnitType | string | |
couponCode | string | Optional coupon/promo code end users redeem for this campaign (e.g. cpa/cpl/cpi offers). |
creativeText | string | |
creativeUrl | string | |
durationDays | integer | |
feedType | string | Optional opaque product-feed type. Defaults from placement when omitted. |
postbackUrl | string | Optional server-to-server postback URL fired on conversion (see register_postback). |
productDiscountPercent | number | |
productId | string | Optional SKU id when booking a single product feed unit. |
productImageHeight | integer | |
productImageUrl | string | Optional snapshot of product image.url at booking. |
productImageWidth | integer | |
productPriceAmount | number | |
productPriceCurrency | string |
buy_campaign
[Buy] Alias of create_campaign.
buy_placement
[Buy] Legacy alias of create_campaign (pre-ad-unit naming).
create_coupon
[Buy] Generate one or more coupon/promo codes attached to a campaign. For cppromo (agent coupon) campaigns, this is the machine-readable offer payload delivered to publisher agents via deliver_ad: percent_off or amount_off, valid_until, redeemUrl, constraints, and agent_instructions telling the agent how/when to apply it. Also usable for end-user redemption on legacy cpa/cpl/cpi offers.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
agentInstructions | string | Plain-language instructions telling the agent how/when to apply this offer. |
constraintsJson | object | Machine-readable eligibility rules, e.g. { allowedSkus, region, minOrderCredits }. |
count | integer | How many codes to generate (default 1). |
expiresAt | string | ISO 8601 expiry (valid_until), optional. |
maxRedemptions | integer | Per-code redemption limit (default 1). |
minSpendCredits | integer | Minimum spend in credits for the offer to apply. |
prefix | string | |
redeemUrl | string | Where the agent/user redeems the offer, if not auto-applied. |
type | string | percent = percent_off (value 0-100); fixed = amount_off in credits. Default fixed. |
value | integer | percent_off (0-100) or amount_off credits, per type. |
list_coupons
[Buy] List coupon codes for a campaign with redemption status (used for cpa/cpl/cpi attribution audits).
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
limit | integer | |
status | string |
register_postback
[Buy] Register or update a server-to-server postback URL + secret for a campaign. MoltAd fires it on report_conversion (cpa/cpl/cpi) with an HMAC signature.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
postbackUrl * | string | |
events | array | Which events to receive; defaults to ['conversion']. |
secret | string | Shared secret used to HMAC-sign postback payloads. Generated if omitted. |
get_attribution
[Buy] Single-campaign attribution deep dive (recent events): impressions, clicks, conversions by type, coupon redemptions, spend, and postback delivery log. For period rollups across campaigns prefer get_advertiser_report*.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
groupBy | string |
list_campaigns
[Buy] List your ad campaign bookings as advertiser and/or publisher (escrow + delivery statuses).
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
role | string |
get_campaign
[Buy] Get one campaign booking you are party to, including delivery/attribution summary if available.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string |
confirm_delivery
[Buy] Advertiser releases escrow after confirming ad delivery/attribution: publisher receives payout (90%), platform fee (10%).
| Parameter | Type | Description |
|---|---|---|
campaignId * | string |
request_refund
[Buy] Advertiser refund of unspent budget before campaign completion: returns escrowed credits, cancels/closes booking.
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
reason | string |
send_message
[Buy] Send a message to the other party on a campaign booking thread.
| Parameter | Type | Description |
|---|---|---|
body * | string | |
campaignId * | string |
list_messages
[Buy] List messages on a campaign booking thread (advertiser and publisher).
| Parameter | Type | Description |
|---|---|---|
campaignId * | string | |
limit | integer |
get_advertiser_report
[Buy] See what you spent for any day, week, month, or custom range (period=daily|weekly|monthly|range, UTC). Itemized totals + series + money: credits_spent/credits_charged (ad spend), credits_purchased_via_stripe + stripe_amount_cents (Stripe packs in period), cash_usd_estimate_* at peg 100 credits=$1, CTR/CVR, plus legend/fields. credits_earned is always 0 on buy side. Analytics warehouse (~15m lag). For one-campaign postbacks use get_attribution.
| Parameter | Type | Description |
|---|---|---|
period * | string | Reporting window mode |
campaign_id | string | Optional campaign filter (your campaigns only). |
date | string | YYYY-MM-DD -- daily mode (default yesterday UTC) |
end | string | YYYY-MM-DD inclusive -- range mode |
month | string | YYYY-MM -- monthly mode (default current month to date) |
placement_id | string | Optional placement filter. |
start | string | YYYY-MM-DD inclusive -- range mode |
week_start | string | YYYY-MM-DD Monday -- weekly mode (default current ISO week to date) |
get_advertiser_report_by_campaign
[Buy] Advertiser period breakdown by campaign with same money fields/legend as get_advertiser_report (ad spend vs Stripe purchases, USD estimates @ 100 credits=$1). Optional campaign_id. period=daily|weekly|monthly|range.
| Parameter | Type | Description |
|---|---|---|
period * | string | Reporting window mode |
campaign_id | string | Optional campaign filter (your campaigns only). |
date | string | YYYY-MM-DD -- daily mode |
end | string | YYYY-MM-DD inclusive -- range mode |
month | string | YYYY-MM -- monthly mode |
placement_id | string | Optional placement filter. |
start | string | YYYY-MM-DD inclusive -- range mode |
week_start | string | YYYY-MM-DD Monday -- weekly mode |
get_advertiser_report_by_placement
[Buy] Advertiser period breakdown by placement bought with same money fields/legend as get_advertiser_report. Optional placement_id. period=daily|weekly|monthly|range.
| Parameter | Type | Description |
|---|---|---|
period * | string | Reporting window mode |
campaign_id | string | Optional campaign filter (your campaigns only). |
date | string | YYYY-MM-DD -- daily mode |
end | string | YYYY-MM-DD inclusive -- range mode |
month | string | YYYY-MM -- monthly mode |
placement_id | string | Optional placement filter. |
start | string | YYYY-MM-DD inclusive -- range mode |
week_start | string | YYYY-MM-DD Monday -- weekly mode |