Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Addgeneratedreply
PLAIN_MCP_ADD_GENERATED_REPLYAdd an AI-generated reply suggestion to a thread. Required fields: - threadId: The ID of the thread to add the generated reply to. - timelineEntryId: The ID of the timeline entry to associate the reply with. - markdown: The markdown content of the generated reply.
Addlabels
PLAIN_MCP_ADD_LABELSAdd labels to a thread by label type IDs. Labels are used to categorize and organize threads.
Archivelabeltype
PLAIN_MCP_ARCHIVE_LABEL_TYPEArchive a label type to hide it from the active label list. Archived label types are no longer available for selection but existing labels remain on threads. Use this to deprecate label types without losing historical data.
Assignthread
PLAIN_MCP_ASSIGN_THREADAssign a thread to a user or machine user. Provide either userId or machineUserId, not both. If neither is provided, the thread will be assigned to the authenticated user.
Bulkupsertthreadfields
PLAIN_MCP_BULK_UPSERT_THREAD_FIELDSBulk upsert (create or update) multiple thread field values in a single operation. Provide an array of thread field inputs, each with thread ID, field key, field type, and value. Use this to efficiently set multiple custom fields on one or more threads.
Changethreadpriority
PLAIN_MCP_CHANGE_THREAD_PRIORITYChange the priority of a thread. Priority is an integer: 0 = urgent, 1 = high, 2 = normal, 3 = low.
Createbroadcast
PLAIN_MCP_CREATE_BROADCASTCreate a new broadcast: a message authored once and posted to many Slack channels at once. Creating one never sends it — a new broadcast is a DRAFT, and scheduling the real send is done by a human in the Plain app. Required input fields: `name`, `content`, `contentFormat`, `type`. - `name` identifies the broadcast internally and is never shown to recipients. It is what `searchBroadcasts` matches on. - `notificationTitle` is what recipients see in the notification the broadcast arrives as. It does leave Plain. Optional here, but the broadcast cannot be sent or tested until it is set. - `type` must be `SLACK`. It is fixed at creation: content is written against a channel's rendering rules, so a broadcast cannot be moved to another channel later. - `contentFormat` and `content` go together. From MCP, send `SLACK_BLOCK_KIT` and a JSON array of Slack blocks, as `chat.postMessage` would take. A one-paragraph body looks like this, passed as a string: "[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"Hello\"}}]" Buttons need a `url` — interactive elements do nothing in a broadcast. Images must be publicly reachable. This format cannot be edited in the Plain app. `TIPTAP` is still accepted (a serialised Tiptap document) and is what the app composer writes; do not use it unless you are copying content already stored that way. - `isLinkUnfurlingEnabled` controls whether Slack expands links and media. Defaults to true, which is Slack's own behaviour. - `senderType` is who the broadcast is sent as: `PLAIN_WORKSPACE` posts under the workspace's own name and logo and takes no `senderUserId`; `PLAIN_USER` posts as a Plain user and requires `senderUserId`. Get user IDs from `getMyUser` or `getUserByEmail`. Leave `senderEmailAddress` unset: it belongs to a future email channel, not to a Slack broadcast. - `sendTarget` is who the broadcast reaches, resolved to concrete channels at send time. `scope: ALL_TENANTS` means every tenant with a connected channel and rejects `filters`; `scope: MATCHING` requires `filters`. Omit `scope` to target only the channels named in `recipients`. Inside `filters`, dimensions AND together and values within a dimension OR, and it must constrain something — reaching everyone is `ALL_TENANTS`, not an empty filter. `audienceIds` reference saved audiences (`getBroadcastAudiences`), which must be of the same type as the broadcast. Both the sender and the target can be left unset here and filled in later with `updateBroadcast`. Use `sendTestBroadcast` to post a test copy to channels you name before a human schedules the real send.
Createbroadcastaudience
PLAIN_MCP_CREATE_BROADCAST_AUDIENCECreate a reusable broadcast audience: a named set of broadcast recipients, resolved to concrete Slack channels at send time rather than when saved. Required input fields: `name`, `type`, `filters`. - `name` identifies the audience internally and is never shown to recipients. - `type` must be `SLACK`. It is fixed at creation, and an audience can only be attached to a broadcast of the same type. - `filters` is what the audience selects. Dimensions on one node AND together and values within a dimension OR: `tierIds: [a, b]` means either tier, while `tierIds: [a]` plus `slackChannelNameContains: ["eng"]` means both must hold. An empty dimension cannot be written — omit it instead. - `tenantIds` / `tierIds` — get IDs from `getTenants` or `searchTenants`. - `tenantFields` — filter on a tenant field by its `externalFieldId`, supplying the value field matching the field's type. - `slackChannels` — channels pinned by ID, nothing re-resolves these, so an audience holding only these is a saved channel list. - `slackChannelNameContains` — unanchored, case-insensitive name substrings, ORed with each other and resolved at send time, so channels created or renamed later are picked up. - `and` / `or` / `not` hold further filters. `and` and `or` nest at most two levels deep. `not` may name a single dimension and nothing else. - `audienceIds` is rejected here: an audience cannot be defined in terms of another audience. It is only valid on a broadcast's own send target. - `filters: {}` — no rows at all — means every tenant, and is the only way to say so. Every nested node must constrain something. `filters` is validated against `type`, so a filter naming a dimension this type cannot resolve is rejected here rather than silently resolving to nobody at send time. Editing an audience later changes who every broadcast using it will reach on its next send.
Createlabeltype
PLAIN_MCP_CREATE_LABEL_TYPECreate a new label type for organizing threads. Label types can be single-select or multi-select, and can be hierarchical with parent label types. Use this to add new labels to your workspace's label taxonomy.
Createnote
PLAIN_MCP_CREATE_NOTECreate an internal note on a thread. Notes are visible to support agents only, not to customers. Requires a customerId and text content. Optionally provide a threadId to attach the note to a specific thread, and markdown for rich formatting.
Createsnippet
PLAIN_MCP_CREATE_SNIPPETCreate a new snippet (reusable reply template) in the workspace. `name` is what agents search for when inserting the snippet. `text` is the plain-text body (required). Optionally provide `markdown` for rich-text channels, and `path` (alphanumeric only) to place the snippet in a folder in the Plain app. Snippet bodies may include template variables that Plain interpolates when the snippet is inserted, for example: {{ customer.email }}, {{ customer.fullName }}, {{ customer.shortName }}, {{ user.publicName }}, {{ user.fullName }}, {{ thread.ref }}, {{ thread.id }}
Createthread
PLAIN_MCP_CREATE_THREADCreate a new thread for a customer. A thread is the unit of conversation in Plain. Use this when you need to open a new ticket on behalf of a customer (for example, capturing an internal report or a back-channel conversation). To send a message to the customer after creation, use `replyToThread`. To attach an internal note, use `createNote`. Required fields on `input`: - customerIdentifier: One of `customerId` (e.g. `c_...`), `externalId`, or `emailAddress`. The customer must already exist — call `upsertCustomer` first if it doesn't. Common optional fields: - title: Short summary of the thread. Defaults to `Support request` if omitted. - description: Preview text shown in thread lists. Inferred from message content when omitted (which only happens if you also send a first message). - priority: Integer 0–3, where 0 is most urgent and 3 is least urgent. Defaults to 2 (normal). Anything outside 0–3 is rejected. - assignedTo: Provide exactly one of `userId` or `machineUserId`. - labelTypeIds: Array of label type IDs (e.g. `lt_...`). Look these up via `getLabels` first; unknown IDs return a validation error. - threadFields: Each entry needs a `key` and `type` that match an existing thread field schema (see `getThreadFieldSchemas`). The schema must exist before you can attach a value. - tenantIdentifier: Provide either `tenantId` or `externalId` for an existing tenant. Unknown tenants return a validation error. - externalId: Your own unique identifier for this thread. Must be unique per workspace. - channel: One of `API` (default), `EMAIL`, `CHAT`, `INTERNAL`, `SLACK`, or `MS_TEAMS`. The schema also exposes `DISCORD` and `IMPORT`, but they are not accepted here — don't use them. - channelDetails: REQUIRED when `channel` is `SLACK` (provide `channelDetails.slack.{slackChannelId, slackTeamId}`) or `MS_TEAMS` (provide `channelDetails.msTeams.{msTeamsChannelId, msTeamsTeamId}`). MUST be omitted for any other channel — passing it returns a validation error. Gotchas: - This mutation only creates the thread shell. It does NOT send a message to the customer. Follow up with `replyToThread` if a customer-visible message is needed. - The legacy `components` and `attachmentIds` input fields are deprecated and should not be set — use `replyToThread` (or chat mutations) afterwards instead. - SLACK threads created this way are linked to a Slack channel/team but no Slack message is posted until you reply. - `customerIdentifier.emailAddress` will not auto-create a customer; the mutation fails if no customer matches. Thread URL format: https://app.plain.com/workspace/{workspaceId}/thread/{threadId}/ where `{threadId}` is the `id` returned below (starts with `th_`) and `{workspaceId}` comes from `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.
Createthreadfieldschema
PLAIN_MCP_CREATE_THREAD_FIELD_SCHEMACreate a new thread field schema to capture structured data on threads. Thread field schemas define custom fields that can be added to threads (e.g., priority score, department, due date). Supports text, number, boolean, date, and enum field types with optional defaults and AI auto-fill.
Createthreadlink
PLAIN_MCP_CREATE_THREAD_LINKLink a thread to an external entity (e.g. a Linear issue, Jira issue, incident.io incident, or another Plain thread/task). Provide the `threadId` plus exactly one way to identify the link target: - `linearIssue`: link a Linear issue (requires the workspace's Machine Users / API Linear integration to be configured — this is separate from a personal Linear connection. If it is not set up the call fails with `workspace_linear_integration_not_found`). - `jiraIssue`: link a Jira issue. - `plainThread` / `plainTask`: link another Plain thread or task. - `sourceId` + `sourceType`: link an issue tracker entity such as incident.io (`incidentio_incident`), Rootly, Shortcut, or GitHub. Use `searchThreadLinkCandidates` to discover the `sourceId` for a given `sourceType` before calling this.
Createworkspaceslackintegrationfromauth
PLAIN_MCP_CREATE_WORKSPACE_SLACK_INTEGRATION_FROM_AUTHConnect workspace Slack notifications using a Slack connection the workspace already has. There is no second OAuth install. Pass the id of an existing workspace Slack channel integration (`workspaceSlackChannelIntegrations`). Requires `workspaceSlackIntegration:create`. This does not choose the channel notifications post to, and it does not start posting. After it succeeds, set the `notification/slack/channel_id` setting on the new integration. Until that setting is present, Plain drops workspace Slack notifications for it.
Deletebroadcast
PLAIN_MCP_DELETE_BROADCASTSoft-delete a broadcast. Deleted broadcasts are excluded from `getBroadcasts` and `searchBroadcasts` but remain fetchable by ID with `getBroadcastDetails`, where `isDeleted` is true — so the record of what was sent survives. Deleting a broadcast whose send is already underway does not recall the messages it has already posted.
Deletebroadcastaudience
PLAIN_MCP_DELETE_BROADCAST_AUDIENCESoft-delete a broadcast audience. Deleted audiences are excluded from `getBroadcastAudiences` but stay fetchable by ID with `getBroadcastAudienceDetails`, so the record of what a past broadcast was sent to survives. Rejected with `cannot_delete_broadcast_audience` while a broadcast targeting the audience is scheduled or being sent, because past `SCHEDULED` its author can no longer edit the reference away.
Deletethreadfieldschema
PLAIN_MCP_DELETE_THREAD_FIELD_SCHEMADelete a thread field schema from the workspace. This will remove the field schema and all associated thread field values from threads. Use this carefully as it permanently removes data.
Deletethreadlink
PLAIN_MCP_DELETE_THREAD_LINKRemove a link between a thread and an external entity. Pass the `threadLinkId` of the link to delete (the `id` returned by `createThreadLink` or listed under a thread's `links` in `getThreadDetails`).
Getattachmentdownloadurl
PLAIN_MCP_GET_ATTACHMENT_DOWNLOAD_URLGenerate a short-lived download URL for an attachment on a thread. Use attachment IDs returned by getThreadDetails (in the attachments field of timeline entries such as NoteEntry, ChatEntry, EmailEntry, SlackMessageEntry, etc.). The returned downloadUrl expires after 3 minutes — fetch the file promptly after calling this tool. If attachmentVirusScanResult is INFECTED or FAILED, do not download the file. A null attachmentVirusScanResult means virus scanning is not enabled for the workspace. Requires the attachment:download permission.