# MCP tools reference

> The 28 tools on the [MCP server](https://yapfactory.com/developers/mcp.md), plus one that returns the rules and 7 prompts. An agent only sees the tools for your side, and only the ones that read on a read-only connection. No tool moves money.

## Everyone

For brands and creators alike.

### Your Yap Factory account (`get_account`)

_Reads_

Who is signed in: brand and/or creator, country and currency, what this connection is allowed to do, and the one next thing worth doing (gettingStarted). Shows which tools apply to this account. REST: [`GET /me`](https://yapfactory.com/developers/api/get_account.md).

No inputs.

### List deals (`list_deals`)

_Reads_

Deals you're part of, newest activity first, with each one's status and what happens next. A deal is one creator making videos for one campaign. REST: [`GET /deals`](https://yapfactory.com/developers/api/list_deals.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `"open" \| "closed" \| "all"` | no | open: still in progress (default). closed: finished, declined or cancelled. Default `"open"`. |
| `limit` | `integer` | no | 1 to 50. Default `20`. |

### Get a deal (`get_deal`)

_Reads_

One deal in full: the offer, status, whose move it is, the latest draft's review state, recent messages and the link to the deal page. Paying, approving a draft and cancelling happen on that page. REST: [`GET /deals/{dealId}`](https://yapfactory.com/developers/api/get_deal.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dealId` | `uuid` | yes | The deal's id. |
| `messages` | `integer` | no | How many recent messages to include. 0 to 50. Default `10`. |

### Message the other side of a deal (`send_deal_message`)

_Changes things · Tells other people_

Send a message in a deal's chat. The other side gets it in the app (and by email if they allow it). Contact details and off-platform payment talk are blocked. Feedback on a draft goes through request_revision, which gives the creator the notes to work from. For use once the person has agreed the words. REST: [`POST /deals/{dealId}/messages`](https://yapfactory.com/developers/api/send_deal_message.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dealId` | `uuid` | yes | The deal's id. |
| `body` | `string` | yes | The message, in plain words. No contact details or payment talk. 1 to 2000 characters. |

## Brands

Only on a brand account.

### Search creators (`search_creators`)

_Reads_

Browse UGC creators you can invite: niches, rating, delivery record, rate per video and sample videos (each with a link that plays it on Yap Factory). With campaignId, results are ranked by fit for that campaign. A live campaign's ranked shortlist is already in get_campaign; search finds more or different creators. REST: [`GET /creators`](https://yapfactory.com/developers/api/search_creators.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | `string` | no | Words to match in names, summaries and niches. Up to 100 characters. |
| `niches` | `string[]` | no | Only creators in these niches, e.g. skincare, fitness, pets. Up to 10 items. |
| `country` | `string` | no | ISO country code such as US or GB. Up to 10 characters. |
| `platform` | `"tiktok" \| "instagram" \| "youtube"` | no | Only creators with this platform linked. |
| `priceBand` | `"new" \| "intermediate" \| "specialist"` | no | Rate per video: new (lowest), intermediate (rising creators) or specialist (established creators). |
| `verifiedOnly` | `boolean` | no | Only creators who passed an ID check. |
| `minRating` | `number` | no | Only creators rated at least this, out of 5. 0 to 5. |
| `campaignId` | `uuid` | no | One of your live campaigns, to rank and show fit for it. |
| `sort` | `"relevance" \| "price" \| "rating"` | no | relevance: best fit first (default). price: lowest rate first. rating: best rated first. |
| `page` | `integer` | no | 1 to 50. Default `1`. |

### Get a creator (`get_creator`)

_Reads_

A creator's profile as brands see it: summary, niches, audience, rating, delivery record, rate and their videos per platform. Each video has a `watch` link that plays it on Yap Factory; social handles and links to the creator's own accounts are never included. REST: [`GET /creators/{creatorId}`](https://yapfactory.com/developers/api/get_creator.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `creatorId` | `uuid` | yes | The creator's id. |
| `campaignId` | `uuid` | no | One of your campaigns, to see how this creator fits it. |

### List your products (`list_products`)

_Reads_

The products (apps, sites or brands) on your account. Every campaign is for one of them. REST: [`GET /products`](https://yapfactory.com/developers/api/list_products.md).

No inputs.

### List campaigns (`list_campaigns`)

_Reads_

Your campaigns with status (draft, live, paused, closed), price per video and how many creators are invited, working or done. REST: [`GET /campaigns`](https://yapfactory.com/developers/api/list_campaigns.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `"draft" \| "live" \| "paused" \| "closed" \| "any"` | no | Only campaigns in this status. Default `"any"`. |

### Get a campaign (`get_campaign`)

_Reads_

One of your campaigns: the brief, the deal terms, the ranked shortlist of creators (with who asked to join) and every deal on it. REST: [`GET /campaigns/{campaignId}`](https://yapfactory.com/developers/api/get_campaign.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `campaignId` | `uuid` | yes | The campaign's id. |

### Draft a campaign (`create_campaign_draft`)

_Changes things_

Create a campaign draft with its brief. Nobody sees a draft until publish_campaign makes it live, so the person can review it first. Takes productId, or product to add a new one. REST: [`POST /campaigns`](https://yapfactory.com/developers/api/create_campaign_draft.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `productId` | `uuid` | no | From list_products. |
| `product` | `object` | no | A new product, when productId isn't given. |
| `product.name` | `string` | yes | The product's name. 1 to 80 characters. |
| `product.url` | `url` | no | App Store, Play Store or website link. Up to 500 characters. |
| `product.platform` | `"ios" \| "android" \| "web"` | yes | Where people use it. |
| `product.description` | `string` | no | What it is and who it's for. Up to 2000 characters. |
| `title` | `string` | yes | The campaign's name, as creators see it. 3 to 100 characters. |
| `template` | `"one_video" \| "test_openings" \| "ad_bundle"` | no | one_video: 1 video for your own channels. test_openings: 1 video with 3 openings. ad_bundle: 3 videos you can run as ads for 3 months. Default `"one_video"`. |
| `videos` | `integer` | no | Videos per creator (overrides the template). 1 to 20. |
| `adRights` | `"organic" \| "paid_3m" \| "paid_6m" \| "paid_12m" \| "paid_forever"` | no | organic = your own channels, no ads. paid_*: how long you can run it as an ad. |
| `targetCountries` | `("GB" \| "US" \| "IE" \| "CA" \| "AU")[]` | no | Where the creators' audiences should be. Left out: your own country. 1 to 5 items. |
| `lengthSeconds` | `15 \| 30 \| 60` | no | How long each video runs. Default `30`. |
| `deadline` | `date` | no | yyyy-mm-dd, at least 5 days away. Default: the template's (2-3 weeks). |
| `brief` | `object` | yes |  |
| `brief.keyMessage` | `string` | no | What the video must get across. Leave out to let the creator decide. Up to 600 characters. |
| `brief.hooks` | `string[]` | no | Opening lines to try. Leave out to let the creator decide. Up to 5 items. |
| `brief.cta` | `string` | no | Closing call to action. Leave out to let the creator decide. Up to 200 characters. |
| `brief.dos` | `string[]` | no | Things the video should do. Up to 8 items. |
| `brief.donts` | `string[]` | no | Things it must not do or say. Up to 8 items. |
| `brief.exampleVideoUrl` | `url` | no | A video in the style you want. Up to 500 characters. |

### Edit a campaign brief (`update_campaign_brief`)

_Changes things_

Change the creative brief of a draft or paused campaign (title, message, openings, call to action, dos and don'ts). Only the fields sent change: a field sent replaces what was there, and fields left out keep their value. A live campaign has to be paused before its brief can change. REST: [`PATCH /campaigns/{campaignId}/brief`](https://yapfactory.com/developers/api/update_campaign_brief.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `campaignId` | `uuid` | yes | The campaign's id. |
| `title` | `string` | no | The campaign's name, as creators see it. 3 to 100 characters. |
| `keyMessage` | `string` | no | The one thing the video should get across. Up to 600 characters. |
| `hooks` | `string[]` | no | Opening lines to use. Replaces the whole list. Up to 5 items. |
| `cta` | `string` | no | What the viewer should do at the end. Up to 200 characters. |
| `dos` | `string[]` | no | Things the video should do. Replaces the whole list. Up to 8 items. |
| `donts` | `string[]` | no | Things it must not do or say. Replaces the whole list. Up to 8 items. |

### Publish a campaign (`publish_campaign`)

_Changes things · Tells other people_

Make a draft campaign live: matching creators see the brief and can ask to join. Free; nothing is charged until you start a deal. For use once the person has agreed to go live. REST: [`POST /campaigns/{campaignId}/publish`](https://yapfactory.com/developers/api/publish_campaign.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `campaignId` | `uuid` | yes | The campaign's id. |

### Pause, resume or close a campaign (`set_campaign_status`)

_Changes things · Tells other people · Can't be undone_

Pause a live campaign (hidden from new creators), resume it, or close it (creators who asked are told it closed). Deals already running carry on. A draft goes live through publish_campaign. For use once the person has agreed. REST: [`POST /campaigns/{campaignId}/status`](https://yapfactory.com/developers/api/set_campaign_status.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `campaignId` | `uuid` | yes | The campaign's id. |
| `status` | `"live" \| "paused" \| "closed"` | yes | paused: hidden from new creators. live: resume a paused or closed campaign. closed: finished; creators who asked are told. |

### Invite creators (`invite_creators`)

_Changes things · Tells other people_

Invite hand-picked creators to a live campaign: up to 8 per campaign in all. Invites are free; each creator gets the offer and has 2 days to say yes. You only pay when you start a deal with someone who said yes (on yapfactory.com). The result lists who was invited and who couldn't be, with why. For use once the person has agreed the list. REST: [`POST /campaigns/{campaignId}/invites`](https://yapfactory.com/developers/api/invite_creators.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `campaignId` | `uuid` | yes | The campaign's id. |
| `creatorIds` | `uuid[]` | yes | Creator ids from search_creators or get_campaign. 1 to 8 items. |

### Pass on a creator (`pass_on_creator`)

_Changes things · Tells other people · Can't be undone_

Say "Not this time" to a creator who said yes but you won't start a deal with. They're told politely, and it can't be taken back. Only for deals not yet started. For use once the person has agreed. REST: [`POST /deals/{dealId}/pass`](https://yapfactory.com/developers/api/pass_on_creator.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dealId` | `uuid` | yes | The deal's id. |
| `reason` | `string` | no | A short, kind reason. The creator sees it. Up to 500 characters. |

### Ask for changes to a draft (`request_revision`)

_Changes things · Tells other people · Can't be undone_

Send a draft back with notes, once the person has agreed them. Uses one of the included revision rounds (get_deal says how many are left). Once they're used, another round is paid and can only be asked for on the deal page: this returns the link instead. Approving a draft pays the creator, so that happens on the deal page too. REST: [`POST /deals/{dealId}/revisions`](https://yapfactory.com/developers/api/request_revision.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dealId` | `uuid` | yes | The deal's id. |
| `notes` | `string` | yes | What to change, specifically. 10 to 4000 characters. |

### List accounts you can post to (`list_post_accounts`)

_Reads_

The brand's own TikTok and Instagram accounts connected to Yap Factory that can take a scheduled post now, with what each allows (post directly, or send to TikTok drafts). Connect accounts on yapfactory.com under Accounts. REST: [`GET /posts/accounts`](https://yapfactory.com/developers/api/list_post_accounts.md).

No inputs.

### Get posting options for an account (`get_post_account`)

_Reads_

Live posting options for one account, straight from TikTok or Instagram: its name, who a post can be shown to (TikTok audiences), whether comments, Duet and Stitch can be on, the longest video, and whether it can post right now. Scheduling to a TikTok account needs these options, and the audience is the person's choice. REST: [`GET /posts/accounts/{accountId}`](https://yapfactory.com/developers/api/get_post_account.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `accountId` | `uuid` | yes | The account's id. |

### List videos you can post (`list_postable_videos`)

_Reads_

Finished videos the brand may post: approved videos from completed deals. An id from here is the video for schedule_post; prepare_post_upload is for posting your own file. REST: [`GET /posts/videos`](https://yapfactory.com/developers/api/list_postable_videos.md).

No inputs.

### Upload your own video or photo to post (`prepare_post_upload`)

_Changes things_

Get a one-time upload link for a video (MP4 or MOV, up to 300 MB) or photo (JPG) to post on one of the brand's accounts. The file goes to uploadUrl with the given method and headers, and the returned upload object is what schedule_post takes. Only for clients that can send files. REST: [`POST /posts/uploads`](https://yapfactory.com/developers/api/prepare_post_upload.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `accountId` | `uuid` | yes | The account the file is for. |
| `filename` | `string` | yes | The file's name, with its extension. 1 to 200 characters. |
| `contentType` | `string` | yes | video/mp4, video/quicktime or image/jpeg. |
| `sizeBytes` | `integer` | yes | The file's size in bytes. Up to 9007199254740991. |

### Schedule a post (`schedule_post`)

_Changes things · Tells other people_

Schedule a video or photos to go out on one or more of the brand's own TikTok and Instagram accounts at a set time (at least 10 minutes and at most 60 days ahead). It posts publicly at that time, so it is for use once the person has seen the account, video, caption, time and (TikTok) audience and agreed. For TikTok the audience is the person's own choice from get_post_account. Not for creators' accounts. REST: [`POST /posts`](https://yapfactory.com/developers/api/schedule_post.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `accounts` | `object[]` | yes | The accounts to post to, from list_post_accounts. 1 to 10 items. |
| `accounts[].accountId` | `uuid` | yes | The account's id. |
| `accounts[].mode` | `"direct" \| "drafts"` | no | direct posts it; drafts sends it to the TikTok app's drafts for the person to finish (TikTok only). Default `"direct"`. |
| `media` | `({ deliverableId } \| { upload })[]` | yes | One video, one photo, or several photos (a carousel), in order. 1 to 35 items. |
| `caption` | `string` | no | The words under the post, hashtags included. Up to 2200 characters. Default `""`. |
| `publishAt` | `datetime` | yes | When it goes out, ISO 8601 with a time zone, e.g. 2026-12-10T18:00:00Z. |
| `timeZone` | `string` | no | The person's IANA time zone, for how times are shown to them, e.g. Europe/London. Up to 60 characters. Default `"UTC"`. |
| `tiktok` | `object` | no | Needed when posting directly to a TikTok account. |
| `tiktok.privacy` | `"PUBLIC_TO_EVERYONE" \| "MUTUAL_FOLLOW_FRIENDS" \| "FOLLOWER_OF_CREATOR" \| "SELF_ONLY"` | yes | Who can see it: the person's choice, from get_post_account. |
| `tiktok.allowComments` | `boolean` | no | Let people comment, if get_post_account says the account allows it. Default `false`. |
| `tiktok.allowDuet` | `boolean` | no | Let people Duet it (videos only). Default `false`. |
| `tiktok.allowStitch` | `boolean` | no | Let people Stitch it (videos only). Default `false`. |
| `tiktok.disclose` | `boolean` | no | Disclose commercial content. Default `false`. |
| `tiktok.yourBrand` | `boolean` | no | Promotional content for your own brand. Default `false`. |
| `tiktok.brandedContent` | `boolean` | no | A paid partnership for another brand (can't be Only me). Default `false`. |
| `instagram` | `object` | no |  |
| `instagram.shareToFeed` | `boolean` | no | Reels also show in the main feed. Default `true`. |

### List scheduled posts (`list_posts`)

_Reads_

The brand's posts across its accounts: what's coming up, what went live (with its link) and anything that needs the person (a failed post says why). Defaults to the last 7 days and everything ahead. REST: [`GET /posts`](https://yapfactory.com/developers/api/list_posts.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `status` | `"upcoming" \| "live" \| "needs_action" \| "all"` | no | upcoming: not out yet. live: posted. needs_action: stopped and needs the person. Default `"all"`. |
| `from` | `datetime` | no | Start of the range (default: 7 days ago). |
| `to` | `datetime` | no | End of the range (default: 60 days ahead). |

### Change a scheduled post (`update_post`)

_Changes things_

Change the caption or time of a post that hasn't gone out. For use once the person has agreed the change. REST: [`PATCH /posts/{postId}`](https://yapfactory.com/developers/api/update_post.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `postId` | `uuid` | yes | The post's id. |
| `caption` | `string` | no | The new caption. Up to 2200 characters. |
| `publishAt` | `datetime` | no | The new time, ISO 8601 with a time zone, 10 minutes to 60 days ahead. |

### Cancel a scheduled post (`cancel_post`)

_Changes things · Can't be undone_

Cancel a post that hasn't gone out, so it never posts. It can't be undone, though the post can be scheduled again. A post that's already live has to be deleted in TikTok or Instagram. REST: [`POST /posts/{postId}/cancel`](https://yapfactory.com/developers/api/cancel_post.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `postId` | `uuid` | yes | The post's id. |

## Creators

Only on a creator account.

### Browse campaigns (`browse_campaigns`)

_Reads_

Live campaigns you could work on, with what each pays you, its fit with your profile and the brand's rating. REST: [`GET /marketplace/campaigns`](https://yapfactory.com/developers/api/browse_campaigns.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | `string` | no | Words to look for in the product or brief. Up to 100 characters. |
| `category` | `string` | no | Only this product category, e.g. Health & Fitness. Up to 60 characters. |
| `country` | `string` | no | Only campaigns for this audience country, e.g. US. Up to 10 characters. |
| `sort` | `"fit" \| "newest" \| "pay" \| "rating"` | no | fit: best match for your profile first. pay: what you'd earn, highest first. rating: best rated brands first. Default `"fit"`. |
| `page` | `integer` | no | 1 to 50. Default `1`. |

### Read a campaign brief (`view_campaign_brief`)

_Reads_

A live campaign's full brief as a creator sees it: what to make, the deadline, the ad rights, what it pays you line by line, and whether you can ask to join. REST: [`GET /marketplace/campaigns/{campaignId}`](https://yapfactory.com/developers/api/view_campaign_brief.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `campaignId` | `uuid` | yes | The campaign's id. |

### Ask to join a campaign (`ask_to_join`)

_Changes things · Tells other people_

Tell the brand you'd like to make this campaign. You go on their shortlist; some brands invite straight away. Free, no limit. For use once the person has agreed. REST: [`POST /marketplace/campaigns/{campaignId}/ask`](https://yapfactory.com/developers/api/ask_to_join.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `campaignId` | `uuid` | yes | The campaign's id. |

### Answer an invite (`respond_to_invite`)

_Changes things · Tells other people · Can't be undone_

Say yes ("I'm in") or no to a brand's invite. A yes commits you to the offer if the brand starts the deal within 3 days. For use once the person has agreed. REST: [`POST /deals/{dealId}/answer`](https://yapfactory.com/developers/api/respond_to_invite.md).

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `dealId` | `uuid` | yes | The deal's id. |
| `accept` | `boolean` | yes | true: I'm in. false: not this time. |
| `reason` | `string` | no | When declining, a short reason for the brand. Up to 500 characters. |

## Also on the server

### How to use Yap Factory well (`get_usage_instructions`)

_Everyone · Reads_

Returns the server's rules for working on someone's account: what needs their OK first, what happens on the website, and how amounts and links work. The same text the server sends as its instructions, for apps that don't pass those to the model. No inputs, and no REST twin.

### Prompts

Ready-made workflows a person can pick in apps that support MCP prompts. Each gives the assistant the steps and the rules.

| Prompt | For | What it does |
| --- | --- | --- |
| `run_campaign` | Brands | Plan, draft and publish a campaign, then line up creators. Not for checking on deals already running (use check_deals). |
| `find_creators` | Brands | Shortlist and invite creators for one live campaign. Not for writing the brief (use run_campaign). |
| `check_deals` | Brands | Go through open deals and say what's waiting on me: creators who said yes, drafts to review, messages. Not for starting new campaigns. |
| `write_brief` | Brands | Turn a product and a goal into a short creator brief, and save it to a draft. Not for publishing or inviting. |
| `schedule_posts` | Brands | Plan and schedule finished videos to the brand's own TikTok and Instagram accounts. Not for finding creators or reviewing drafts. |
| `find_work` | Creators | Browse live campaigns, read the briefs that fit and ask to join. Not for answering invites (use answer_invites). |
| `answer_invites` | Creators | Go through invites from brands and answer them with me. Not for finding new campaigns (use find_work). |

---

HTML version: https://yapfactory.com/developers/tools
