# MCP tools

What an AI tool can read and change.

A tool shows up only if your connection has its scope. Tools that change things also need **View and change** (or a key with the write scope), and a role that may make that change. Viewers never change anything. Setters may only add notes and set stages.

## Reading

| Tool | Gives | Scope it needs |
|---|---|---|
| `get_workspace` | Which workspace this is, your role, what the connection may do | Any |
| `get_overview` | Main numbers, match rate and Unknown money | `reports:read` |
| `compare_dates` | Two date ranges and the change | `reports:read` |
| `get_timeseries` | Numbers by day, week or month (at most 400 rows) | `reports:read` |
| `list_content` | Posts ranked by money, clicks, sales or bookings | `reports:read` |
| `get_content` | One post: links, all 5 credit models, top sales | `reports:read` |
| `list_channels` | Money by channel, Unknown as its own row | `reports:read` |
| `get_funnel` | Clicks, forms, bookings, sales, with rates | `reports:read` |
| `compare_credit_models` | The same posts under all 5 credit models | `reports:read` |
| `list_sales` | Sales, how each was matched, what its credit rests on | `sales:read` |
| `explain_sale` | Why a sale got its credit, and how strong the proof is | `sales:read` |
| `list_discount_codes` | Codes tied to posts and links, with their sales | `sales:read` |
| `list_checkout_answers` | "Where did you hear about us" answers, with money | `sales:read` |
| `list_people` | People with stage and score, contacts masked | `people:read` |
| `get_journey` | One person's steps and score reasons | `people:read` |
| `list_hot_leads` | People to message now, with the reason | `people:read` |
| `list_links` | Links with clicks and money | `links:read` |
| `get_link` | One link: clicks by day and its money | `links:read` |
| `check_health` | Tracking problems and fixes | `health:read` |
| `get_match_rate` | How much money we could tie to a post, by week | `health:read` |
| `get_setup_guide` | Setup steps | Any |
| `get_data_rules` | How each number is worked out | Any |
| `search` | Find posts, links, sales and people by words (for ChatGPT) | `reports:read` |
| `fetch` | Read one item from `search` as short text (for ChatGPT) | `reports:read` |

## Changing

| Tool | Does | Scope it needs |
|---|---|---|
| `create_link` | Makes a short link | `links:write` |
| `update_link` | Changes where a link goes, its ending or its place | `links:write` |
| `pause_link` | Stops a link from sending people on | `links:write` |
| `resume_link` | Turns a paused link back on | `links:write` |
| `add_content` | Adds a post we can't import, like a podcast | `links:write` |
| `tie_discount_code` | Ties a discount code to a post or link | `links:write` |
| `add_note` | Adds a note to a person | `people:write` |
| `set_stage` | Moves a person to a stage | `people:write` |

Every change takes two steps:

1. The tool runs with `dry_run: true` (the default). Nothing changes. It shows what would happen and gives a `confirm_token`.
2. If you agree, it runs again with the same inputs, `dry_run: false` and the `confirm_token`.

A token lasts 10 minutes and works for one change, with those exact inputs. Sending the same confirmed call twice makes one change, not two. A connection may make 10 changes a minute and 200 a day. Each change is in your audit log, with the app's name.

There are no delete tools, and no tool changes sales or credit by hand. Do those in the app.

## Prompts and resources

Prompts: `weekly_review`, `find_best_content`, `why_did_sales_change`, `hot_leads_today`, `fix_my_tracking` and `explain_a_sale`. None of them change anything. `hot_leads_today` drafts messages but never sends them.

Resources: `totems://workspace/summary`, `totems://docs/data-rules`, `totems://docs/credit-models`, `totems://docs/setup-guide`, `totems://docs/glossary`, and one post, sale or person by id (`totems://content/{id}`, `totems://sale/{id}`, `totems://person/{id}`).

## Answers

Money is whole cents (`amount_cents`) with a formatted copy (`amount`). Each money answer has an `unknown` block for sales we could not tie to a post. Single moments are UTC (`at`) with a local copy (`at_local`).

## Long lists

Lists give at most 50 rows at a time (`limit`, starts as 20). Each answer is at most about 20 KB. When there are more rows, the answer has a `next_cursor`. Send it back as `cursor`. When `next_cursor` is `null`, you have them all.

## Limits

A connection can make 120 MCP calls a minute, and one workspace 600. Over that, the answer is status 429 with a `Retry-After` header. A call that needs a scope the connection doesn't have gets status 403 with a scope challenge, so the tool can ask you for more.

Emails and phones are masked for everyone, unless an owner made an API key with "Show full emails and phones". They never show in `search`, `fetch` or resources.
