Plain MCP by usefulapi

v1.2.1
io.usefulapi/plain Checked 2 days ago Published 1 day ago

Read support threads and customers; add notes, labels, assignments and priority in Plain.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

plain_get_workspace Get workspace

Get the Plain workspace this API key belongs to: id, name, public name and domain names. No arguments. Plain GraphQL query: myWorkspace.

plain_list_threads List threads

List support threads (conversations) with optional filters: statuses (TODO, SNOOZED, DONE), priorities (0 urgent to 3 low), customer ids, assignee user ids, label type ids, and whether a thread is assigned. Optional sort by CREATED_AT, STATUS_CHANGED_AT, PRIORITY, LAST_INBOUND_MESSAGE_AT or CLOSEST_TO_BREACH_SLA. Paginate with `after` (endCursor). Plain GraphQL query: threads.

ParameterTypeDescription
afterstring
assignedToUserIdsarray
customerIdsarray
firstinteger
isAssignedboolean
labelTypeIdsarray
prioritiesarray
sortDirectionstring
sortFieldstring
statusesarray

plain_get_thread Get thread

Get one support thread by its id: title, preview, status, priority, assignee, customer and labels. Plain GraphQL query: thread.

ParameterTypeDescription
threadId *string

plain_get_customer Get customer

Get one customer (the person who writes to support) by `customerId` OR by `email` (give exactly one): name, email, external id and dates. Plain GraphQL query: customer or customerByEmail.

ParameterTypeDescription
customerIdstring
emailstring

plain_list_label_types List label types

List the active (not archived) label types of the workspace: id, name, description and color. Use the ids with plain_add_labels and plain_list_threads. Plain GraphQL query: labelTypes.

ParameterTypeDescription
afterstring
firstinteger

plain_list_users List assignable users

List the workspace users who can be assigned to threads: id, full name, public name, email and status. Use the ids with plain_assign_thread. Plain GraphQL query: users.

ParameterTypeDescription
afterstring
firstinteger

plain_add_note Add internal note

Add an internal note to a customer, optionally on one thread. Notes stay with the team and never reach the customer. Plain GraphQL mutation: createNote.

ParameterTypeDescription
customerId *string
text *string
threadIdstring

plain_add_labels Add labels to thread

Add one or more label types to a thread. Get label type ids from plain_list_label_types. Plain GraphQL mutation: addLabels.

ParameterTypeDescription
labelTypeIds *array
threadId *string

plain_remove_labels Remove labels from thread

Remove labels from threads by label id (the id of the label on the thread, from plain_get_thread, not the label type id). Plain GraphQL mutation: removeLabels.

ParameterTypeDescription
labelIds *array

plain_assign_thread Assign thread

Assign a thread to a workspace user. Replaces the current assignee. Get user ids from plain_list_users. Plain GraphQL mutation: assignThread.

ParameterTypeDescription
threadId *string
userId *string

plain_unassign_thread Unassign thread

Remove the assignee from a thread. Plain GraphQL mutation: unassignThread.

ParameterTypeDescription
threadId *string

plain_set_thread_priority Set thread priority

Set the priority of a thread: 0 = Urgent, 1 = High, 2 = Normal, 3 = Low. Plain GraphQL mutation: changeThreadPriority.

ParameterTypeDescription
priority *integer
threadId *string

plain_mark_thread_done Mark thread done

Mark a thread as DONE (closed). Plain GraphQL mutation: markThreadAsDone.

ParameterTypeDescription
threadId *string

plain_reopen_thread Reopen thread (mark todo)

Move a thread back to TODO (open). Plain GraphQL mutation: markThreadAsTodo.

ParameterTypeDescription
threadId *string