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.

  • 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.

  • Getsnippets

    Fetch a paginated list of snippets from the workspace. Snippets are reusable reply templates that agents insert when composing replies. Soft-deleted snippets are excluded from this list. 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). Snippet IDs start with `sn_`. Do not invent IDs — only use values returned by the MCP tools.

  • Gettenantdetails

    Fetch detailed information about a specific tenant by their ID. Returns the tenant's profile including name, external ID, source, tier, and tenant fields.

  • Gettenants

    Fetch a paginated list of tenants from Plain. Results include tenant name, external ID, source, and associated tier. 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).

  • Getthreaddetails

    Fetch complete details for a specific thread including first 50 timeline entries. Timeline entries include notes, chats, emails, status changes, assignments, and more. Use the `timelineCursor` variable with the endCursor from the previous response's pageInfo to fetch the next page of timelineEntries. The cursor is an opaque token: pass it back unchanged and do not construct, modify, or alter it. Set `timelineFirst` to control page size (default 50). Thread URL format: https://app.plain.com/workspace/{workspaceId}/thread/{threadId}/ where {threadId} is the thread `id` returned by this query (starts with `th_`) and {workspaceId} is fetched via `getMyWorkspace` (starts with `w_`). Do not invent IDs — only use values returned by the MCP tools.

  • Getthreadfieldschemas

    Fetch a paginated list of thread field schemas from Plain. Thread field schemas define the custom fields available for threads in your workspace. 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).

  • Getthreadknowledgesourcecitations

    Fetch the knowledge sources cited by AI agent replies on a thread. Currently only Ari, Plain's AI support agent, produces citations. Each citation is linked to the timeline entry the citing reply is rendered as: correlate `timelineEntryId` with the timeline entry `id` values returned by `getThreadDetails` to see which reply cited which source. The `sourceType`, `title`, and best-effort `url` fields are snapshots taken when the citation was made, so they survive deletion of the underlying source; `document` is the live cited knowledge document and is null once it has been deleted. Returns an empty list when the thread has no citations. Do not invent IDs; only use values returned by the MCP tools.

  • Getthreads

    Fetch threads with flexible filtering options. Use this to find first 10 threads by status, status details, assignee, customer, tenant, labels, priority, or date ranges. Set isAssigned: false to get unassigned threads. Set isAssigned: true to get assigned threads. Pass null for isAssigned to get all threads regardless of assignment. statusDetails filters by specific status detail types like CREATED, IN_PROGRESS, NEW_REPLY, WAITING_FOR_CUSTOMER, etc. 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). threadFields filters by custom thread field values. Call `getThreadFieldSchemas` first to discover the available field keys and their types. Every entry must include `key`, `stringValue`, and `booleanValue`, then set exactly one value family to match on and leave the others as null: - STRING/ENUM: stringValue: "some value", booleanValue: null - BOOLEAN: stringValue: null, booleanValue: true - NUMBER: stringValue: null, booleanValue: null, number: { value: 5, gte: null, lte: null } # equality number: { value: null, gte: 1, lte: 10 } # range - DATE: stringValue: null, booleanValue: null, date: { after: "2024-01-01T00:00:00Z", before: null } For number/date, every sub-field must be present; null out the ones you are not matching on. Multiple entries are combined with OR; thread-field filtering is combined with the other filters above using AND. Example: threadFields: [{ key: "plan_tier", stringValue: "enterprise", booleanValue: null }] 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.

  • Getuserbyemail

    Look up a Plain user by their email address. Returns user details including ID, name, role, and status.

  • Listsidekicksessions

    List Sidekick sessions in the workspace, most recent activity first. Use this to resume a session from an earlier conversation, to check whether a session you started actually landed after a timeout, or to find sessions that need attention. Pass agentStatuses: [TOOL_CALL_APPROVAL_PENDING] to list only the sessions currently blocked on a human approval decision, or agentStatuses: [IN_PROGRESS] for the ones still working. statuses is the session's own lifecycle and is only ever OPEN or RESOLVED. agentStatuses does not filter by it, so combine the two to exclude closed sessions. Pass createdByUserIds with your own user id to list only your sessions. Fetch that id with getMyUser. Use the `after` variable with pageInfo.endCursor from the previous response to page. The cursor is an opaque token: pass it back unchanged and do not construct, modify, or alter it. Only agent sessions are returned, both Plain's own Sidekick and any agent the workspace built itself. Each `id` (starts with `thdis_`) is the handle accepted by getSidekickSession and sendSidekickMessage. A session run by an agent the workspace built has a null agentSessionId, because Plain runs no session for one; it is still readable and repliable through those tools.

  • Searchbroadcasts

    Search broadcasts by name. The search is case-insensitive, matches on any part of the name, ignores accents, and requires at least 2 characters. A broadcast's `name` is internal only — it is never shown to recipients, so it is safe to search on and to show back to the user. Soft-deleted broadcasts are excluded. Optionally narrow the results with `statuses`, applied on top of the name match. Omit it to search 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). 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.

  • Searchcustomers

    Search for customers by name, email, short name, or external ID. The search is case-insensitive and matches partial strings, returns first 50 results. All fields are searched simultaneously with the same search term (OR logic). 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. 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 }]

  • 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.

PreviousPage 2 / 2