Productivity & Projects · Customer Support

Plain MCP

Read and manage Plain support threads, customers, tenants, broadcasts, help-center content, Sidekick sessions, and workspace settings through Plain's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Searchtenants

    Search for tenants by name or external ID. The search is case-insensitive: partial match on name, exact match on external ID. The search term must be at least 2 characters long. Use the `cursor` variable with the endCursor from the previous response's pageInfo to fetch the next page. The cursor is an opaque token: pass it back unchanged and do not construct, modify, or alter it. Set `first` to control page size (default 50).

  • Searchthreadlinkcandidates

    Search a connected issue tracker for external entities that can be linked to a thread via `createThreadLink`. Scope the search to one issue tracker with `sourceType` (e.g. `jira_issue`, `incidentio_incident`, `shortcut_story`, `rootly_incident`, `github_issue`) and match against issue titles or identifiers with the free-text `searchQuery`. Requires a connected issue tracker integration for the given `sourceType`. Take the `sourceId` and `sourceType` from a result and pass them to `createThreadLink` to create the link. Use the `cursor` variable with the endCursor from the previous response's pageInfo to fetch the next page. The cursor is an opaque token: pass it back unchanged and do not construct, modify, or alter it. Set `first` to control page size.

  • Searchthreads

    Search threads by text content in title, description, or messages. Returns the first 50 results Optionally filter results by status, priority, customer, tenant, assignee, or labels. Use the `cursor` variable with the endCursor from the previous response's pageInfo to fetch the next page. The cursor is an opaque token: pass it back unchanged and do not construct, modify, or alter it. Set `first` to control page size (default 50). tenantIdentifiers filters by the tenant stamped on the thread. Call `getTenants` or `searchTenants` first to discover tenant `id` (starts with `te_`) and `externalId`. Each entry must set exactly one of `tenantId` or `externalId`; omit the unused field or set it to null. Multiple entries are combined with OR. Example: tenantIdentifiers: [{ tenantId: "te_01..." }] tenantIdentifiers: [{ tenantId: "te_01...", externalId: null }] tenantIdentifiers: [{ externalId: "acme-prod" }] Threads created before the customer was added to the tenant may be missing. For a complete membership-based list, call `getCustomers` with `tenantIdentifiers`, then `getThreads` with those customer `id`s. Thread URL format: https://app.plain.com/workspace/{workspaceId}/thread/{threadId}/ where {threadId} is the thread `id` field on each result (starts with `th_`) and {workspaceId} is fetched via `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.

  • Sendsidekickmessage

    Send a follow-up message into an existing Sidekick session. discussionId is the `thdis_...` handle returned by startSidekickSession. Use this to answer a question from Sidekick, redirect it, or give it the next task in the same session. Sidekick keeps the earlier conversation as context. If the session is idle the agent starts a new turn. If the agent is mid-turn the message is queued and picked up when the turn ends. A null discussionMessage together with a null error means the message was QUEUED, not that it failed. It will appear in queuedAgentSessionMessages on getSidekickSession until the agent picks it up. This tool returns as soon as the message is accepted. Poll getSidekickSession for the reply.

  • Sendtestbroadcast

    Send a test copy of a broadcast to Slack channels you name, so you can see what recipients will get before the real audience does. This posts real messages into real channels. Everyone in the channels you name will see it. It carries a notice at the top marking it as a test, and it goes out through the same pipeline and under the broadcast's own sender, so what arrives is what any channel would have received. Confirm the channel list with the user before calling this. - `channels` takes between 1 and 10 `{ slackTeamId, slackChannelId }` pairs. A channel ID is only unique within its Slack team, so both are needed. Every channel must already be connected to this workspace, and naming the same channel twice posts to it once. - The channels are independent of the broadcast's own audience, which is left untouched. The broadcast needs a sender and a notification title, but it does not need any channels of its own — testing is what you do before choosing them. - A test send never changes the broadcast's `status`, and never locks or unlocks editing. Only available while the broadcast can still be edited: once its real send has started, it can no longer be tested. The response includes the test send's id. Pass it to `getBroadcastSendDeliveries` to see whether each channel got it. This does not schedule the real send. Queuing a broadcast to its actual audience is done by a human in the Plain app.

  • Snoozethread

    Snooze a thread for a specified duration. The thread will return to TODO status after the snooze period expires. durationSeconds: how long to snooze (e.g. 3600 = 1 hour, 86400 = 1 day). statusDetail: WAITING_FOR_CUSTOMER or WAITING_FOR_DURATION.

  • Startsidekicksession

    Start a new Sidekick session and return the handle used by every other Sidekick tool. Sidekick is Plain's AI agent. It runs asynchronously in a sandbox. This tool returns as soon as the session is created, NOT when the agent has answered. Poll getSidekickSession with the returned discussion id to follow progress and collect the reply. Arguments: - markdownContent: the task for Sidekick. Brief it as you would a colleague. - threadId: optional. Attaches the session to a Plain thread (starts with `th_`) so Sidekick has that thread as context. Omit for a standalone session. - additionalContext: optional free-form context about what the user is looking at. The returned `discussion.id` (starts with `thdis_`) is the handle. Pass it to getSidekickSession, sendSidekickMessage and resolveSidekickApproval. The agent session id (`as_...`) is returned for reference only and is not accepted by the other tools. Errors: - A sidekick-disabled or credits error means the workspace cannot run Sidekick right now. Do not retry. Tell the user. - On a timeout do NOT retry blindly. There is no idempotency key, so a retry starts a second session and bills a second sandbox. Call listSidekickSessions first to check whether the first attempt landed.

  • Unarchivelabeltype

    Unarchive a previously archived label type to make it available again. This restores the label type to the active label list so it can be used on threads.

  • Unassignthread

    Unassign a thread, removing the current assignee.

  • Unmarkcustomerasspam

    Clear the spam flag from a customer, restoring their threads to the inbox and metrics. The `markedAsSpamAt` timestamp is cleared. Pass the customer `id` (starts with `c_`) as `customerId`. Use `getCustomers`, `searchCustomers`, or `getCustomerDetails` to discover it.

  • Updatebroadcast

    Update one or more fields of an existing broadcast. Only `broadcastId` is required; every other field is optional and omitting it leaves that field unchanged. `type` cannot be changed. Most fields use a wrapper input: pass `{ value: ... }` to set it, or omit the field entirely to leave it alone. `notificationTitle`, `senderUserId` and `senderEmailAddress` accept `{ value: null }` to clear them. - `content` is encoded as `contentFormat` says, so set `contentFormat` alongside it whenever the encoding of the new body differs from the stored one. From MCP, send `SLACK_BLOCK_KIT` and a JSON array of Slack blocks. A one-paragraph body looks like this, passed as a string: "[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"Hello\"}}]" Buttons need a `url`; images must be publicly reachable; this format cannot be edited in the Plain app. Switching format without matching `content` is rejected. If the stored body is `TIPTAP` and you are only tweaking it, read it with `getBroadcastDetails` and send `TIPTAP` again — replacing it with Block Kit is a wholesale rewrite. - `notificationTitle` is what recipients see in the notification. Clearing it leaves a broadcast that cannot be sent. - `senderType` is `PLAIN_WORKSPACE` (posts as the workspace, no `senderUserId`) or `PLAIN_USER` (requires `senderUserId`). Either half can be set on its own as long as the resulting pair is coherent. Leave `senderEmailAddress` unset: it belongs to a future email channel, not to a Slack broadcast. - `sendTarget` replaces the current target wholesale rather than merging into it, so read the existing one with `getBroadcastDetails` and send the full shape you want. `scope: ALL_TENANTS` rejects `filters`; `scope: MATCHING` requires them. A broadcast that is already scheduled has to stay sendable, so clearing its sender or its target is rejected. Once its send has started it cannot be edited at all.

  • Updatebroadcastaudience

    Update a broadcast audience's name, filters, or both. Only `broadcastAudienceId` is required; omitting a field leaves it unchanged. - `name` uses a wrapper input: pass `{ value: "..." }` to set it. - `filters` replaces the stored filters wholesale rather than merging into them, so read the current ones with `getBroadcastAudienceDetails` and send the full shape you want. They are validated against the audience's existing `type`, which cannot be changed. Editing an audience changes who every broadcast using it will reach on its next send, including broadcasts someone else wrote — check `getBroadcastDetails` on the broadcasts that reference it before widening or narrowing an audience.

  • Updatelabeltype

    Update an existing label type's properties. Use this to modify label type name, icon, color, description, external ID, or AI exclusion settings.

  • Updatethreadfieldschema

    Update an existing thread field schema's properties. Use this to modify the label, description, order, enum values, default values, or other field settings. Note: You cannot change the key or type of an existing thread field schema.

  • Updatethreadtitle

    Update the title (subject line) of an existing thread. Use this when you need to rename a thread to better reflect the issue or after the conversation has evolved. The thread ID (`threadId`) is required — obtain it from `getThreadDetails`, `getThreads`, or any other operation that returns thread objects. Required fields on `input`: - threadId: The ID of the thread to update (e.g. `th_...`). - title: The new title for the thread. Must be a non-empty string. Max 500 characters. Gotchas: - This only updates the title; other thread properties (priority, status, assignee, etc.) require separate mutations.

  • Upsertcustomer

    Create or update a customer. To create: provide identifier (with externalId or emailAddress), and onCreate fields (fullName, email). To update: provide identifier (with customerId, externalId, or emailAddress) and onUpdate fields to change. The shortName field is optional.

  • Upserthelpcenterarticle

    Create or update a help-center article. To create: provide helpCenterId, title, contentHtml, and status. To update: provide helpCenterArticleId with any fields to change. Slug is optional and will be normalized to lowercase. Help-center article URL format (Plain dashboard): https://app.plain.com/workspace/{workspaceId}/help-center/{helpCenterId}/articles/{helpCenterArticleId}/ where {helpCenterId} is the `helpCenterId` from the input (starts with `hc_`), {helpCenterArticleId} is the article `id` returned in the result (starts with `hca_`), and {workspaceId} is fetched via `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.

  • Upserttenant

    Create or update a tenant. To create: provide identifier (with externalId), name, and externalId. To update: provide identifier (with tenantId or externalId) with fields to change. The url field is optional.

  • Upserttenantfield

    Create or update a tenant field. To create or update: provide tenantFieldIdentifier (identifying the tenant plus externalFieldId), type, and the appropriate value field. Identify the tenant with exactly one of: tenantId (Plain's internal id) or tenantIdentifier (by internal tenantId or your own externalId). Exactly one value field must be provided based on the type: - STRING_TYPE: stringValue - NUMBER_TYPE: numberValue - BOOLEAN_TYPE: booleanValue - STRING_ARRAY: arrayValue - DATETIME_TYPE: dateValue

  • Upsertthreadfield

    Upsert (create or update) a thread field value on a thread. Provide the thread ID, field key, field type, and the value. Use this to set custom field data on individual threads.

PreviousPage 4 / 4