❯

    integrations / x-ads / tools

    X Ads tools in Cogny

    Cogny's X Ads integration exposes 36 tools (15 read, 16 write, 5 destructive) to an AI agent over MCP. The same tools are available on every plan, from your own AI client or inside the Cogny app.

    • Read (15): only reads data.
    • Write (16): creates or changes something.
    • Destructive (5): deletes, removes or replaces something.

    Over MCP your own AI client asks before it runs a write. To take a tool away from your agent, block it in Settings → Integrations. Plans, approvals and limits.

    All tools

    ToolKindWhat it does
    tool_list_ad_accountsReadLists all X ad accounts accessible by the current user.
    tool_get_funding_instrumentsReadGet funding instruments (payment methods) for an ad account.
    tool_get_web_event_tagsReadList X Ads conversion pixels (Web Event Tags) on an account.
    tool_upload_mediaWriteUpload a video / image / GIF to X's media library and return a `media_key` usable in `create_card` (MEDIA component) and `create_tweet` (`media_keys`).
    tool_search_locationsReadSearch X Ads location targeting values.
    tool_search_conversationsReadSearch X Ads conversation topic targeting values.
    tool_search_eventsReadSearch X Ads event targeting values.
    tool_get_campaignsReadGet campaigns for an ad account.
    tool_get_line_itemsReadGet line items (ad groups) for an ad account.
    tool_get_promoted_tweetsReadGet promoted tweets (ads) for an ad account.
    tool_get_analyticsReadGet performance analytics for campaigns, line items, or promoted tweets.
    tool_get_tailored_audiencesReadGet tailored audiences (custom audiences) for an ad account.
    tool_get_targeting_criteriaReadGet targeting criteria for line items.
    tool_create_campaignWriteCreate a new campaign.
    tool_update_campaignWriteUpdate an existing campaign.
    tool_update_campaign_statusWriteUpdate a campaign's status (pause, activate, or set to draft).
    tool_delete_campaignDestructiveDelete a campaign.
    tool_create_line_itemWriteCreate a new line item (ad group).
    tool_update_line_itemWriteUpdate an existing line item.
    tool_update_line_item_statusWriteUpdate a line item's status (pause, activate, or set to draft).
    tool_delete_line_itemDestructiveDelete a line item.
    tool_create_promoted_tweetWriteCreate a promoted tweet (ad) by associating an existing tweet with a line item.
    tool_update_promoted_tweet_statusWriteUpdate a promoted tweet's status.
    tool_delete_promoted_tweetDestructiveDelete a promoted tweet.
    tool_create_tailored_audienceWriteCreate a tailored audience (custom audience).
    tool_update_tailored_audienceWriteUpdate a tailored audience.
    tool_delete_tailored_audienceDestructiveDelete a tailored audience.
    tool_add_targeting_criteriaWriteAdd targeting criteria to a line item.
    tool_delete_targeting_criteriaDestructiveDelete targeting criteria from a line item.
    tool_get_tweetsReadFetch X Ads tweets — the actual creative behind a promoted tweet.
    tool_get_cardsReadList X Ads Cards (creative attachments referenced by `card_uri` on a tweet).
    tool_get_cardReadGet a single Card with its full `components` list.
    tool_create_tweetWriteCreate a new tweet usable as ad creative.
    tool_update_tweetWriteUpdate a Promoted-only tweet (only nullcast=True tweets can be updated — published tweets are immutable).
    tool_create_cardWriteCreate a new X Ads Card (V2).
    tool_update_cardWriteUpdate a Card's name and/or components.

    Exact input schemas come from tools/list once X Ads is connected; the free plan is enough to check. Missing something? Your agent can ask for it with request_feature.

    This page as markdown · All integrations · How Cogny uses X Ads