Teletype

v0.1.2
io.github.Teletype-App/teletype-mcp-server Checked 3 days ago Published 1 month ago

Manage Teletype support conversations, customers, messages, and workspace settings

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

find_conversations Find conversations

Find Teletype conversations by status (open/close/unanswered/all), channel, client, tags, operator, category, last message text, or client name. The query parameter searches last message text or client name, not dialog IDs. If the user already supplied dialog_id, pass it directly to read_conversation_thread, resolve_conversation, or send_reply_to_client as appropriate. For text in older messages use find_messages and continue through pages. Each result includes link_to_dialog. Show every conversation to the user as a clickable Markdown link. Use this tool for the active queue, unanswered conve…

ParameterTypeDescription
categorystringConversation category name. List available categories with list_workspace_metadata(resource='categories').
channelstringChannel name (eg 'WhatsApp Sales') or its type (telegram, whatsapp_teletype, email, vk, viber, instagram_direct_business, etc.). Resolves automatically.
channel_typestringChannel type for filtering (for example: telegram, whatsapp_teletype, email, vk, viber, instagram_direct_business, etc.).
clientstringName, phone, email or client_id - filter by client.
limitintegerMaximum number of conversations to return. Default: 20. Allowed range is 1 to 100.
operatorstringAgent name (full or partial) or 'unassigned' string for dialogs without an assigned agent.
pageintegerResults page number (default 1). Pages beyond the last one return an empty list.
querystringSearch query based on the text of the last message or client name (case-insensitive substring search).
response_formatstring'concise' (default) keeps the text output short. 'detailed' adds per-item fields to the text output (ids, statuses, timestamps, full message texts). structuredContent always contains every field regar…
statusstringFilter by status. Default is 'open'. Use 'unanswered' for triage.
tagsarrayClient tag names. All listed tags must match. For example, ['VIP', 'refund'].

list_clients List clients

List project clients, optionally filtering by phone. Use this for a client inventory or to look up a phone number without changing data. The Public API matches part of a normalized phone number. Follow page/has_more to continue.

ParameterTypeDescription
limitintegerClients per page, 1 to 100. Default: 20.
pageintegerAPI page, starting at 1. Default: 1.
phonestringPhone number or part of one. The Public API searches normalized phone numbers.

find_messages Find messages

List project messages, optionally filtered by conversation, client ID, channel, or message text. The query parameter searches message text, not message IDs. To edit, delete, or resend a known message_id, use manage_sent_message directly. Text matching runs only on the returned API page because the Public API has no full-text filter. Continue through pages while has_more is true before concluding that an older message is absent. Use this instead of find_conversations for text in historical messages.

ParameterTypeDescription
channelstringChannel name, type, or ID. Resolves to channelId.
client_idstringExact client ID to restrict messages. Use list_clients or lookup_client_profile first.
dialog_idstringConversation ID to restrict messages. From find_conversations or a conversation link.
limitintegerMessages per API page, 1 to 100. Default: 50.
only_activebooleanLimit to active channels when channel is omitted. Default: false.
pageintegerAPI page to inspect, starting at 1. Default: 1.
querystringCase-insensitive substring in message text on this page only. Empty results do not mean no match exists on later pages.
response_formatstringConcise text by default, detailed text includes full message bodies. structuredContent always includes full text.

lookup_client_profile Client profile lookup

Get a client's contact details, tags, custom fields, recent notes, and conversations in one call. Each recent_dialogs item includes link_to_dialog. Show these links as Markdown. Accepts a name, phone number, email, or client_id. If a name is ambiguous, the result lists candidates so you can retry with a client_id or phone number.

ParameterTypeDescription
client *stringClient name, phone (any format), email or client_id.
include_dialog_historybooleanWhether to include a list of the last 5 conversations. Defaults to true.
include_notesbooleanWhether to include operator notes. Defaults to true.
response_formatstring'concise' (default) keeps the text output short. 'detailed' adds per-item fields to the text output (ids, statuses, timestamps, full message texts). structuredContent always contains every field regar…

read_conversation_thread Read conversation thread

Read a conversation's messages in chronological order, including authors, attachments, replies, delivery status, and timestamps. Also returns the channel, client, operator, and category. Show link_to_dialog when presenting the conversation and link_to_message when quoting a message. If dialog_id is already known, pass it directly without listing or searching conversations. Alternatively pass a client to read their latest conversation. When drafting a reply, do not promise actions, deadlines, or policy exceptions that the conversation does not establish.

ParameterTypeDescription
clientstringAlternative dialog_id: name/phone/email/client_id. The client's last conversation will be taken.
confirmbooleanRequired only with mark_seen: true. Without it a mark_seen request is rejected and nothing is read. Without mark_seen the call only reads and leaves the unread state untouched.
dialog_idstringConversation ID. Use a known ID directly. Call find_conversations only if the ID is missing.
include_group_clientsbooleanIf true and the conversation is a group chat, returns a list of group members. Default is false.
include_sessionsbooleanInclude the conversation's session history (dates, operators, statuses, and categories). Default: false.
mark_seenbooleanIf true, marks the conversation as read by an operator (resets the unread badge in the Teletype panel). Requires confirm: true. Default is false.
messages_limitintegerHow many recent messages to return. Default is 50. Allowed range is 1 to 200.
response_formatstring'concise' (default) keeps the text output short. 'detailed' adds per-item fields to the text output (ids, statuses, timestamps, full message texts). structuredContent always contains every field regar…
session_idstringID of a specific session to obtain extended information about it.

read_client_history Read client history

Read a client's recent conversations in one call: the latest dialogs with their messages, channels, and links. Use it to get context on a client across several conversations before replying. read_conversation_thread returns the full metadata of one dialog. Accepts a name, phone number, email, or client_id.

ParameterTypeDescription
client *stringClient name, phone (any format), email or client_id.
dialogs_limitintegerHow many recent conversations to return, from 1 to 5. Default is 3.
messages_per_dialogintegerHow many recent messages to return per conversation, from 1 to 20. Default is 10.
response_formatstring'concise' (default) keeps the text output short. 'detailed' adds per-item fields to the text output (ids, statuses, timestamps, full message texts). structuredContent always contains every field regar…

send_reply_to_client Send reply to client

Send a message only when the user asked to send it. Pass recipient_dialog_id for an existing conversation, or client and channel to start one. For a draft, use read_conversation_thread and write the draft without calling this tool. Supports text, project templates, attachments, and reply_to_message_id. Marks the conversation answered by default. Requires confirm: true. The result reports API acceptance, not confirmed delivery.

ParameterTypeDescription
attachment_pathstringAbsolute path to a local attachment. Available only in trusted stdio mode. HTTP rejects local paths. Takes precedence over attachment_url.
attachment_urlstringPublic URL of the file or image. Teletype will download the file from this URL and send it to the channel. Use if the file has already been uploaded to the cloud (S3 presigned, Dropbox direct, etc.).
auto_closebooleanWhen sending through a channel (recipient_type='channel'), close the new session automatically (autoClose=1).
channelstringFor a NEW conversation: name or type of sending channel (telegram, whatsapp_teletype, email, etc.).
clientstringFor a NEW conversation: recipient's name/phone/email/client_id.
confirmbooleanExplicit confirmation of sending a message or creating a conversation.
create_dialog_onlybooleanCreate a conversation with a client in a channel without sending text (via /dialog/create). Requires client and channel.
dry_runbooleanPreview only: resolve the recipient, render the template, and return the full target without sending anything. Does not require confirm.
mark_dialog_answeredbooleanWhether to mark the conversation as answered after sending. Defaults to true.
recipient_dialog_idstringID of the existing conversation to reply to. If set, the client/channel parameters are ignored.
reply_to_message_idstringID of the message that is being quoted.
template_namestringThe name of the template from the project library. List - list_workspace_metadata with resource='templates'.
template_variablesobjectSubstitutions for the template: {'name': 'Ivan', 'order_id': '1234'}. In the template, variables are designated {{name}}.
textstringMessage text. Optional if template_name is used.

create_dialog_by_phone Create dialog by phone

Create or find a conversation for a phone number in a phone-capable channel without sending a message. This is a write, not a phone lookup: it may create a conversation and may assign the project owner to an existing open conversation. Use list_clients to check a phone without changing data. Preview with dry_run, then call with confirm: true only when creation is requested.

ParameterTypeDescription
channel *stringPhone-capable channel name, type, or ID: WhatsApp, MAX, SMS, Kakao, Telegram, or VK Direct.
phone *stringRecipient phone number. Use an international number when available.
confirmbooleanExplicit confirmation to create or find the dialog. May change the operator of an existing open dialog.
dry_runbooleanPreview the channel, phone, and possible side effects without creating a dialog.

annotate_client_record Annotate client record

Update client or conversation metadata in one call: add or remove tags, create a note, update custom fields, or set a category. Tags, notes, and fields apply to the client. dialog_category applies to the dialog and requires dialog_id. A note becomes a system message in the client's current conversation timeline, visible to operators in the Teletype panel. If an operation fails, other changes may still have been applied. Check partial_errors before retrying. Requires confirm: true.

ParameterTypeDescription
confirm *booleanExplicit confirmation of changes to client data or conversation.
add_tagsarrayNames of tags to add. Non-existent tags are listed in partial_errors.
additional_payloadAdditional client data (JSON string or object, for example { source: 'website' }).
clientstringName/phone/email/client_id. Optional if dialog_id identifies the client.
custom_fieldsobjectDictionary of custom fields: {'order_id': '1234', 'segment': 'B2B'}. Replaces existing values by key.
delete_note_idstringID of the client note to delete (obtained from lookup_client_profile).
dialog_categorystringCategory name for the dialog (requires dialog_id).
dialog_idstringConversation ID. Required for dialog_category and can identify the client for other changes.
emailstringUpdate client email.
force_additional_payloadbooleanOverwrite the data available in the additional information array (true) instead of merging it (false).
namestringUpdate client display name.
notestringThe text of the new note. It appears in the client's current conversation timeline, visible to operators.
phonestringUpdate the client's phone.
remove_tagsarrayNames of tags to be deleted.

resolve_conversation Resolve conversation

Close a conversation or hand it to an operator. Default: close=true. Use close=false only when the user wants it left open. Category, tags, operator, and final note are optional, separate changes. Closing does not require a category. Look up exact category and tag names before using them. Requires confirm: true. Read applied and partial_errors before reporting or retrying.

ParameterTypeDescription
confirm *booleanExplicit confirmation to close or mark the conversation as unanswered/answered.
dialog_id *stringConversation ID. Use a known ID directly. Look it up only if the ID is missing.
add_tagsarrayClient tags to add when closing.
assign_operatorstringAssign an operator to the conversation (ID, name, email of the operator, or 'auto' for automatic distribution).
categorystringOptional exact category name. First list_workspace_metadata(resource='categories') if the user requested a category. Do not infer or translate a category name from 'resolved' or 'closed'. Omit this fi…
closebooleanClose the dialog after completing other actions (true by default). Specify false if you only want to assign an operator, set a category or tags, leaving the dialog open.
final_notestringA final note about the client is attached upon closing.
mark_answeredbooleanIf true, marks open requests in the conversation as answered (clears the unanswered flag).
mark_unansweredbooleanIf true, it does not close the conversation, but marks its open requests as unanswered. Closed requests are not re-opened.

list_workspace_metadata Workspace metadata

Look up project channels, tags, categories, quick reply templates, operators, or groups. Set resource to the requested kind. The default 'all' can truncate each list and does extra API work. Use resource='channels' for channel names and active state, or resource='categories' before assigning a category. WABA templates are separate. Results are cached for one minute.

ParameterTypeDescription
channel_typestringFor resource='channels': filtering by channel type (for example telegram, email, whatsapp_teletype).
group_idstringOptional: ID or group name for obtaining detailed data (operators, supervisors, channels) via /group/view/:groupId.
only_activebooleanFor resource='channels': return only active channels.
resourcestringChoose one resource when possible: channels, tags, categories, templates, template_directories, operators, or groups. 'all' returns several limited lists and is for requests about the whole workspace.

get_project_status Project status

Check project health: finances, operator availability, Public API status, channel activity, and webhook errors. For a technical check of channels or the Public API, set aspect='technical'. Use list_workspace_metadata(resource='channels') when the user wants the channel inventory. Includes derived warnings.

ParameterTypeDescription
aspectstringChoose 'technical' for channels, Public API, or webhook health, 'financial' for balance and billing, 'team' for operators, or 'all' for a whole-project overview. Default is 'all'.
include_warningsbooleanWhether to include a derived warning block. Defaults to true.
operator_detailsbooleanIf true, an expanded list of operators is returned to team. Default is false.

manage_sent_message Manage sent message

Manage a sent message in Teletype by its message_id: edit the text, delete it, or resend after failure. If the user supplied message_id, use it directly rather than searching message text. Otherwise take it from the send result's message_ids or read_conversation_thread. Requires an explicit confirm: true.

ParameterTypeDescription
action *stringAction: 'update' (edit text), 'delete' (delete), 'resend' (resend).
confirm *booleanConfirms the requested message operation.
message_id *stringMessage ID obtained from send_reply_to_client or read_conversation_thread.
textstringNew message text (required for action='update').

send_whatsapp_template Send WhatsApp template

Send a WABA-approved template in an existing Edna WhatsApp conversation outside the 24-hour service window. Get the WABA template ID from project settings or the user. Quick reply templates returned by list_workspace_metadata are different. Requires confirm: true.

ParameterTypeDescription
channel_id *stringWhatsApp channel ID. Use a known ID directly. Call list_workspace_metadata(resource='channels') only if it is missing.
dialog_id *stringConversation ID. Use a known ID directly. Call find_conversations only if it is missing.
template_id *stringID of a WABA approved template imported from Edna. It is not in resource='templates' with the list of quick responses.
confirmbooleanConfirms sending the WhatsApp template to the client.
dry_runbooleanPreview only: validate parameters and return the target conversation and template without sending. Does not require confirm.
template_optionsobject
template_paramsobjectTemplate parameters: text_variables (array of strings for variables like {{1}}, {{2}}), button_variables, header_variables, attachment.

manage_operator_group Manage operator group

Manage operator groups: add or remove members, link or unlink channels, assign supervisors, and control visibility of other operators' conversations. Take group names from list_workspace_metadata(resource='groups'). Requires confirm: true.

ParameterTypeDescription
action *stringAction: add_member (add operator), remove_member (remove operator), add_channel (bind channel), remove_channel (unlink channel), set_supervisor (assign/remove supervisor), set_channel_visibility (dial…
confirm *booleanExplicit confirmation of a group configuration change.
group *stringOperator group name or ID (get it via list_workspace_metadata with resource='groups').
can_view_other_dialogsbooleanFor set_channel_visibility: true - allow viewing of other people's conversations in the channel, false - prohibit.
channelstringChannel name or ID (for add_channel, remove_channel, set_channel_visibility).
is_supervisorbooleanFor set_supervisor, true grants supervisor access and false removes it.
operatorstringOperator name or ID (for add_member, remove_member, set_supervisor).

configure_project_webhook Configure project webhook

Configure the project's Public API webhook URL and active events. An empty active_events list disables all events. Requires confirm: true.

ParameterTypeDescription
confirm *booleanExplicit confirmation of changing the project webhook settings.
active_eventsarrayList of events to activate. A missing or empty list disables all events.
webhook_urlstringURL that receives webhooks. An empty string removes the current URL.

get_capabilities Server capabilities

Return the server's active tool map: read-only mode, active toolsets, registered tools with their toolset and whether they write data, locale, and local-upload availability. Call this first when unsure which tools or filters are available. It fetches the project identity once and caches it for 10 minutes.