Teletype
v0.1.2Manage 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…
| Parameter | Type | Description |
|---|---|---|
category | string | Conversation category name. List available categories with list_workspace_metadata(resource='categories'). |
channel | string | Channel name (eg 'WhatsApp Sales') or its type (telegram, whatsapp_teletype, email, vk, viber, instagram_direct_business, etc.). Resolves automatically. |
channel_type | string | Channel type for filtering (for example: telegram, whatsapp_teletype, email, vk, viber, instagram_direct_business, etc.). |
client | string | Name, phone, email or client_id - filter by client. |
limit | integer | Maximum number of conversations to return. Default: 20. Allowed range is 1 to 100. |
operator | string | Agent name (full or partial) or 'unassigned' string for dialogs without an assigned agent. |
page | integer | Results page number (default 1). Pages beyond the last one return an empty list. |
query | string | Search query based on the text of the last message or client name (case-insensitive substring search). |
response_format | string | '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… |
status | string | Filter by status. Default is 'open'. Use 'unanswered' for triage. |
tags | array | Client 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Clients per page, 1 to 100. Default: 20. |
page | integer | API page, starting at 1. Default: 1. |
phone | string | Phone 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.
| Parameter | Type | Description |
|---|---|---|
channel | string | Channel name, type, or ID. Resolves to channelId. |
client_id | string | Exact client ID to restrict messages. Use list_clients or lookup_client_profile first. |
dialog_id | string | Conversation ID to restrict messages. From find_conversations or a conversation link. |
limit | integer | Messages per API page, 1 to 100. Default: 50. |
only_active | boolean | Limit to active channels when channel is omitted. Default: false. |
page | integer | API page to inspect, starting at 1. Default: 1. |
query | string | Case-insensitive substring in message text on this page only. Empty results do not mean no match exists on later pages. |
response_format | string | Concise 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.
| Parameter | Type | Description |
|---|---|---|
client * | string | Client name, phone (any format), email or client_id. |
include_dialog_history | boolean | Whether to include a list of the last 5 conversations. Defaults to true. |
include_notes | boolean | Whether to include operator notes. Defaults to true. |
response_format | string | '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.
| Parameter | Type | Description |
|---|---|---|
client | string | Alternative dialog_id: name/phone/email/client_id. The client's last conversation will be taken. |
confirm | boolean | Required 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_id | string | Conversation ID. Use a known ID directly. Call find_conversations only if the ID is missing. |
include_group_clients | boolean | If true and the conversation is a group chat, returns a list of group members. Default is false. |
include_sessions | boolean | Include the conversation's session history (dates, operators, statuses, and categories). Default: false. |
mark_seen | boolean | If true, marks the conversation as read by an operator (resets the unread badge in the Teletype panel). Requires confirm: true. Default is false. |
messages_limit | integer | How many recent messages to return. Default is 50. Allowed range is 1 to 200. |
response_format | string | '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_id | string | ID 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.
| Parameter | Type | Description |
|---|---|---|
client * | string | Client name, phone (any format), email or client_id. |
dialogs_limit | integer | How many recent conversations to return, from 1 to 5. Default is 3. |
messages_per_dialog | integer | How many recent messages to return per conversation, from 1 to 20. Default is 10. |
response_format | string | '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.
| Parameter | Type | Description |
|---|---|---|
attachment_path | string | Absolute path to a local attachment. Available only in trusted stdio mode. HTTP rejects local paths. Takes precedence over attachment_url. |
attachment_url | string | Public 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_close | boolean | When sending through a channel (recipient_type='channel'), close the new session automatically (autoClose=1). |
channel | string | For a NEW conversation: name or type of sending channel (telegram, whatsapp_teletype, email, etc.). |
client | string | For a NEW conversation: recipient's name/phone/email/client_id. |
confirm | boolean | Explicit confirmation of sending a message or creating a conversation. |
create_dialog_only | boolean | Create a conversation with a client in a channel without sending text (via /dialog/create). Requires client and channel. |
dry_run | boolean | Preview only: resolve the recipient, render the template, and return the full target without sending anything. Does not require confirm. |
mark_dialog_answered | boolean | Whether to mark the conversation as answered after sending. Defaults to true. |
recipient_dialog_id | string | ID of the existing conversation to reply to. If set, the client/channel parameters are ignored. |
reply_to_message_id | string | ID of the message that is being quoted. |
template_name | string | The name of the template from the project library. List - list_workspace_metadata with resource='templates'. |
template_variables | object | Substitutions for the template: {'name': 'Ivan', 'order_id': '1234'}. In the template, variables are designated {{name}}. |
text | string | Message 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.
| Parameter | Type | Description |
|---|---|---|
channel * | string | Phone-capable channel name, type, or ID: WhatsApp, MAX, SMS, Kakao, Telegram, or VK Direct. |
phone * | string | Recipient phone number. Use an international number when available. |
confirm | boolean | Explicit confirmation to create or find the dialog. May change the operator of an existing open dialog. |
dry_run | boolean | Preview 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.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Explicit confirmation of changes to client data or conversation. |
add_tags | array | Names of tags to add. Non-existent tags are listed in partial_errors. |
additional_payload | Additional client data (JSON string or object, for example { source: 'website' }). | |
client | string | Name/phone/email/client_id. Optional if dialog_id identifies the client. |
custom_fields | object | Dictionary of custom fields: {'order_id': '1234', 'segment': 'B2B'}. Replaces existing values by key. |
delete_note_id | string | ID of the client note to delete (obtained from lookup_client_profile). |
dialog_category | string | Category name for the dialog (requires dialog_id). |
dialog_id | string | Conversation ID. Required for dialog_category and can identify the client for other changes. |
email | string | Update client email. |
force_additional_payload | boolean | Overwrite the data available in the additional information array (true) instead of merging it (false). |
name | string | Update client display name. |
note | string | The text of the new note. It appears in the client's current conversation timeline, visible to operators. |
phone | string | Update the client's phone. |
remove_tags | array | Names 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.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Explicit confirmation to close or mark the conversation as unanswered/answered. |
dialog_id * | string | Conversation ID. Use a known ID directly. Look it up only if the ID is missing. |
add_tags | array | Client tags to add when closing. |
assign_operator | string | Assign an operator to the conversation (ID, name, email of the operator, or 'auto' for automatic distribution). |
category | string | Optional 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… |
close | boolean | Close 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_note | string | A final note about the client is attached upon closing. |
mark_answered | boolean | If true, marks open requests in the conversation as answered (clears the unanswered flag). |
mark_unanswered | boolean | If 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.
| Parameter | Type | Description |
|---|---|---|
channel_type | string | For resource='channels': filtering by channel type (for example telegram, email, whatsapp_teletype). |
group_id | string | Optional: ID or group name for obtaining detailed data (operators, supervisors, channels) via /group/view/:groupId. |
only_active | boolean | For resource='channels': return only active channels. |
resource | string | Choose 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.
| Parameter | Type | Description |
|---|---|---|
aspect | string | Choose '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_warnings | boolean | Whether to include a derived warning block. Defaults to true. |
operator_details | boolean | If 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.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action: 'update' (edit text), 'delete' (delete), 'resend' (resend). |
confirm * | boolean | Confirms the requested message operation. |
message_id * | string | Message ID obtained from send_reply_to_client or read_conversation_thread. |
text | string | New 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.
| Parameter | Type | Description |
|---|---|---|
channel_id * | string | WhatsApp channel ID. Use a known ID directly. Call list_workspace_metadata(resource='channels') only if it is missing. |
dialog_id * | string | Conversation ID. Use a known ID directly. Call find_conversations only if it is missing. |
template_id * | string | ID of a WABA approved template imported from Edna. It is not in resource='templates' with the list of quick responses. |
confirm | boolean | Confirms sending the WhatsApp template to the client. |
dry_run | boolean | Preview only: validate parameters and return the target conversation and template without sending. Does not require confirm. |
template_options | object | |
template_params | object | Template 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.
| Parameter | Type | Description |
|---|---|---|
action * | string | Action: 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 * | boolean | Explicit confirmation of a group configuration change. |
group * | string | Operator group name or ID (get it via list_workspace_metadata with resource='groups'). |
can_view_other_dialogs | boolean | For set_channel_visibility: true - allow viewing of other people's conversations in the channel, false - prohibit. |
channel | string | Channel name or ID (for add_channel, remove_channel, set_channel_visibility). |
is_supervisor | boolean | For set_supervisor, true grants supervisor access and false removes it. |
operator | string | Operator 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.
| Parameter | Type | Description |
|---|---|---|
confirm * | boolean | Explicit confirmation of changing the project webhook settings. |
active_events | array | List of events to activate. A missing or empty list disables all events. |
webhook_url | string | URL 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.