# Margin's MCP tools

Connected to Margin, your AI assistant gets these tools. Each says what it does and its class: a read changes nothing, a write changes something in Margin, and a sensitive write reaches your social accounts. The list comes from the server's own code, so it matches what your assistant is given.

## What the classes mean

- **Read:** Changes nothing, in Margin or on your social accounts. Your assistant may ask before each use, until you let it always run.
- **Write:** Changes something in Margin, such as a design, a canvas or a comment. Nothing goes to your social accounts. Your assistant may ask before each use, until you let it always run.
- **Sensitive write:** Publishes or schedules on your social accounts, stops what would go out, takes back what went out, or disconnects an account. Assistants that tell these apart ask you every time.

Publishing a post right away always takes a second yes. The first call sends nothing: it answers with exactly what each account would get, for your assistant to show you. Only after your yes does a second call send it, once. retry_post is the one tool that sends at once: it sends again, to one account, a post that was already due to go out and failed there.

The labels are the hints the server sends with each tool. Read-only: it changes nothing. Destructive: it can delete, overwrite, cancel, revoke or send what can't be taken back, even where Margin could undo it. Open world: it reaches outside Margin, to a social network or a link it's given.

## Read

| Tool | Title | What it does | Hints |
|---|---|---|---|
| `read` | Read a canvas file | Reads a file of a canvas as numbered lines; a frame's picture comes back as an image of it. | Read-only |
| `list_uploads` | List uploads | Lists the images or videos kept in an organization or a project, newest first. | Read-only |
| `view_canvas` | View a canvas | Shows an area of a canvas as an image, to see where its frames lie and how they look. | Read-only |
| `get_social_guide` | Read the social guide | Reads Margin's guide to making posts: how the tools fit together and what each connected network takes. | Read-only |
| `get_limits` | Get network limits | Gives what each network takes: its text, images, video, threads, alt text and options. | Read-only |
| `list_accounts` | List social accounts | Lists an organization's social accounts with their status and followers, and what needs your attention. | Read-only |
| `get_account` | Get a social account | Gives one social account in full: status, followers, recent numbers, and its boards or company pages. | Read-only, Open world |
| `list_posts` | List posts | Lists an organization's posts a page at a time, filtered by status, dates, account, canvas, words or tag. | Read-only |
| `get_calendar` | Get the calendar | Gives an organization's posts day by day, for up to a month, with drafts when asked. | Read-only |
| `get_post` | Get a post | Gives one post in full: its status, time, text and images, and each account's link, error and numbers. | Read-only |
| `get_social_stats` | Get social numbers | Gives an organization's numbers over a period: followers, engagement and best posts, by tag and by format. | Read-only |
| `list_account_posts` | List an account's posts | Lists one account's posts over a period with their numbers, those published outside Margin too. | Read-only |
| `get_best_times` | Get best times to post | Gives up to three weekday-and-hour slots when an organization's or an account's posts did best. | Read-only |
| `check_video` | Check a video | Says which connected accounts would take a video, in which form, and why the others would refuse it. | Read-only, Open world |

## Write

| Tool | Title | What it does | Hints |
|---|---|---|---|
| `bash` | Run a folder command | Runs a command on your canvas folders, such as ls, find, grep or cat to read them, or cp, mv, rm or sed -i to change files. | Destructive |
| `write_html` | Write a frame | Writes a frame, a loose element or a set of frames, whole or one part; people on the canvas see it at once. | Destructive |
| `upload` | Upload images or video | Brings images and finished videos into Margin from links or files, and can delete uploads no frame or post outside the Archive uses. | Destructive, Open world |
| `render_frames` | Render frames as images | Draws your own frames as images, kept as uploads ready for a post. It generates nothing. | none |
| `finish_work` | Finish work on a canvas | Tells the people on a canvas that your assistant has finished there, so it no longer shows as at work. | none |
| `reply_comment` | Reply to a comment | Answers a comment or a prompt on a canvas under your assistant's name; people read it at once. | none |
| `resolve_comment` | Resolve a comment | Marks a comment or a prompt on a canvas as resolved, once what it asked is done. | none |
| `create_project` | Create a project | Makes a new, empty project in an organization. | none |
| `create_canvas` | Create a canvas | Makes a new, empty canvas in a project, with its page in the app. | none |
| `rename_canvas` | Rename a canvas | Gives a canvas another name; its folder takes the new name. | Destructive |
| `move_canvas` | Move a canvas | Moves a canvas to another project of the same organization. | Destructive |
| `archive_canvas` | Archive a canvas | Archives a canvas: it leaves the app's lists with its files kept, and restore_canvas brings it back. | Destructive |
| `restore_canvas` | Restore a canvas | Brings an archived canvas back to its project. | none |
| `tag_posts` | Tag posts | Sets the tags of up to 100 posts at once, so numbers can be grouped by them; nothing is sent anywhere. | Destructive |
| `link_post` | Link a published post | Brings a post published straight on a network into Margin by its link, with its numbers; nothing changes there. | none |
| `connect_account` | Connect an account | Makes a link you open to connect or reconnect a social account; your assistant never sees a password. | none |
| `set_social_rules` | Set posting rules | Replaces an organization's posting rules, which every post made or changed is checked against. | Destructive |

## Sensitive write

| Tool | Title | What it does | Hints |
|---|---|---|---|
| `create_post` | Create a post | Makes a post: a draft, scheduled, or published now once you've seen what each account gets and said yes. | Destructive, Open world |
| `create_posts` | Create several posts | Makes many scheduled posts or drafts in one call, never for now; a dry run can show them to you first. | Destructive, Open world |
| `edit_post` | Edit a post | Changes a draft or a scheduled post; a draft given a time is scheduled, or published now after your yes. | Destructive, Open world |
| `cancel_post` | Cancel a post | Cancels a scheduled post, or stops the accounts still waiting on one going out; what went out stays. | Destructive, Open world |
| `retry_post` | Retry a post | Sends a post again, now, to one account it failed on. | Destructive, Open world |
| `delete_post` | Delete a post | Deletes a post: a draft for good; a published one comes off every network that lets apps delete posts. | Destructive, Open world |
| `disconnect_account` | Disconnect an account | Disconnects a social account: posts stop going to it and its scheduled posts fail there. | Destructive, Open world |

`get_post_status`: called only by the post card a chat shows, never by your assistant.

## Next steps

- Connect your assistant: https://margin.design/mcp-clients
- Setup playbook for agents: https://margin.design/get-started.md
