Meta tools
Facebook and Instagram campaigns, ad sets, audiences, creatives, lead form results and reach estimates.
Tool names and descriptions are generated straight from the server code; the descriptions are the original English text the assistant sees.
Read tools10 tools
list_meta_ad_accounts
อ่าน1 creditsMeta ad accounts reachable with the connected Meta token: id (act_…), name, currency, status, timezone, lifetime spend, business, and which one is selected. Read only; connected=false when Meta is not linked.
This tool takes no parameters.
meta_insights_report
อ่าน2 creditsFacebook + Instagram performance (Meta Insights) at campaign, ad set or ad level for a date range, optionally broken down by age, gender, placement or device: spend, impressions, reach, frequency, clicks, CTR, CPM, CPC, conversions, revenue, ROAS (purchase_roas) and CPA (cost_per_action_type). Sort by any metric and filter with thresholds (e.g. roas_below=3 sorted by spend, cpa_above=40). Real data only.
| Parameter | Type | Description |
|---|---|---|
levelOptional | campaign | adset | ad | — |
daysOptional | integer (1–1125) | — |
start_dateOptional | string | YYYY-MM-DD |
end_dateOptional | string | YYYY-MM-DD |
breakdownOptional | none | age | gender | age_gender | publisher_platform | placement | placement_device | device | device_platform | country | region | placement = publisher_platform + platform_position; device = impression_device |
conversion_eventOptional | purchase | lead | add_to_cart | complete_registration | messaging | link_click | result type used for conversions and CPA (default purchase) |
campaign_idsOptional | array<string> | — |
adset_idsOptional | array<string> | — |
ad_idsOptional | array<string> | — |
sort_byOptional | spend | roas | cpa | conversions | revenue | frequency | reach | impressions | clicks | ctr | cpm | cpc | — |
sort_orderOptional | desc | asc | — |
min_spendOptional | number | — |
roas_belowOptional | number | — |
roas_aboveOptional | number | — |
cpa_aboveOptional | number | — |
cpa_belowOptional | number | — |
frequency_aboveOptional | number | — |
limitOptional | integer (1–500) | — |
meta_top_creatives
อ่าน2 creditsBest-performing Meta ads (creatives) in a placement such as Instagram Reels, ranked by ROAS, CPA, conversions or CTR, with creative details (thumbnail, video, Instagram permalink) and their ad set ids for duplication.
| Parameter | Type | Description |
|---|---|---|
placementOptional | string | all | reels | instagram_reels | facebook_reels | instagram_stories | instagram_feed | feed … (matched against publisher_platform:platform_position) |
metricOptional | roas | cpa | conversions | ctr | spend | revenue | — |
conversion_eventOptional | purchase | lead | add_to_cart | complete_registration | messaging | link_click | result type used for conversions and CPA (default purchase) |
daysOptional | integer (1–1125) | — |
start_dateOptional | string | YYYY-MM-DD |
end_dateOptional | string | YYYY-MM-DD |
limitOptional | integer (1–25) | — |
min_spendOptional | number | — |
campaign_idsOptional | array<string> | — |
list_meta_audiences
อ่าน1 creditsCustom and lookalike audiences of the Meta ad account: id, name, subtype, approximate size range, retention, delivery status.
This tool takes no parameters.
search_meta_interests
อ่าน1 creditsSearch Meta's interest taxonomy (targeting search) by keyword: interest id, name, path and audience size range. Use the ids in targeting.interest_ids.
| Parameter | Type | Description |
|---|---|---|
queryRequired | string | — |
limitOptional | integer (1–100) | — |
localeOptional | string | e.g. tr_TR, en_US |
meta_reach_estimate
อ่าน2 creditsEstimated audience size for a targeting set before spending (Meta delivery estimate, falling back to reach estimate): monthly active users range and daily users.
| Parameter | Type | Description |
|---|---|---|
targetingRequired | object | — |
optimization_goalOptional | string | REACH (default), LINK_CLICKS, OFFSITE_CONVERSIONS, IMPRESSIONS … |
pixel_idOptional | string | — |
custom_event_typeOptional | string | e.g. PURCHASE (with pixel_id) |
list_meta_ad_sets
อ่าน1 creditsMeta ad sets with status, daily/lifetime budget (account currency), bid, optimisation goal, targeting and schedule.
| Parameter | Type | Description |
|---|---|---|
campaign_idOptional | string | — |
adset_idsOptional | array<string> | — |
list_meta_instagram_posts
อ่าน1 creditsRecent Instagram posts of the connected Instagram business account with likes, comments and engagement, sorted by engagement — to pick a post to boost.
| Parameter | Type | Description |
|---|---|---|
instagram_user_idOptional | string | — |
limitOptional | integer (1–100) | — |
sort_byOptional | engagement | recent | — |
list_meta_lead_forms
อ่าน1 creditsLead (instant) forms of the Facebook Page with status and lead counts. Creating new lead forms is not supported.
| Parameter | Type | Description |
|---|---|---|
page_idOptional | string | — |
meta_lead_form_summary
อ่าน2 creditsLead counts for one lead form over the last N days, by day, by ad and by platform. Counts only; personal answers are never returned.
| Parameter | Type | Description |
|---|---|---|
form_idRequired | string | — |
page_idOptional | string | — |
daysOptional | integer (1–90) | — |
Write tools11 tools
select_meta_ad_account
เขียน1 creditsChoose which Meta ad account all further Meta tools work in (agency / multi-account). Only accounts the user can access are accepted.
| Parameter | Type | Description |
|---|---|---|
account_idRequired | string | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
create_meta_website_audience
เขียน2 creditsCreate a website custom audience from the Meta pixel (e.g. added to cart in the last 30 days but did not purchase). Preview and approval first; the audience populates within hours.
| Parameter | Type | Description |
|---|---|---|
nameRequired | string | — |
eventRequired | string | pixel event: AddToCart, InitiateCheckout, Purchase, ViewContent, Lead, PageView … |
retention_daysOptional | integer (1–180) | — |
exclude_eventOptional | string | e.g. Purchase for cart abandoners |
pixel_idOptional | string | — |
descriptionOptional | string | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
create_meta_lookalike_audience
เขียน2 creditsCreate a Meta lookalike audience (1–10%) of a custom audience in one or more countries. Preview and approval first.
| Parameter | Type | Description |
|---|---|---|
nameRequired | string | — |
source_audience_idRequired | string | — |
countriesRequired | array<string> | ISO codes |
ratio_percentOptional | number (1–10) | 1 = closest 1% |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
create_meta_campaign
เขียน2 creditsCreate a Meta campaign end to end (campaign + ad set + ad when a page and creative exist) as a paused draft with objective, daily budget and targeting. Writes a ledger draft and an approval item; sent to Meta only after approval.
| Parameter | Type | Description |
|---|---|---|
nameRequired | string | — |
objectiveRequired | sales | traffic | engagement | messages | awareness | — |
daily_budgetOptional | number | account currency |
goalOptional | string | — |
audienceOptional | object | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
update_meta_campaign
เขียน2 creditsChange a Meta campaign's budget (daily/lifetime), status, name, bid strategy or spend cap. Preview with before → after; budget increases above +50% per step are blocked. Applied only after approval.
| Parameter | Type | Description |
|---|---|---|
campaign_idRequired | string | Meta campaign id or Tecrube campaign id |
daily_budgetOptional | number | — |
lifetime_budgetOptional | number | — |
statusOptional | ACTIVE | PAUSED | ARCHIVED | — |
nameOptional | string | — |
bid_strategyOptional | string | LOWEST_COST_WITHOUT_CAP | LOWEST_COST_WITH_BID_CAP | COST_CAP | LOWEST_COST_WITH_MIN_ROAS |
spend_capOptional | number | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
update_meta_ad_set
เขียน2 creditsChange a Meta ad set's budget, status, targeting (locations, age, gender, interests, audiences, placements), bid or schedule. Preview and approval first; the budget guardrail applies.
| Parameter | Type | Description |
|---|---|---|
adset_idRequired | string | — |
daily_budgetOptional | number | — |
lifetime_budgetOptional | number | — |
statusOptional | ACTIVE | PAUSED | ARCHIVED | — |
nameOptional | string | — |
bid_strategyOptional | string | — |
bid_amountOptional | number | — |
targetingOptional | object | — |
start_timeOptional | string | ISO 8601 |
end_timeOptional | string | ISO 8601 |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
duplicate_meta_ad_set
เขียน2 creditsDuplicate a winning Meta ad set (with its ads) as a paused copy and give it a new interest audience, targeting or budget for a test. Preview and approval first.
| Parameter | Type | Description |
|---|---|---|
adset_idRequired | string | — |
interest_idsOptional | array<string> | replace interests, keep the rest of the targeting |
targetingOptional | object | — |
daily_budgetOptional | number | — |
nameOptional | string | — |
bid_amountOptional | number | — |
start_timeOptional | string | — |
end_timeOptional | string | — |
deep_copyOptional | boolean | — |
rename_suffixOptional | string | — |
target_campaign_idOptional | string | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
pause_meta_ad_sets_above_cpa
เขียน2 creditsFind active Meta ad sets whose CPA is above a threshold (or that spent at least the threshold with zero results), pause them in one action and move their freed daily budget to the best-CPA ad set within the +50% guardrail. Shows the list first; applied only after approval.
| Parameter | Type | Description |
|---|---|---|
cpa_thresholdRequired | number | account currency |
conversion_eventOptional | purchase | lead | add_to_cart | complete_registration | messaging | link_click | result type used for conversions and CPA (default purchase) |
daysOptional | integer (1–1125) | — |
start_dateOptional | string | YYYY-MM-DD |
end_dateOptional | string | YYYY-MM-DD |
min_spendOptional | number | — |
campaign_idsOptional | array<string> | — |
reallocateOptional | boolean | move the paused sets' daily budget to the best ad set (default true) |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
create_meta_carousel_ad
เขียน2 creditsCreate a Meta carousel ad (2–10 image cards, e.g. five product images) in an ad set for Facebook and Instagram. Studio images are uploaded to Meta (adimages). Created paused after approval.
| Parameter | Type | Description |
|---|---|---|
adset_idRequired | string | — |
nameOptional | string | — |
linkRequired | string | — |
messageOptional | string | primary text |
cardsRequired | array<object> | — |
call_to_actionOptional | LEARN_MORE | SHOP_NOW | SIGN_UP | CONTACT_US | BOOK_TRAVEL | DOWNLOAD | GET_OFFER | ORDER_NOW | SUBSCRIBE | APPLY_NOW | MESSAGE_PAGE | WHATSAPP_MESSAGE | GET_QUOTE | BUY_NOW | — |
optimize_card_orderOptional | boolean | — |
page_idOptional | string | — |
instagram_user_idOptional | string | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
create_meta_video_ad
เขียน2 creditsCreate a Meta video ad from an existing video id in an ad set (thumbnail taken from the video when not given). Created paused after approval.
| Parameter | Type | Description |
|---|---|---|
adset_idRequired | string | — |
video_idRequired | string | video id in the Meta ad account |
linkRequired | string | — |
nameOptional | string | — |
messageOptional | string | — |
titleOptional | string | — |
call_to_actionOptional | LEARN_MORE | SHOP_NOW | SIGN_UP | CONTACT_US | BOOK_TRAVEL | DOWNLOAD | GET_OFFER | ORDER_NOW | SUBSCRIBE | APPLY_NOW | MESSAGE_PAGE | WHATSAPP_MESSAGE | GET_QUOTE | BUY_NOW | — |
thumbnail_urlOptional | string | — |
page_idOptional | string | — |
instagram_user_idOptional | string | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.
boost_instagram_post
เขียน2 creditsTurn an existing Instagram post (source_instagram_media_id) or Facebook Page post (object_story_id) into an ad in an ad set; pick_best chooses the most engaging recent Instagram post. Preview and approval first; created paused.
| Parameter | Type | Description |
|---|---|---|
adset_idRequired | string | — |
instagram_media_idOptional | string | — |
pick_bestOptional | boolean | use the most engaging recent Instagram post |
lookback_postsOptional | integer (1–100) | — |
facebook_post_idOptional | string | {page_id}_{post_id} to boost a Page post instead |
linkOptional | string | — |
call_to_actionOptional | LEARN_MORE | SHOP_NOW | SIGN_UP | CONTACT_US | BOOK_TRAVEL | DOWNLOAD | GET_OFFER | ORDER_NOW | SUBSCRIBE | APPLY_NOW | MESSAGE_PAGE | WHATSAPP_MESSAGE | GET_QUOTE | BUY_NOW | — |
nameOptional | string | — |
instagram_user_idOptional | string | — |
page_idOptional | string | — |
Write tool: the call first produces a preview; the change reaches the platform only after you approve it.