Tecrübetecrube.com
Tool reference — Ads

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

Leitura1 credits

Meta 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

Leitura2 credits

Facebook + 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.

ParameterTypeDescription
levelOptionalcampaign | adset | ad—
daysOptionalinteger (1–1125)—
start_dateOptionalstringYYYY-MM-DD
end_dateOptionalstringYYYY-MM-DD
breakdownOptionalnone | age | gender | age_gender | publisher_platform | placement | placement_device | device | device_platform | country | regionplacement = publisher_platform + platform_position; device = impression_device
conversion_eventOptionalpurchase | lead | add_to_cart | complete_registration | messaging | link_clickresult type used for conversions and CPA (default purchase)
campaign_idsOptionalarray<string>—
adset_idsOptionalarray<string>—
ad_idsOptionalarray<string>—
sort_byOptionalspend | roas | cpa | conversions | revenue | frequency | reach | impressions | clicks | ctr | cpm | cpc—
sort_orderOptionaldesc | asc—
min_spendOptionalnumber—
roas_belowOptionalnumber—
roas_aboveOptionalnumber—
cpa_aboveOptionalnumber—
cpa_belowOptionalnumber—
frequency_aboveOptionalnumber—
limitOptionalinteger (1–500)—

meta_top_creatives

Leitura2 credits

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

ParameterTypeDescription
placementOptionalstringall | reels | instagram_reels | facebook_reels | instagram_stories | instagram_feed | feed … (matched against publisher_platform:platform_position)
metricOptionalroas | cpa | conversions | ctr | spend | revenue—
conversion_eventOptionalpurchase | lead | add_to_cart | complete_registration | messaging | link_clickresult type used for conversions and CPA (default purchase)
daysOptionalinteger (1–1125)—
start_dateOptionalstringYYYY-MM-DD
end_dateOptionalstringYYYY-MM-DD
limitOptionalinteger (1–25)—
min_spendOptionalnumber—
campaign_idsOptionalarray<string>—

list_meta_audiences

Leitura1 credits

Custom 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

Leitura1 credits

Search Meta's interest taxonomy (targeting search) by keyword: interest id, name, path and audience size range. Use the ids in targeting.interest_ids.

ParameterTypeDescription
queryRequiredstring—
limitOptionalinteger (1–100)—
localeOptionalstringe.g. tr_TR, en_US

meta_reach_estimate

Leitura2 credits

Estimated audience size for a targeting set before spending (Meta delivery estimate, falling back to reach estimate): monthly active users range and daily users.

ParameterTypeDescription
targetingRequiredobject—
optimization_goalOptionalstringREACH (default), LINK_CLICKS, OFFSITE_CONVERSIONS, IMPRESSIONS …
pixel_idOptionalstring—
custom_event_typeOptionalstringe.g. PURCHASE (with pixel_id)

list_meta_ad_sets

Leitura1 credits

Meta ad sets with status, daily/lifetime budget (account currency), bid, optimisation goal, targeting and schedule.

ParameterTypeDescription
campaign_idOptionalstring—
adset_idsOptionalarray<string>—

list_meta_instagram_posts

Leitura1 credits

Recent Instagram posts of the connected Instagram business account with likes, comments and engagement, sorted by engagement — to pick a post to boost.

ParameterTypeDescription
instagram_user_idOptionalstring—
limitOptionalinteger (1–100)—
sort_byOptionalengagement | recent—

list_meta_lead_forms

Leitura1 credits

Lead (instant) forms of the Facebook Page with status and lead counts. Creating new lead forms is not supported.

ParameterTypeDescription
page_idOptionalstring—

meta_lead_form_summary

Leitura2 credits

Lead counts for one lead form over the last N days, by day, by ad and by platform. Counts only; personal answers are never returned.

ParameterTypeDescription
form_idRequiredstring—
page_idOptionalstring—
daysOptionalinteger (1–90)—

Write tools11 tools

select_meta_ad_account

Escrita1 credits

Choose which Meta ad account all further Meta tools work in (agency / multi-account). Only accounts the user can access are accepted.

ParameterTypeDescription
account_idRequiredstring—

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.

create_meta_website_audience

Escrita2 credits

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

ParameterTypeDescription
nameRequiredstring—
eventRequiredstringpixel event: AddToCart, InitiateCheckout, Purchase, ViewContent, Lead, PageView …
retention_daysOptionalinteger (1–180)—
exclude_eventOptionalstringe.g. Purchase for cart abandoners
pixel_idOptionalstring—
descriptionOptionalstring—

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.

create_meta_lookalike_audience

Escrita2 credits

Create a Meta lookalike audience (1–10%) of a custom audience in one or more countries. Preview and approval first.

ParameterTypeDescription
nameRequiredstring—
source_audience_idRequiredstring—
countriesRequiredarray<string>ISO codes
ratio_percentOptionalnumber (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

Escrita2 credits

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

ParameterTypeDescription
nameRequiredstring—
objectiveRequiredsales | traffic | engagement | messages | awareness—
daily_budgetOptionalnumberaccount currency
goalOptionalstring—
audienceOptionalobject—

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.

update_meta_campaign

Escrita2 credits

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

ParameterTypeDescription
campaign_idRequiredstringMeta campaign id or Tecrube campaign id
daily_budgetOptionalnumber—
lifetime_budgetOptionalnumber—
statusOptionalACTIVE | PAUSED | ARCHIVED—
nameOptionalstring—
bid_strategyOptionalstringLOWEST_COST_WITHOUT_CAP | LOWEST_COST_WITH_BID_CAP | COST_CAP | LOWEST_COST_WITH_MIN_ROAS
spend_capOptionalnumber—

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.

update_meta_ad_set

Escrita2 credits

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

ParameterTypeDescription
adset_idRequiredstring—
daily_budgetOptionalnumber—
lifetime_budgetOptionalnumber—
statusOptionalACTIVE | PAUSED | ARCHIVED—
nameOptionalstring—
bid_strategyOptionalstring—
bid_amountOptionalnumber—
targetingOptionalobject—
start_timeOptionalstringISO 8601
end_timeOptionalstringISO 8601

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.

duplicate_meta_ad_set

Escrita2 credits

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

ParameterTypeDescription
adset_idRequiredstring—
interest_idsOptionalarray<string>replace interests, keep the rest of the targeting
targetingOptionalobject—
daily_budgetOptionalnumber—
nameOptionalstring—
bid_amountOptionalnumber—
start_timeOptionalstring—
end_timeOptionalstring—
deep_copyOptionalboolean—
rename_suffixOptionalstring—
target_campaign_idOptionalstring—

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.

pause_meta_ad_sets_above_cpa

Escrita2 credits

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

ParameterTypeDescription
cpa_thresholdRequirednumberaccount currency
conversion_eventOptionalpurchase | lead | add_to_cart | complete_registration | messaging | link_clickresult type used for conversions and CPA (default purchase)
daysOptionalinteger (1–1125)—
start_dateOptionalstringYYYY-MM-DD
end_dateOptionalstringYYYY-MM-DD
min_spendOptionalnumber—
campaign_idsOptionalarray<string>—
reallocateOptionalbooleanmove 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_video_ad

Escrita2 credits

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

ParameterTypeDescription
adset_idRequiredstring—
video_idRequiredstringvideo id in the Meta ad account
linkRequiredstring—
nameOptionalstring—
messageOptionalstring—
titleOptionalstring—
call_to_actionOptionalLEARN_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_urlOptionalstring—
page_idOptionalstring—
instagram_user_idOptionalstring—

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.

boost_instagram_post

Escrita2 credits

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

ParameterTypeDescription
adset_idRequiredstring—
instagram_media_idOptionalstring—
pick_bestOptionalbooleanuse the most engaging recent Instagram post
lookback_postsOptionalinteger (1–100)—
facebook_post_idOptionalstring{page_id}_{post_id} to boost a Page post instead
linkOptionalstring—
call_to_actionOptionalLEARN_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—
nameOptionalstring—
instagram_user_idOptionalstring—
page_idOptionalstring—

Write tool: the call first produces a preview; the change reaches the platform only after you approve it.