# Tools

> Every MCP tool HookTrack gives an agent, with its fields.

Every tool also takes `workspace` (see [Connect an agent](/docs/agents#apps)). A tool answers JSON; a refused or bad call answers one line the agent can fix.

## Read

### `list_workspaces`

The apps you are in, your role in each, and the default one. Pass an app's name as `workspace` to any tool.

No fields.

### `status`

Start here: when numbers were last read per platform, counts, Refresh spend, what you may do. Reads run on HookTrack’s server on a schedule.

No fields.

### `list_accounts`

Every listed account with its health label, usual views, followers and the last 7 days. A paused one is kept in the list but not read: its numbers stop where it was paused.

| Field | Type | What it is |
| --- | --- | --- |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` |  |
| `group` (optional) | `string` | Group name, e.g. "persona". |

### `account_health`

Accounts that need a look, worst first: bad = not found, private, posts hidden or a fresh post at very low views (dead or shadowbanned); warn = the last posts fell well under usual views. Health is a signal, not proof.

No fields.

### `account`

One account: its numbers, notes, weekly median views (12 weeks), installs per 1,000 views from its posts that blew up with its verdict (brings, unclear, few; null before one has), and its newest posts with each post's score.

| Field | Type | What it is |
| --- | --- | --- |
| `account` | `string` | Account id or handle, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |
| `posts` (optional) | `integer` | Default `30`. |

### `list_posts`

Posts of one account, of one format, or the unsorted ones (no format yet), newest first. Pass exactly one of account, format, unsorted.

| Field | Type | What it is |
| --- | --- | --- |
| `account` (optional) | `string` | Account id or handle, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |
| `format` (optional) | `string` | Format id or exact name. |
| `unsorted` (optional) | `boolean` |  |
| `limit` (optional) | `integer` | Default `50`. |
| `captions` (optional) | `boolean` | Add each post's caption. Default `false`. |

### `post`

One post in full: caption, hashtags, sound, every number, its link and format.

| Field | Type | What it is |
| --- | --- | --- |
| `id` | `string` | Post id from list_posts or account. |

### `list_formats`

Every format on the board (columns idea, testing, locked, off) with posts, views and median numbers.

| Field | Type | What it is |
| --- | --- | --- |
| `status` (optional) | `"idea" \| "testing" \| "locked" \| "off"` |  |

### `format`

One format: notes, weekly medians, references (refs: other creators' posts it copies) and its newest posts.

| Field | Type | What it is |
| --- | --- | --- |
| `format` | `string` | Format id or exact name. |
| `posts` (optional) | `integer` | Default `30`. |

### `overview`

The site's top card for a period: views gained, posts and followers gained across every listed account, each vs the period before, as bars, and the accounts and formats that brought the most. Start here for "how are we doing", "what changed".

| Field | Type | What it is |
| --- | --- | --- |
| `period` (optional) | `string` | 7d (default), 30d, 90d, 6m, 12m, all, or two days as 2026-11-01_2026-11-15, both counted. Default `"7d"`. |
| `timezone` (optional) | `string` | The user's IANA time zone (America/New_York) so days match their screen; default UTC. |

### `compare`

Rank and compare accounts, formats, platforms or groups (your own words to sort accounts, such as ours or rivals) over a period, as the site's list beside the chart: views (an account's: gained in the period; a format's: of its posts made in the period), posts, followers gained, each vs the period before. `only` narrows to some names; `bars` adds each row's views per day (week, month on long periods) to compare lines.

| Field | Type | What it is |
| --- | --- | --- |
| `by` | `"accounts" \| "formats" \| "platforms" \| "groups"` |  |
| `period` (optional) | `string` | 7d (default), 30d, 90d, 6m, 12m, all, or two days as 2026-11-01_2026-11-15, both counted. Default `"7d"`. |
| `timezone` (optional) | `string` | The user's IANA time zone (America/New_York) so days match their screen; default UTC. |
| `only` (optional) | `string[]` | Names to keep: handles, format names, tiktok/instagram, or group names. |
| `sort` (optional) | `"views" \| "posts" \| "followers"` | followers = followers gained in the period; not for formats. Default `"views"`. |
| `bars` (optional) | `boolean` | Default `false`. |
| `limit` (optional) | `integer` | Default `20`. |

### `top_posts`

Posts made in a period, most views first, across every listed account (the site's day panel and "which posts flew"), each with its account, format and link. Narrow by account, format or platform.

| Field | Type | What it is |
| --- | --- | --- |
| `period` (optional) | `string` | 7d (default), 30d, 90d, 6m, 12m, all, or two days as 2026-11-01_2026-11-15, both counted. Default `"7d"`. |
| `timezone` (optional) | `string` | The user's IANA time zone (America/New_York) so days match their screen; default UTC. |
| `account` (optional) | `string` | Account id or handle, e.g. "@lily.hartley". |
| `format` (optional) | `string` | Format id or exact name. |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` |  |
| `limit` (optional) | `integer` | Default `20`. |

### `activity`

Who changed what in this app, newest first (Settings › Log): each line says who, when, what ("changed format Skits (name)") and the agent app when an agent did it. Narrow by period and kind as the Log's filters. Pass the answer's next as before for older ones.

| Field | Type | What it is |
| --- | --- | --- |
| `period` (optional) | `string` | 7d, 30d, 90d, 6m, 12m, all (default), or two days as 2026-11-01_2026-11-15, both counted. Default `"all"`. |
| `timezone` (optional) | `string` | The user's IANA time zone (America/New_York) so days match their screen; default UTC. |
| `kind` (optional) | `"accounts" \| "formats" \| "tests" \| "team" \| "app"` | Only changes to accounts, formats, tests, the team or the app itself (name, settings, groups, links); default all. |
| `before` (optional) | `object` | The answer's next, for the page after. |

### `installs_by_day`

The app's own numbers per UTC day from its linked services (RevenueCat, Superwall, Adapty): installs (first launches, not store downloads), trials, new paid subscriptions, revenue in USD (gross: what buyers paid, before taxes and store fees); names gives each number's own name at its service (RevenueCat New customers, Superwall New users, Adapty Installs). The whole app's: no service says which account or post brought a person.

| Field | Type | What it is |
| --- | --- | --- |
| `period` (optional) | `string` | 7d (default), 30d, 90d, 6m, 12m, all, or two days as 2026-11-01_2026-11-15, both counted. Default `"7d"`. |

### `store_by_day`

The App Store's own numbers per day from App Store Connect (once linked on Settings › Integrations): impressions (the devices that saw the app's icon that day, Apple's unique impressions; a period adds its days), pageViews (product page views), downloads (installs: Apple's first-time downloads), redownloads. Apple sends a day's numbers one to three days later. The whole app's, never split by account or post.

| Field | Type | What it is |
| --- | --- | --- |
| `period` (optional) | `string` | 7d (default), 30d, 90d, 6m, 12m, all, or two days as 2026-11-01_2026-11-15, both counted. Default `"7d"`. |

### `spikes`

Posts that blew up (past the app's spike settings) and the extra installs the app got right after each, per 1,000 of the post's views. An estimate. Newest first.

| Field | Type | What it is |
| --- | --- | --- |
| `limit` (optional) | `integer` | Default `30`. |

### `format_installs`

Installs each format brings per 1,000 views, estimated from its posts that blew up (see spikes), the most first, with its verdict as the app shows it: brings (the app clearly rose after its spikes), unclear, or few (not enough spikes yet). Formats with no spike yet are left out.

No fields.

### `list_tests`

Every A/B test: what changes, its formats, its options, how many posts, and where it stands (the leader and its chance to win, or the result once ended). Running first.

No fields.

### `test_result`

One test's numbers per option: score (views against the account's usual), share over 1×, posts, chance to win, installs per 1,000 views on spike days; and its posts with their option.

| Field | Type | What it is |
| --- | --- | --- |
| `test` | `string` | Test id or exact name. |
| `posts` (optional) | `integer` | Newest posts to list. Default `20`. |
| `untagged` (optional) | `boolean` | List only its posts with no option yet. Default `false`. |
| `captions` (optional) | `boolean` | Add each post's caption. Default `false`. |

### `untagged`

Posts that still need an option in a running test (made on its formats while it runs, with no tag and no rule for them), one row a post with the tests it misses, newest first, caption included: the list to work through with tag_posts.

| Field | Type | What it is |
| --- | --- | --- |
| `test` (optional) | `string` | Only this test. |
| `account` (optional) | `string` | Account id or handle, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |
| `limit` (optional) | `integer` | Default `100`. |

### `list_requests`

HookTrack's feature request board (the same for every user): each request's title, details, status, votes and whether the user voted or asked for it, most votes first.

No fields.

## Change formats and notes

### `refresh`

Read every account of this app now (one read in the last 15 minutes is skipped), or only `account`, as its card's Refresh (read even if just read). Numbers land within minutes; status shows when.

| Field | Type | What it is |
| --- | --- | --- |
| `account` (optional) | `string` | Account id or handle, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |

### `assign_formats`

Give posts their format: a list of { post, format } (format null puts it back with the unsorted posts). All or none: one wrong line changes nothing and says which.

| Field | Type | What it is |
| --- | --- | --- |
| `posts` | `object[]` |  |

### `set_account_formats`

The formats an account posts now (replaces the list; [] clears it). With exactly one, its new posts get that format by themselves; with more, they wait in unsorted for assign_formats.

| Field | Type | What it is |
| --- | --- | --- |
| `account` | `string` | Account id or handle, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |
| `formats` | `string[]` |  |

### `add_format`

Add a format (lands at the end of its column, "idea" unless said).

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` |  |
| `kind` | `"video" \| "photo"` |  |
| `status` (optional) | `"idea" \| "testing" \| "locked" \| "off"` | Default `"idea"`. |
| `group` (optional) | `string` | Group name; a new name makes a new group. |
| `notes` (optional) | `string` | What it is and why it works (Markdown); its first lines show on the card. |

### `update_format`

Change a format's name, kind, group or notes. Only the fields given change. Moving it between columns is move_format.

| Field | Type | What it is |
| --- | --- | --- |
| `format` | `string` | Format id or exact name. |
| `name` (optional) | `string` |  |
| `kind` (optional) | `"video" \| "photo"` |  |
| `group` (optional) | `any` |  |
| `notes` (optional) | `string` |  |

### `move_format`

Move a format to a column (idea, testing, locked, off), before another format or at the column's end.

| Field | Type | What it is |
| --- | --- | --- |
| `format` | `string` | Format id or exact name. |
| `status` | `"idea" \| "testing" \| "locked" \| "off"` |  |
| `before` (optional) | `string` | Format id or name to land before. |

### `add_refs`

Add other creators' TikTok, Instagram or YouTube posts as references of formats, each with its hook: a list of { format, link, hook }. A post already a reference of that format is skipped. All or none: one wrong line changes nothing and says which.

| Field | Type | What it is |
| --- | --- | --- |
| `refs` | `object[]` |  |

### `update_ref`

Change a reference's hook in place (its id is in the format tool's refs); an empty hook clears it.

| Field | Type | What it is |
| --- | --- | --- |
| `format` | `string` | Format id or exact name. |
| `ref` | `string` | Reference id from format. |
| `hook` | `string` |  |

### `remove_ref`

Take a reference off its format (its id is in the format tool's refs).

| Field | Type | What it is |
| --- | --- | --- |
| `format` | `string` | Format id or exact name. |
| `ref` | `string` | Reference id from format. |

### `remove_format`

Delete a format with its references and pictures. Refused while posts have it: move_format to "off" keeps its numbers.

| Field | Type | What it is |
| --- | --- | --- |
| `format` | `string` | Format id or exact name. |

### `update_account`

Change an account's notes (Markdown), label (its device, e.g. iPhone 13), group, or pause it. Only the fields given change. Its formats are set_account_formats.

| Field | Type | What it is |
| --- | --- | --- |
| `account` | `string` | Account id or handle, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |
| `notes` (optional) | `string` |  |
| `label` (optional) | `any` |  |
| `group` (optional) | `any` | Group name (your word to sort accounts); a new name makes a new group. |
| `paused` (optional) | `boolean` | true = keep it in the list but stop reading it (off the plan); false = read it again. |

### `update_group`

Rename a group (the word that sorts accounts and formats) everywhere it is used, as Settings › General.

| Field | Type | What it is |
| --- | --- | --- |
| `group` | `string` | Group name now. |
| `name` | `string` | Its new name. |

### `remove_group`

Delete a group: its accounts and formats stay, with no group.

| Field | Type | What it is |
| --- | --- | --- |
| `group` | `string` | Group name. |

### `add_test`

Start an A/B test on one or more formats. join says how posts get their option: agent (plan_post or tag_posts, the default), hand (a tap on the site), account (each option posted by its accounts), caption (each option by words its caption has; one option may have none = everything else).

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | What changes, e.g. "App mention". |
| `formats` | `string[]` |  |
| `join` (optional) | `"hand" \| "account" \| "caption" \| "agent"` | Default `"agent"`. |
| `options` | `object[]` |  |

### `plan_post`

Tell HookTrack about a post before it goes out (or after, with its link): its caption, account, format and its choice in each test ({ test name: option }). Once the post is read it is found (by its link, else by its caption on that account) and gets them, so tests fill themselves. Pass account: other accounts often post the same hashtags. Each named test runs on that format from now on; a test or option not there yet is made (up to 4 options).

| Field | Type | What it is |
| --- | --- | --- |
| `caption` (optional) | `string` | The caption it goes out with, hashtags included. |
| `account` (optional) | `string` | The account that posts it, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |
| `link` (optional) | `string` | The post link, once it is out: found by it exactly. |
| `format` (optional) | `string` | Format id or exact name. |
| `choices` (optional) | `object` | { "App mention": "slide 3", "Hook": "question" }. Default `{}`. |

### `tag_posts`

Give posts their option in a test: a list of { test, post, option } (null takes the tag off: the test's rule decides again). All or none: one wrong line changes nothing and says which.

| Field | Type | What it is |
| --- | --- | --- |
| `tags` | `object[]` |  |

### `end_test`

End a test: won (with the winning option), same, or unclear. Write what was learned into its notes with notes.

| Field | Type | What it is |
| --- | --- | --- |
| `test` | `string` | Test id or exact name. |
| `result` | `"won" \| "same" \| "unclear"` |  |
| `winner` (optional) | `string` | The option that won, when result is won. |
| `notes` (optional) | `string` | What was learned (Markdown); replaces its notes. |

### `update_test`

Change a test as its Edit form on the site does: name, formats (replaces the list), join, options, notes. Only the fields given change. options replaces the list: an option keeps its posts when its label, or `was` to rename it, matches one there; one left out is removed, and its posts lose that option (they stay; a tap or the test's rule decides again). A removed winner turns an ended test unclear.

| Field | Type | What it is |
| --- | --- | --- |
| `test` | `string` | Test id or exact name. |
| `name` (optional) | `string` | What changes. |
| `formats` (optional) | `string[]` | Every format it runs on. |
| `join` (optional) | `"hand" \| "account" \| "caption" \| "agent"` |  |
| `options` (optional) | `object[]` | Every option it keeps, in order. |
| `notes` (optional) | `string` | Markdown; replaces its notes. |

### `reopen_test`

Bring an ended test back to running, its result cleared (the site's Reopen).

| Field | Type | What it is |
| --- | --- | --- |
| `test` | `string` | Test id or exact name. |

### `remove_test`

Delete a test with its options, notes and the options its posts have; the posts stay. end_test keeps what was learned instead.

| Field | Type | What it is |
| --- | --- | --- |
| `test` | `string` | Test id or exact name. |

### `vote_request`

Vote for a request on HookTrack's board for the user (its id from list_requests), or take the vote back with on: false.

| Field | Type | What it is |
| --- | --- | --- |
| `request` | `string` | Request id from list_requests. |
| `on` (optional) | `boolean` | Default `true`. |

### `add_request`

Post a feature request to HookTrack's board for the user, with their vote on it. Check list_requests first: vote there instead of posting a copy.

| Field | Type | What it is |
| --- | --- | --- |
| `title` | `string` | What the user would like, e.g. "Track Threads". |
| `details` (optional) | `string` | What it would help them do. |

## Add and remove accounts

### `add_account`

Add an account to read (a handle or profile link). It is read at once; numbers show in a minute, its older posts follow in the background. paused: read once for its name and picture, then kept in the list without reading (off the plan).

| Field | Type | What it is |
| --- | --- | --- |
| `handle` | `string` | Handle or profile link. |
| `network` | `"tiktok" \| "instagram" \| "youtube"` |  |
| `group` (optional) | `string` |  |
| `label` (optional) | `string` | Its device: the phone or cloud phone it posts from, e.g. iPhone 13. |
| `history` (optional) | `"1w" \| "1m" \| "3m" \| "6m" \| "1y" \| "all" \| "date"` | How far back its posts go, counted from today: 1w = Last week, 1m = Last month, 3m = Last 3 months, 6m = Last 6 months, 1y = Last year, all = All time, or date = from the day in `from`. Older posts are not read or counted. Default `"1m"`. |
| `from` (optional) | `string` | With history date: the day its posts count from, YYYY-MM-DD. |
| `paused` (optional) | `boolean` | Keep it in the list without reading it after its first read. Default `false`. |

### `remove_account`

Take an account off the list (its posts stay for format numbers).

| Field | Type | What it is |
| --- | --- | --- |
| `account` | `string` | Account id or handle, e.g. "@lily.hartley". |
| `network` (optional) | `"tiktok" \| "instagram" \| "youtube"` | The platform: only when the handle is on more than one. |

