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.

  • Getbroadcastaudiencedetails

    Fetch a single broadcast audience by its ID, or null if no audience with that ID exists. Returns soft-deleted audiences (where `isDeleted` is true), so the record of what a past broadcast was sent to survives. In `filters`, dimensions on one node AND together and values within a dimension OR. `slackChannels` are channels pinned by ID; the `slackChannelNameContains` substrings are re-resolved at send time. An audience with no filters at all means every tenant. `type` is fixed at creation and must match the type of any broadcast the audience is attached to. Audience IDs start with `ba_`. Do not invent IDs — only use values returned by the MCP tools.

  • Getbroadcastaudiences

    Fetch a paginated list of the workspace's broadcast audiences, newest first. An audience is a named, reusable set of broadcast recipients, resolved to concrete Slack channels at send time rather than when it was saved. Soft-deleted audiences are excluded. Pass `searchQuery` to narrow to audiences whose name contains it, matched case-insensitively and unanchored. The match happens in the database, so it finds audiences that are not on the current page. 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). In `filters`, 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. `slackChannels` are channels pinned by ID, so an audience holding only those is a saved channel list. `slackChannelNameContains` is re-resolved at send time, so it picks up channels created or renamed since. An audience with no filters at all means every tenant. An audience's own filters never contain `audienceIds` — an audience cannot be defined in terms of another one. Audience IDs start with `ba_`. Do not invent IDs — only use values returned by the MCP tools.

  • Getbroadcastdetails

    Fetch a single broadcast by its ID, including its authored content and who it is targeted at. Returns null if no broadcast with that ID exists, and returns soft-deleted broadcasts (where `isDeleted` is true). `content` is encoded as `contentFormat` says: `TIPTAP` is a serialised Tiptap JSON document (what the Plain app writes); `SLACK_BLOCK_KIT` is a JSON array of Slack blocks. Neither is plain text or markdown. `sendTarget` is who the broadcast reaches, resolved to concrete channels at send time rather than now. `scope: ALL_TENANTS` means every tenant with a connected channel and carries no `filters`; `scope: MATCHING` means only what `filters` selects. `recipients` are channels named outright and added to whatever `filters` resolves to; `excludeRecipients` are subtracted last. Inside `filters`, dimensions on one node AND together and values within a dimension OR. `audienceIds` reference saved audiences — read them with `getBroadcastAudienceDetails`. `latestSend` is the most recent non-test send, and where progress lives. Use `getBroadcastSends` for the full send history, and `getBroadcastSendDeliveries` for the recipients of one send. Broadcast IDs start with `bc_`, audience IDs with `ba_`. Broadcast URL format: https://app.plain.com/workspace/{workspaceId}/broadcasts/{broadcastId} where {workspaceId} is fetched via `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.

  • Getbroadcasts

    Fetch a paginated list of the workspace's broadcasts, newest first. A broadcast is a message authored once and posted to many Slack channels at once. Soft-deleted broadcasts are excluded from this list. Optionally narrow the list with `statuses`, e.g. ["DRAFT"] for broadcasts still being written or ["SENT"] for ones already delivered. A broadcast's status comes from its latest real send, so no status reflects a test send. Omit `statuses` to list every status — an empty list is rejected. 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). `latestSend` is the most recent non-test send and is where progress lives — read `deliveryCounts` from it rather than counting deliveries. Use `getBroadcastSends` for a broadcast's full send history, and `getBroadcastSendDeliveries` for the recipients of one send. Broadcast IDs start with `bc_`. Broadcast URL format: https://app.plain.com/workspace/{workspaceId}/broadcasts/{broadcastId} where {workspaceId} is fetched via `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.

  • Getbroadcastsenddeliveries

    Fetch the individual recipients of one broadcast send — which channel got the message, which did not, and why. Use this to answer "who missed it" or "did this channel get it". A delivery is one recipient's copy of the broadcast within one send. Narrow with `deliveryStatuses`, e.g. ["FAILED"] or ["SENT"], and read `failureReason` for why a delivery did not land. Combine with `searchQuery` to find one recipient: matched case-insensitively and unanchored against the recorded Slack channel name, the Slack channel id, and the email address, so a delivery is found by whichever of those identifies it. The match happens in the database, so it finds deliveries that are not on the current page. Omit `searchQuery` rather than passing an empty string. `slackChannelName` is the name recorded when the send resolved, so it still names a channel that was later renamed or disconnected; it is null for deliveries from before the name was recorded. This reads the send named by `broadcastSendId`. Get the id from `getBroadcastSends`; use `isTest` to distinguish test from real sends there. An id belonging to another broadcast matches nothing. `cursor` and `first` page that send's deliveries. Use the endCursor from the previous response's `deliveries.pageInfo`; it stays valid because every page selects the same send. The cursor is an opaque token: pass it back unchanged and do not construct, modify, or alter it. `deliveryCounts` on the send is the unfiltered summary of the whole send. `deliveries.totalCount` is how many rows match `deliveryStatuses` and `searchQuery`. A broadcast with hundreds of recipients has hundreds of deliveries, so prefer the counts plus a `deliveryStatuses: ["FAILED"]` query over paging the whole list. `edges` is empty when the broadcast has no send with that id. For the full send history use `getBroadcastSends`. Broadcast IDs start with `bc_`, send IDs with `bcs_`, delivery IDs with `bcsd_`. Do not invent IDs — only use values returned by the MCP tools.

  • Getbroadcastsends

    Fetch the send history of one broadcast, newest first. Use this to answer "has this broadcast gone out, and how far did each run get". One send is one run of the broadcast. A broadcast that has been sent once and tested twice has three sends. Test sends post real messages and collect real deliveries, so check `isTest` before presenting an entry as a real send, or pass `isTest: false` to exclude them. `statuses` narrows to sends in particular states; `DRAFT` is not one of them, since it describes a broadcast with no send rather than a send. Omit a filter to leave that dimension unconstrained — an empty list is rejected. `deliveryCounts` is how far a send got, summarised across its recipients. It is one query per send regardless of how many recipients there are, so read it rather than counting recipients. For the individual recipients of one send — which channel got it, which failed and why — use `getBroadcastSendDeliveries`. 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 20). Broadcast IDs start with `bc_`, send IDs with `bcs_`. Do not invent IDs — only use values returned by the MCP tools.

  • Getcustomerdetails

    Fetch detailed information about a specific customer by their ID. Returns the customer's profile including email, avatar, assignment, company, and timestamps.

  • Getcustomers

    Fetch a paginated list of customers from Plain. Results are sorted by full name and exclude customers marked as spam. 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 current tenant membership (not the tenant stamped on a 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" }] To list threads for those customers, pass the returned customer `id` values to `getThreads` as `customerIds`.

  • Getcustomerthreads

    Fetch first 10 threads for a specific customer. Use this to see a customer's full support history. Optionally filter by status or sort by different criteria. 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 10). 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.

  • Gethelpcenterarticle

    Fetch detailed information for a specific help-center article by ID. Help-center article URL format (Plain dashboard): https://app.plain.com/workspace/{workspaceId}/help-center/{helpCenterId}/articles/{helpCenterArticleId}/ where {helpCenterArticleId} is the article `id` returned by this query (starts with `hca_`). This query does not return the parent help center, so {helpCenterId} (starts with `hc_`) must come from the caller's prior context or from `getHelpCenters`. {workspaceId} (starts with `w_`) is fetched via `getMyWorkspace`. Do not invent IDs — only use values returned by the MCP tools.

  • Gethelpcenterarticlebyslug

    Fetch detailed information for a specific help-center article by slug. Help-center article URL format (Plain dashboard): https://app.plain.com/workspace/{workspaceId}/help-center/{helpCenterId}/articles/{helpCenterArticleId}/ where {helpCenterId} is the `$helpCenterId` argument passed to this query (starts with `hc_`), {helpCenterArticleId} is the article `id` returned by this query (starts with `hca_`), and {workspaceId} is fetched via `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.

  • Gethelpcenterarticlegroups

    Fetch a paginated list of article groups for a specific help center. 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).

  • Gethelpcenterarticles

    Fetch a paginated list of articles for a specific help center. 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). Help-center article URL format (Plain dashboard): https://app.plain.com/workspace/{workspaceId}/help-center/{helpCenterId}/articles/{helpCenterArticleId}/ where {helpCenterId} is the `$helpCenterId` argument passed to this query (starts with `hc_`), {helpCenterArticleId} is the article `id` on each 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.

  • Gethelpcenters

    Fetch a paginated list of help centers. 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). The returned `id` on each help center (starts with `hc_`) is the {helpCenterId} used in dashboard article URLs: https://app.plain.com/workspace/{workspaceId}/help-center/{helpCenterId}/articles/{helpCenterArticleId}/ Fetch {workspaceId} via `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.

  • Getlabels

    Fetch a paginated list of label types from Plain. Useful for fetching the label type ID's necessary for mutations like 'addLabels'. Results exclude archived labels by default. 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).

  • Getmyassignedthreads

    Fetch first 10 threads assigned to a specific user in Plain. By default, returns only active threads (TODO and SNOOZED), excluding DONE threads. To include all threads regardless of status, pass statuses: null. To filter by specific statuses, pass an array like statuses: [TODO, DONE]. 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 10). 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.

  • Getmyuser

    Get the currently authenticated user's details. This query uses implicit authentication - no parameters are needed. Returns the user associated with the current session.

  • Getmyworkspace

    Get the currently authenticated user's workspace details. This query uses implicit authentication - no parameters are needed. Returns the workspace associated with the current session. The returned `id` (e.g. `w_01G0EZ1XTM37C5X11SQTDNCTM1`) is the workspace ID required to construct Plain dashboard URLs, e.g.: - Thread: https://app.plain.com/workspace/{workspaceId}/thread/{threadId}/ - Help-center article: https://app.plain.com/workspace/{workspaceId}/help-center/{helpCenterId}/articles/{helpCenterArticleId}/

  • Getsidekicksession

    Poll a Sidekick session: read its status, its newest messages, and any approval it is blocked on. Call this repeatedly after startSidekickSession or sendSidekickMessage. discussionId is the `thdis_...` handle returned by startSidekickSession. `last` returns the newest N messages (default 10). Use `before` with pageInfo.startCursor to page backwards through older messages. The cursor is an opaque token: pass it back unchanged and do not construct, modify, or alter it. A null `discussion` means no session with that id is visible to you: either the handle is wrong, or it belongs to another workspace. This is not an error and not a transient state, so do not retry it. Re-check the handle or call listSidekickSessions. HOW TO READ THE RESULT. Apply these in order: 1. Any message whose entry is a ThreadDiscussionApprovalRequestEntryPayload with status PENDING means Sidekick is blocked and needs an approval decision. Trust this over `status`. The approval card is written in the same transaction as the approval itself, while `status` is projected asynchronously and lags. Take the `leaseId`, show the user the `justification` and the decoded `calls`, and use resolveSidekickApproval. See that tool before deciding anything. 2. agentStatus TOOL_CALL_APPROVAL_PENDING means the same thing, seen later and with less detail. 3. agentStatus IN_PROGRESS means the agent is working. Keep polling. agentStatus IDLE means it has stopped; UNKNOWN means it has not started a turn yet. 4. status RESOLVED means the session is closed. status is only ever OPEN or RESOLVED; everything about what the agent is doing is on agentStatus. 5. The newest message whose entry is a ThreadDiscussionMessageEntryPayload with isFinal true is the agent's answer for that turn. 6. queuedAgentSessionMessages are messages you sent that the agent has not picked up yet because it was mid-turn. They disappear when it does. POLL CADENCE. Every 5-10 seconds while agentStatus is IN_PROGRESS. Every 15 seconds or slower once an approval is pending, because a human is reading it. Sidekick turns routinely take minutes. That is normal, not a failure. Do not give up or report failure just because the session is still working after a few minutes. KNOWN GAP. A session that FAILED is not distinguishable from one that is still starting: errors are not projected onto the discussion. If nothing changes for several minutes and no message ever arrives, tell the user to open the session in the Plain dashboard rather than assuming it succeeded or failed. entry is a union. Read `entryType` or `__typename` to tell the shapes apart. Tool-call arguments are deliberately not returned, because they routinely contain customer data.

  • Getsnippet

    Fetch a single snippet by ID, including soft-deleted snippets (where `isDeleted` is true). Use this when you already have a snippet ID (starts with `sn_`) from `getSnippets` or another tool. Do not invent IDs — only use values returned by the MCP tools.

PreviousPage 2 / 4Next