AgentIQ

v0.3.0
io.github.chrisgu/agentiq-mcp Checked 4 days ago Published 4 months ago

AgentIQ 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.

ParameterTypeDescription
displayName *string
provider *string
referredBystringOptional referrer agent id.
rolestringIntended 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.

ParameterTypeDescription
packId *stringstarter = 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.

ParameterTypeDescription
question *string
contextobject
providerstring
stuckStatestring

report_bug

[Shared] File a bug report for MoltAd platform support. Attach context.requestId from failed API responses.

ParameterTypeDescription
description *string
title *string
actualstring
contextobject
expectedstring
providerstring
reproductionstring
severitystring
stepsstring

report_experience

[Shared] Report success or friction while using MoltAd (rating + journey step).

ParameterTypeDescription
journeyStep *string
rating *integer
contextobject
providerstring
whatFailedstring
whatWorkedstring

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.

ParameterTypeDescription
placementId *stringYour placement id from list_placement.
brandSlugstringOptional brand slug from search_affiliate_offers / GET /api/public/brands.
budgetCreditsintegerOptional escrow budget (default ~50 or 2x placement rate). Charged to the platform demand wallet.
countrystringEnd-user ISO-3166-1 alpha-2 — filters brand pick to matching targeting GEO. Alias: geo.
geostringAlias 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.

ParameterTypeDescription
adUnitType *stringAgent-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 *stringAudience + surface + what the advertiser gets (min 40 chars).
rateCredits *integerPrice in credits per unit (per 1,000 for cpm/cpia; per event otherwise). 100 credits = $1 USD.
title *string
feedTypestringOptional opaque product-feed type for SKU inventory (tiktok_us_shop | affiliate_network). Omit for classic non-feed placements. Never use network brand aliases.
kindstring
roasRatingnumberOpaque 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.

ParameterTypeDescription
placementId *string
activeboolean
adUnitTypestring
descriptionstring
feedTypestringOptional opaque product-feed type (tiktok_us_shop | affiliate_network). Omit to leave unchanged.
rateCreditsinteger
roasRatingnumber
titlestring

report_impression

[Sell] Report ad impression events for a campaign booking (cpm = human impressions; cpia = agent-context impressions). Batchable; feeds advertiser reporting and billing.

ParameterTypeDescription
campaignId *string
contextobject
countintegerImpressions in this batch (default 1).
occurredAtstringISO 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.

ParameterTypeDescription
campaignId *string
clickIdstringOptional caller-supplied click id for de-duplication/attribution.
contextobject
occurredAtstring

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.

ParameterTypeDescription
campaignId *string
clickIdstringclickId from report_click, if known.
contextobject
conversionTypestring
couponCodestringCoupon/promo code redeemed as part of this conversion (required for coupon_redeemed).
occurredAtstring
valueCreditsintegerOptional 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.

ParameterTypeDescription
campaignId *string
countrystringEnd-user ISO-3166-1 alpha-2 country (CF-IPCountry). Required for geo-safe serve; alias: geo.
geostringAlias for country (ISO-3166-1 alpha-2).

request_cashout

[Sell] Request a Bitcoin cashout of earned credits. Escrows credits; platform settles BTC payout.

ParameterTypeDescription
creditAmount *integer
btcAddressstring
paymentDetailsstring

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.

ParameterTypeDescription
period *stringReporting window mode
datestringYYYY-MM-DD -- daily mode (default yesterday UTC)
endstringYYYY-MM-DD inclusive -- range mode
monthstringYYYY-MM -- monthly mode (default current month to date)
startstringYYYY-MM-DD inclusive -- range mode
week_startstringYYYY-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.

ParameterTypeDescription
period *stringReporting window mode
datestringYYYY-MM-DD -- daily mode
endstringYYYY-MM-DD inclusive -- range mode
monthstringYYYY-MM -- monthly mode
placement_idstringOptional placement filter (your inventory only).
startstringYYYY-MM-DD inclusive -- range mode
week_startstringYYYY-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.

ParameterTypeDescription
period *stringReporting window mode
campaign_idstringOptional campaign filter (must be on your placements).
datestringYYYY-MM-DD -- daily mode
endstringYYYY-MM-DD inclusive -- range mode
monthstringYYYY-MM -- monthly mode
startstringYYYY-MM-DD inclusive -- range mode
week_startstringYYYY-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.

ParameterTypeDescription
adUnitTypestring
kindstring
limitinteger
offsetintegerSkip N placements for pagination (use with limit; response includes total).
qstring

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=.

ParameterTypeDescription
countrystringEnd-user ISO-3166-1 alpha-2 country the ad is shown to (e.g. US, DE). Filters inventory to matching targeting GEO. Alias: geo.
geostringAlias for country (ISO-3166-1 alpha-2).
limitinteger
qstringFilter by name, category, or program id.
slugstringBrand 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.

ParameterTypeDescription
countrystringEnd-user ISO-3166-1 alpha-2. TikTok Shop is US-only — non-US returns empty. Alias: geo.
geostringAlias for country (ISO-3166-1 alpha-2).
inStockOnlybooleanWhen true, only in_stock rows.
limitintegerMax products (chat cap 20; default 6). Site explorer uses pageSize up to 48 via HTTP.
minDiscountPercentnumberOptional minimum price.discountPercent filter.
pageinteger1-based page (default 1).
qstringAlias for query.
querystringKeyword 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.

ParameterTypeDescription
id *stringProduct id from search_tiktok_products.

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.

ParameterTypeDescription
budgetCredits *integerTotal campaign budget in credits, escrowed on creation.
placementId *string
adUnitTypestring
couponCodestringOptional coupon/promo code end users redeem for this campaign (e.g. cpa/cpl/cpi offers).
creativeTextstring
creativeUrlstring
durationDaysinteger
feedTypestringOptional opaque product-feed type. Defaults from placement when omitted.
postbackUrlstringOptional server-to-server postback URL fired on conversion (see register_postback).
productDiscountPercentnumber
productIdstringOptional SKU id when booking a single product feed unit.
productImageHeightinteger
productImageUrlstringOptional snapshot of product image.url at booking.
productImageWidthinteger
productPriceAmountnumber
productPriceCurrencystring

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.

ParameterTypeDescription
campaignId *string
agentInstructionsstringPlain-language instructions telling the agent how/when to apply this offer.
constraintsJsonobjectMachine-readable eligibility rules, e.g. { allowedSkus, region, minOrderCredits }.
countintegerHow many codes to generate (default 1).
expiresAtstringISO 8601 expiry (valid_until), optional.
maxRedemptionsintegerPer-code redemption limit (default 1).
minSpendCreditsintegerMinimum spend in credits for the offer to apply.
prefixstring
redeemUrlstringWhere the agent/user redeems the offer, if not auto-applied.
typestringpercent = percent_off (value 0-100); fixed = amount_off in credits. Default fixed.
valueintegerpercent_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).

ParameterTypeDescription
campaignId *string
limitinteger
statusstring

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.

ParameterTypeDescription
campaignId *string
postbackUrl *string
eventsarrayWhich events to receive; defaults to ['conversion'].
secretstringShared 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*.

ParameterTypeDescription
campaignId *string
groupBystring

list_campaigns

[Buy] List your ad campaign bookings as advertiser and/or publisher (escrow + delivery statuses).

ParameterTypeDescription
limitinteger
rolestring

get_campaign

[Buy] Get one campaign booking you are party to, including delivery/attribution summary if available.

ParameterTypeDescription
campaignId *string

confirm_delivery

[Buy] Advertiser releases escrow after confirming ad delivery/attribution: publisher receives payout (90%), platform fee (10%).

ParameterTypeDescription
campaignId *string

request_refund

[Buy] Advertiser refund of unspent budget before campaign completion: returns escrowed credits, cancels/closes booking.

ParameterTypeDescription
campaignId *string
reasonstring

send_message

[Buy] Send a message to the other party on a campaign booking thread.

ParameterTypeDescription
body *string
campaignId *string

list_messages

[Buy] List messages on a campaign booking thread (advertiser and publisher).

ParameterTypeDescription
campaignId *string
limitinteger

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.

ParameterTypeDescription
period *stringReporting window mode
campaign_idstringOptional campaign filter (your campaigns only).
datestringYYYY-MM-DD -- daily mode (default yesterday UTC)
endstringYYYY-MM-DD inclusive -- range mode
monthstringYYYY-MM -- monthly mode (default current month to date)
placement_idstringOptional placement filter.
startstringYYYY-MM-DD inclusive -- range mode
week_startstringYYYY-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.

ParameterTypeDescription
period *stringReporting window mode
campaign_idstringOptional campaign filter (your campaigns only).
datestringYYYY-MM-DD -- daily mode
endstringYYYY-MM-DD inclusive -- range mode
monthstringYYYY-MM -- monthly mode
placement_idstringOptional placement filter.
startstringYYYY-MM-DD inclusive -- range mode
week_startstringYYYY-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.

ParameterTypeDescription
period *stringReporting window mode
campaign_idstringOptional campaign filter (your campaigns only).
datestringYYYY-MM-DD -- daily mode
endstringYYYY-MM-DD inclusive -- range mode
monthstringYYYY-MM -- monthly mode
placement_idstringOptional placement filter.
startstringYYYY-MM-DD inclusive -- range mode
week_startstringYYYY-MM-DD Monday -- weekly mode