{"$schema":"https://static.modelcontextprotocol.io/schemas/v1/server-card.schema.json","name":"co.teraads/connect","title":"Tera Ads","description":"Meta Ads in your AI: approval before changes, undo for pauses and budgets, profit after returns.","version":"1.0.1","repository":{"url":"https://github.com/Teralabsx/meta-ads-mcp","source":"github"},"websiteUrl":"https://teraads.co/connect","icons":[{"src":"https://teraads.co/icon.svg","mimeType":"image/svg+xml","sizes":["any"]}],"remotes":[{"type":"streamable-http","url":"https://teraads.co/mcp","supportedProtocolVersions":["2024-11-05","2025-03-26","2025-06-18","2025-11-25"]}],"_meta":{"co.teraads/oauth":{"authorizationServer":"https://teraads.co/","authorizationServerMetadata":"https://teraads.co/.well-known/oauth-authorization-server","protectedResourceMetadata":"https://teraads.co/.well-known/oauth-protected-resource/mcp","authorizationEndpoint":"https://teraads.co/authorize","tokenEndpoint":"https://teraads.co/token","registrationEndpoint":"https://teraads.co/register","scopes":["olympus.read","olympus.propose","openid","email","offline_access"]},"co.teraads/install":{"setupPage":"https://teraads.co/connect","claude":"https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Tera%20Ads&connectorUrl=https%3A%2F%2Fteraads.co%2Fmcp","chatgpt":"https://teraads.co/connect#chatgpt","cursor":"cursor://anysphere.cursor-deeplink/mcp/install?name=tera-ads&config=eyJ1cmwiOiJodHRwczovL3RlcmFhZHMuY28vbWNwIn0%3D","vscode":"vscode:mcp/install?%7B%22name%22%3A%22tera-ads%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fteraads.co%2Fmcp%22%7D","claudeCode":"claude mcp add --transport http tera-ads https://teraads.co/mcp","codex":"codex mcp add tera-ads --url https://teraads.co/mcp","geminiCli":"gemini mcp add --transport http tera-ads https://teraads.co/mcp"},"co.teraads/tools":[{"name":"get_business_status","title":"Business status","description":"Use this when you need to know what this business has connected (Shopify, Meta ads, Google ads and others) and when each was last checked.\n\nCall it first to see which questions Tera Ads can answer for this store. It does not refresh anything. Do not use it for results, sales or profit; it returns no numbers.","inputSchema":{"properties":{},"title":"get_business_statusArguments","type":"object"},"readOnly":true},{"name":"get_latest_report","title":"Latest Tera Ads report","description":"Use this when the owner asks whether Tera Ads' latest report on this business is ready, and how many findings and suggestions it has.\n\nThe full report stays in Tera Ads; dashboard_url opens it. Do not use it for ad results or profit (use get_insights or get_profit).","inputSchema":{"properties":{},"title":"get_latest_reportArguments","type":"object"},"readOnly":true},{"name":"get_meta_performance","title":"Meta Ads results","description":"Use this when you want daily Facebook and Instagram ad results per campaign, as saved by Tera Ads, for the last 1\u201330 days.\n\nUp to 100 campaign-day rows of spend and Meta-attributed results. Do not use it for live numbers (use get_insights) or profit (use get_profit).","inputSchema":{"properties":{"days":{"default":7,"title":"Days","type":"integer"}},"title":"get_meta_performanceArguments","type":"object"},"readOnly":true},{"name":"get_store_sales","title":"Shopify store sales","description":"Use this when the owner asks how many orders their Shopify store took or how much it sold: orders and order value per completed day, by currency, for the last 1\u201330 days.\n\nThese are store order records (booked and paid status), not collected cash or profit. No customer details or order numbers are returned. Do not use it for profit or ad results (use get_profit or get_insights).","inputSchema":{"properties":{"days":{"default":7,"title":"Days","type":"integer"}},"title":"get_store_salesArguments","type":"object"},"readOnly":true},{"name":"get_profit","title":"Profit after returns","description":"Use this when the owner asks whether their ads are making money: estimated profit after returns for orders placed in the last 1\u201390 days.\n\nUse it for profit, net profit, true ROAS or whether ads are worth their spend. Built from store orders, not Meta's attributed revenue: store sales minus returned (RTO) sales, product cost at the owner's margin setting, Meta + Google ad spend, shipping, payment fees and refunds, over completed days (UTC dates). Returns are booked to the order's date. A whole-store estimate, not cash in the bank. Do not use it for one campaign or ad's results (use get_insights).","inputSchema":{"properties":{"days":{"default":30,"title":"Days","type":"integer"}},"title":"get_profitArguments","type":"object"},"readOnly":true},{"name":"get_rto","title":"Returns (RTO) by month","description":"Use this when the owner asks about returns to origin (RTO) or profit month by month: RTO and estimated profit per calendar month, newest first (1\u201312 months).\n\nEach return is booked to the month its order was placed, so recent months can still change; months under 45 days old are marked matured=false. Do not use it for a range shorter than a month (use get_profit).","inputSchema":{"properties":{"months":{"default":6,"title":"Months","type":"integer"}},"title":"get_rtoArguments","type":"object"},"readOnly":true},{"name":"get_checkout","title":"GoKwik checkout","description":"Use this when the owner asks about their GoKwik checkout over the last 7\u201390 days (stores whose orders go through GoKwik).\n\nOrders through GoKwik and the payment mix, how often each GoKwik risk level's cash-on-delivery orders came back (from orders old enough to have settled), GoKwik's unscored test group against its scored orders, where shoppers from Meta ads leave the checkout each week, and GoKwik's own checkout steps once the owner connects them in Tera Ads. Totals and rates only: no order, shopper or contact detail is returned. Do not use it for stores without GoKwik; it says so and returns nothing else.","inputSchema":{"properties":{"days":{"default":90,"title":"Days","type":"integer"}},"title":"get_checkoutArguments","type":"object"},"readOnly":true},{"name":"list_campaigns","title":"List Meta campaigns","description":"Use this when you need the Facebook and Instagram ad campaigns in the connected Meta ad account, live from Meta, with their status and budgets.\n\nstatus: \"active\", \"paused\" or \"all\". Budgets are in the account currency's Meta units (hundredths for most currencies); use get_insights for spend and results. Do not use it for spend or results (use get_insights).","inputSchema":{"properties":{"status":{"default":"all","title":"Status","type":"string"},"limit":{"default":25,"title":"Limit","type":"integer"}},"title":"list_campaignsArguments","type":"object"},"readOnly":true},{"name":"list_ad_sets","title":"List ad sets","description":"Use this when you need the ad sets of one campaign in the connected Meta ad account, live from Meta. Do not use it for results (use get_insights with level adset).","inputSchema":{"properties":{"campaign_id":{"title":"Campaign Id","type":"string"},"status":{"default":"all","title":"Status","type":"string"},"limit":{"default":25,"title":"Limit","type":"integer"}},"required":["campaign_id"],"title":"list_ad_setsArguments","type":"object"},"readOnly":true},{"name":"list_ads","title":"List ads","description":"Use this when you need the ads of one ad set in the connected Meta ad account, live from Meta. Do not use it for an ad's words or picture (use get_ad_creative) or its results (use get_insights with level ad).","inputSchema":{"properties":{"ad_set_id":{"title":"Ad Set Id","type":"string"},"status":{"default":"all","title":"Status","type":"string"},"limit":{"default":25,"title":"Limit","type":"integer"}},"required":["ad_set_id"],"title":"list_adsArguments","type":"object"},"readOnly":true},{"name":"get_insights","title":"Meta Ads insights","description":"Use this when the owner asks how their Facebook and Instagram ads are doing, live from Meta: spend, reach, clicks, CTR, CPC, CPM, purchases, ROAS.\n\nlevel: \"account\", \"campaign\", \"adset\" or \"ad\" \u2014 one row per item at that level.\nobject_id: limit to one campaign, ad set or ad (omit for the whole account).\ndate_preset: today, yesterday, last_7d, last_14d, last_30d, last_90d, this_month, last_month (in the ad account's time zone). Or give since and until (YYYY-MM-DD, up to 93 days) instead.\nbreakdown: split every row by age, gender, country, region, publisher_platform, platform_position or device_platform. Purchases and value are what Meta attributes, not store receipts; use get_profit for what the store actually made. Do not use it for profit or the store's own sales (use get_profit or get_store_sales).","inputSchema":{"properties":{"level":{"default":"campaign","title":"Level","type":"string"},"object_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Object Id"},"date_preset":{"default":"last_7d","title":"Date Preset","type":"string"},"limit":{"default":50,"title":"Limit","type":"integer"},"breakdown":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Breakdown"},"since":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Since"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Until"}},"title":"get_insightsArguments","type":"object"},"readOnly":true},{"name":"get_ads_review","title":"Ads review after returns","description":"Use this when the owner asks what to change in their ads: which campaigns lose money after returns, what to pause and what to scale.\n\nOne call judges every spending campaign on its estimated profit after this store's usual returns, at the owner's own costs, against the store's break-even ROAS, and suggests one next step with the tool that does it. Biggest losses come first. date_preset: last_7d, last_14d or last_30d. limit: 1-50 campaigns. Do not use it for raw Meta numbers (use get_insights) or the whole store's profit (use get_profit).","inputSchema":{"properties":{"date_preset":{"default":"last_14d","title":"Date Preset","type":"string"},"limit":{"default":25,"title":"Limit","type":"integer"}},"title":"get_ads_reviewArguments","type":"object"},"readOnly":true},{"name":"search_interests","title":"Find targeting interests","description":"Use this when building or sizing an audience and you need Meta detailed-targeting interests by name, with each one's audience size range.\n\nUse the returned ids as interest_ids when proposing an ad set or estimating an audience. Do not use it for places or behaviours (use search_locations or search_behaviors).","inputSchema":{"properties":{"query":{"title":"Query","type":"string"},"limit":{"default":10,"title":"Limit","type":"integer"}},"required":["query"],"title":"search_interestsArguments","type":"object"},"readOnly":true},{"name":"search_behaviors","title":"Find targeting behaviours","description":"Use this when building or sizing an audience and you need Meta detailed-targeting behaviours (e.g. engaged shoppers, frequent travellers) by name.\n\nUse the returned ids as behavior_ids when creating an ad set or estimating an audience. Do not use it for interests or places (use search_interests or search_locations).","inputSchema":{"properties":{"query":{"title":"Query","type":"string"},"limit":{"default":10,"title":"Limit","type":"integer"}},"required":["query"],"title":"search_behaviorsArguments","type":"object"},"readOnly":true},{"name":"get_ad_creative","title":"Ad creative details","description":"Use this when you need one ad's current words, headline, link, call to action, Page and picture or video, live from Meta.\n\nRead an ad before writing a fresh version of it: create_ad with new words in the same ad set, reusing its image_hash (or video_id with the image as cover). Do not use it for the ad's results (use get_insights).","inputSchema":{"properties":{"ad_id":{"title":"Ad Id","type":"string"}},"required":["ad_id"],"title":"get_ad_creativeArguments","type":"object"},"readOnly":true},{"name":"search_locations","title":"Find target locations","description":"Use this when targeting places and you need countries, regions, cities or postcodes by name, with the keys Meta uses.\n\nlocation_types: any of \"country\", \"region\", \"city\", \"zip\" (default the first three). Countries are targeted by their two-letter key; regions and cities by their numeric key. Do not use it for interests or behaviours (use search_interests or search_behaviors).","inputSchema":{"properties":{"query":{"title":"Query","type":"string"},"location_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Location Types"},"limit":{"default":10,"title":"Limit","type":"integer"}},"required":["query"],"title":"search_locationsArguments","type":"object"},"readOnly":true},{"name":"list_pages","title":"List Facebook Pages","description":"Use this when creating an ad and you need the Facebook Pages this ad account can advertise for, and the Instagram account linked to each.\n\nEvery new ad runs as one of these Pages (and its Instagram account, when linked). Do not use it for a Page's posts or followers; it only lists the Pages.","inputSchema":{"properties":{},"title":"list_pagesArguments","type":"object"},"readOnly":true},{"name":"list_pixels","title":"List Meta pixels","description":"Use this when creating a sales ad set and you need this ad account's Meta pixels and when each last received an event. Do not use it to judge sales; pixel events are not store orders (use get_store_sales).","inputSchema":{"properties":{},"title":"list_pixelsArguments","type":"object"},"readOnly":true},{"name":"estimate_audience","title":"Estimate audience size","description":"Use this when the owner asks how many people an audience could reach: Meta's estimate, as a range.\n\ncountries: two-letter codes; regions and cities: keys from search_locations; genders: [1] men, [2] women, omit for all; interest_ids from search_interests; behavior_ids from search_behaviors. Do not use it for the results of ads already running (use get_insights).","inputSchema":{"properties":{"countries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Countries"},"regions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Regions"},"cities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Cities"},"age_min":{"default":18,"title":"Age Min","type":"integer"},"age_max":{"default":65,"title":"Age Max","type":"integer"},"genders":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Genders"},"interest_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Interest Ids"},"behavior_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Behavior Ids"},"publisher_platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Publisher Platforms"}},"title":"estimate_audienceArguments","type":"object"},"readOnly":true},{"name":"list_recent_changes","title":"Recent ad changes","description":"Use this when the owner asks what was changed in their ads through Tera Ads (by them or approved from an assistant).\n\nNewest first, with what was changed, before and after, and whether it can still be undone. Do not use it for edits made directly in Meta's own tools; only changes made through Tera Ads are listed.","inputSchema":{"properties":{"limit":{"default":20,"title":"Limit","type":"integer"}},"title":"list_recent_changesArguments","type":"object"},"readOnly":true},{"name":"get_usage","title":"Calls left this period","description":"Use this when the owner asks how many Tera Ads calls are left, or after a limit_reached answer: calls used and allowed this period, when the count resets (UTC) and the plan.\n\nFree: it never uses up a call, and it still answers once the allowance is spent. Do not use it for ad spend or results (use get_insights).","inputSchema":{"properties":{},"title":"get_usageArguments","type":"object"},"readOnly":true},{"name":"pause","title":"Pause a campaign, ad set or ad","description":"Use this when the owner wants to pause (stop) ONE active campaign, ad set (\"adset\") or ad.\n\nPausing a campaign stops all its ad sets and ads. Happens at once if the owner lets you make changes, otherwise returns a review link for the owner. Do not use it to cut spend part of the way (use set_budget) or unless the owner asked for this pause.","inputSchema":{"properties":{"object_id":{"title":"Object Id","type":"string"},"object_type":{"default":"campaign","title":"Object Type","type":"string"}},"required":["object_id"],"title":"pauseArguments","type":"object"},"readOnly":false},{"name":"resume","title":"Resume a campaign, ad set or ad","description":"Use this when the owner wants to turn ONE paused campaign, ad set (\"adset\") or ad back on. It starts spending its budget.\n\nSomething new is only delivered once its campaign, ad set and ad are all on. Do not use it unless the owner asked to turn that item on.","inputSchema":{"properties":{"object_id":{"title":"Object Id","type":"string"},"object_type":{"default":"campaign","title":"Object Type","type":"string"}},"required":["object_id"],"title":"resumeArguments","type":"object"},"readOnly":false},{"name":"set_budget","title":"Change a budget","description":"Use this when the owner wants to raise or cut the daily or lifetime budget of ONE campaign or ad set (\"adset\").\n\nnew_budget is in whole units of the ad account's currency (e.g. 1500 for 1,500 of it) and replaces whichever budget that object already has. One change can at most triple a budget or cut it to a tenth. Do not use it to stop spending entirely (use pause).","inputSchema":{"properties":{"object_id":{"title":"Object Id","type":"string"},"new_budget":{"title":"New Budget","type":"number"},"object_type":{"default":"campaign","title":"Object Type","type":"string"}},"required":["object_id","new_budget"],"title":"set_budgetArguments","type":"object"},"readOnly":false},{"name":"create_campaign","title":"Create a paused campaign","description":"Use this when the owner wants a new campaign: creates ONE campaign, always PAUSED, spending nothing.\n\nobjective: OUTCOME_SALES, OUTCOME_TRAFFIC, OUTCOME_ENGAGEMENT, OUTCOME_LEADS or OUTCOME_AWARENESS. Give a daily_budget or lifetime_budget (whole account currency) to put the budget on the campaign, or neither to give each ad set its own. special_ad_categories only for credit, employment, housing, politics or financial products. Meta checks it first. Do not use it to copy an existing campaign (use duplicate).","inputSchema":{"properties":{"name":{"title":"Name","type":"string"},"objective":{"title":"Objective","type":"string"},"daily_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Daily Budget"},"lifetime_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Lifetime Budget"},"special_ad_categories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Special Ad Categories"}},"required":["name","objective"],"title":"create_campaignArguments","type":"object"},"readOnly":false},{"name":"create_ad_set","title":"Create a paused ad set","description":"Use this when the owner wants a new ad set in a campaign: creates ONE ad set, always PAUSED.\n\noptimization_goal: e.g. OFFSITE_CONVERSIONS (sales, needs pixel_id + conversion_event), LANDING_PAGE_VIEWS, LINK_CLICKS, REACH, POST_ENGAGEMENT, LEAD_GENERATION (needs page_id). Location: countries (two-letter codes) and/or regions/cities keys from search_locations. interest_ids from search_interests, behavior_ids from search_behaviors. advantage_audience lets Meta reach beyond the audience. Budget only if the campaign has none (lifetime_budget needs end_time). Times are ISO 8601 with a time zone. Meta checks it first. Do not use it to copy an ad set (use duplicate).","inputSchema":{"properties":{"campaign_id":{"title":"Campaign Id","type":"string"},"name":{"title":"Name","type":"string"},"optimization_goal":{"title":"Optimization Goal","type":"string"},"countries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Countries"},"regions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Regions"},"cities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Cities"},"age_min":{"default":18,"title":"Age Min","type":"integer"},"age_max":{"default":65,"title":"Age Max","type":"integer"},"genders":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"default":null,"title":"Genders"},"interest_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Interest Ids"},"behavior_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Behavior Ids"},"publisher_platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Publisher Platforms"},"advantage_audience":{"default":true,"title":"Advantage Audience","type":"boolean"},"daily_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Daily Budget"},"lifetime_budget":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Lifetime Budget"},"start_time":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Start Time"},"end_time":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"End Time"},"pixel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Pixel Id"},"conversion_event":{"default":"PURCHASE","title":"Conversion Event","type":"string"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Page Id"}},"required":["campaign_id","name","optimization_goal"],"title":"create_ad_setArguments","type":"object"},"readOnly":false},{"name":"create_ad","title":"Create a paused ad","description":"Use this when the owner wants a new ad, or a rewritten version of one: creates ONE ad in an ad set, always PAUSED.\n\nThe picture: exactly one of image_url (a public https image Meta fetches) or image_hash (an image already in the ad account, e.g. from get_ad_creative). Add video_id (a video already in the account) to make a video ad with that image as its cover. page_id from list_pages (its linked Instagram account is used automatically). link must be a public https address. call_to_action e.g. SHOP_NOW, LEARN_MORE, ORDER_NOW, SIGN_UP, GET_OFFER. Meta checks it first and reviews every new ad. Do not use it to edit a running ad in place; create the new paused ad beside it.","inputSchema":{"properties":{"ad_set_id":{"title":"Ad Set Id","type":"string"},"name":{"title":"Name","type":"string"},"page_id":{"title":"Page Id","type":"string"},"primary_text":{"title":"Primary Text","type":"string"},"headline":{"title":"Headline","type":"string"},"link":{"title":"Link","type":"string"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Image Url"},"image_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Image Hash"},"video_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Video Id"},"call_to_action":{"default":"SHOP_NOW","title":"Call To Action","type":"string"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Description"}},"required":["ad_set_id","name","page_id","primary_text","headline","link"],"title":"create_adArguments","type":"object"},"readOnly":false},{"name":"duplicate","title":"Duplicate as paused","description":"Use this when the owner wants to copy a winning campaign, ad set (\"adset\") or ad: makes ONE PAUSED copy.\n\ndeep_copy also copies the ad sets and ads inside (at most 3 ads in one copy). The copy spends nothing until resume turns it on. Do not use it to build from scratch (use create_campaign, create_ad_set or create_ad).","inputSchema":{"properties":{"object_id":{"title":"Object Id","type":"string"},"object_type":{"default":"campaign","title":"Object Type","type":"string"},"deep_copy":{"default":true,"title":"Deep Copy","type":"boolean"}},"required":["object_id"],"title":"duplicateArguments","type":"object"},"readOnly":false},{"name":"get_change_status","title":"Check a change","description":"Use this when you need to know where one change from this connection stands: pending_approval, succeeded, failed, outcome_unknown. Do not use it to list every change (use list_recent_changes).","inputSchema":{"properties":{"change_id":{"title":"Change Id","type":"string"}},"required":["change_id"],"title":"get_change_statusArguments","type":"object"},"readOnly":true}]}}