Trengo MCP by usefulapi

v1.41.1
io.usefulapi/trengo Checked 3 days ago Published 1 day ago

Work tickets and messages, look up contacts and teams, pull reports, and reply, assign or close.

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

trengo_list_tickets List tickets

List tickets (conversations) visible to the token's user, newest activity first, with channel and latest message. Filter by status, contact, assignee, channel, label, last message direction or update time. Trengo: GET /tickets.

ParameterTypeDescription
channelsarrayOnly these channel ids.
contact_idintegerOnly tickets of this contact.
labelsarrayOnly these label ids.
last_message_typestringOnly tickets whose last message was INBOUND or OUTBOUND.
pageintegerPage number (1-based). Omit for the first page.
sortstringBy last message time: -date newest first (default), date oldest first.
statusstringOnly tickets in this status. INVALID = spam.
updated_at_gtstringOnly tickets updated after this date-time.
usersarrayOnly these assigned user ids.

trengo_list_ticket_messages List a ticket's messages

List the messages of one ticket — inbound, outbound and internal notes — with the contact or agent behind each. Trengo: GET /tickets/{ticket_id}/messages.

ParameterTypeDescription
ticket_id *integerThe ticket id.
pageintegerPage number (1-based). Omit for the first page.

trengo_get_email_message Get an email message

Fetch the full email behind one message of a ticket: original HTML body, from, to, subject and Message-ID. The message must be an email message. Trengo: GET /tickets/{ticket_id}/full_email_messages/{message_id}.

ParameterTypeDescription
message_id *integerThe message id.
ticket_id *integerThe ticket id.

trengo_list_contacts List or search contacts

List contacts, or search them by name, email or phone number. Trengo: GET /contacts.

ParameterTypeDescription
include_last_interactionbooleanAlso return each contact's last interaction.
pageintegerPage number (1-based). Omit for the first page.
termstringSearch term, matched on email, phone number and name.

trengo_get_contact Get a contact

Fetch one contact with name, email, phone and custom field data, optionally with notes. Trengo: GET /contacts/{id}.

ParameterTypeDescription
contact_id *integerThe contact id.
include_notesbooleanAlso return the contact's notes.

trengo_list_contact_groups List contact groups

List the contact groups in the account — use their ids with trengo_update_contact. Trengo: GET /contact_groups.

ParameterTypeDescription
pageintegerPage number (1-based). Omit for the first page.

trengo_list_users List users

List the agents (users) in the Trengo account — use their ids to assign tickets or filter. Trengo: GET /users.

ParameterTypeDescription
pageintegerPage number (1-based). Omit for the first page.
sortstringSort column (default id).

trengo_list_teams List teams

List the teams in the account — use their ids to assign tickets to a team. Trengo: GET /teams.

ParameterTypeDescription
pageintegerPage number (1-based). Omit for the first page.

trengo_list_labels List labels

List the ticket labels (tags) in the account, for filtering tickets and reports. Trengo: GET /labels.

ParameterTypeDescription
pageintegerPage number (1-based). Omit for the first page.

trengo_list_ticket_results List ticket results

List the ticket results (closing outcomes, e.g. 'Resolved', 'Sale') that can be applied when closing a ticket. Trengo: GET /ticket_results.

ParameterTypeDescription
pageintegerPage number (1-based). Omit for the first page.

trengo_list_custom_fields List custom fields

List the custom fields defined for tickets, contacts and profiles. Trengo: GET /custom_fields.

ParameterTypeDescription
pageintegerPage number (1-based). Omit for the first page.

trengo_list_quick_replies List quick replies

List the saved quick replies (canned responses), optionally only the messaging or email ones — useful for drafting consistent answers. Trengo: GET /quick_replies.

ParameterTypeDescription
typestringOnly quick replies of this type.

trengo_get_reporting_metrics Get reporting metrics

Aggregate support metrics over a period: new, created, assigned, closed and reopened tickets, average first response time and average total resolution time (seconds). Filter by team, channel, label or direction. Trengo: GET /reporting/metrics.

ParameterTypeDescription
metrics *arrayWhich metrics to return.
channel_idsarrayOnly these channel ids.
directionstringOnly INBOUND or OUTBOUND conversations.
end_datestringPeriod end as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
label_idsarrayOnly these label ids.
start_datestringPeriod start as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
team_idsarrayOnly these team ids.

trengo_get_agent_performance Get agent performance

Per-agent performance over a period: messages sent, notes, tickets assigned and closed, average first response and resolution times (with and without business hours). Trengo: GET /reporting/agent_performance.

ParameterTypeDescription
channel_idsarrayOnly these channel ids.
end_datestringPeriod end as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
label_idsarrayOnly these label ids.
pageintegerPage number (1-based). Omit for the first page.
start_datestringPeriod start as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
team_idsarrayOnly these team ids.
user_idsarrayOnly these user ids.

trengo_get_ticket_details_report Get ticket details report

Per-ticket reporting rows: status, assignee, labels, first reply, first resolution and total resolution times (with and without business hours). Filter by team, channel, label, direction, status and created/closed/assigned date ranges; sort by a timing metric. For large accounts page with start_after_ticket_id instead of page. Trengo: GET /reporting/details/ticket.

ParameterTypeDescription
assigned_end_datestringAssigned-until as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
assigned_start_datestringAssigned-from as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
channel_idsarrayOnly these channel ids.
closed_end_datestringClosed-until as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
closed_start_datestringClosed-from as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
created_end_datestringCreated-until as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
created_start_datestringCreated-from as ISO 8601, e.g. 2026-09-01T00:00:00+00:00. Give it together with its pair.
directionstringOnly INBOUND or OUTBOUND conversations.
label_idsarrayOnly these label ids.
pageintegerPage number (1-based). Omit for the first page.
sort_bystringSort column.
sort_orderstringSort direction.
start_after_ticket_idintegerKeyset cursor: return tickets after this ticket id (replaces page for huge accounts).
statusesarrayOnly tickets in these statuses.
team_idsarrayOnly these team ids.

trengo_create_ticket Create a ticket

Open a new ticket for an existing contact on a channel. Nothing is sent to the customer until you post a message with trengo_send_ticket_message. Trengo: POST /tickets.

ParameterTypeDescription
channel_id *integerThe channel id.
contact_id *integerThe contact id.
subjectstringOptional subject.

trengo_assign_ticket Assign a ticket

Assign a ticket to a user or a team, with an optional assignment note. Reversible by reassigning. Trengo: POST /tickets/{ticket_id}/assign.

ParameterTypeDescription
ticket_id *integerThe ticket id.
type *stringAssign to a user or to a team.
notestringOptional assignment note.
team_idintegerThe team id — required when type is team.
user_idintegerThe user id — required when type is user.

trengo_close_ticket Close a ticket

Close a ticket, optionally applying a ticket result (see trengo_list_ticket_results). Reversible with trengo_reopen_ticket. Trengo: POST /tickets/{ticket_id}/close.

ParameterTypeDescription
ticket_id *integerThe ticket id.
ticket_result_idintegerOptional ticket result to apply.

trengo_reopen_ticket Reopen a ticket

Reopen a closed ticket. Trengo: POST /tickets/{ticket_id}/reopen.

ParameterTypeDescription
ticket_id *integerThe ticket id.

trengo_send_ticket_message Send a ticket message

Post a message on a ticket. With internal_note=true it is an internal note visible only to agents. OTHERWISE IT IS DELIVERED TO THE CUSTOMER on the ticket's channel (email, WhatsApp, chat...) and cannot be recalled — confirm the text first. Trengo: POST /tickets/{ticket_id}/messages.

ParameterTypeDescription
message *stringThe message. May contain HTML when the channel is email.
ticket_id *integerThe ticket id.
attachment_idsarrayEmail channels only: ids of previously uploaded attachments.
internal_notebooleantrue = internal note for agents only; false/omitted = sent to the customer.
subjectstringEmail channels only. Trengo prefixes it with 'Re:' when replying.

trengo_create_contact Create a contact

Create a contact on a channel. The identifier is the contact's address on that channel: an email address for email channels, a phone number for WhatsApp/SMS/voice. Trengo: POST /channels/{channel_id}/contacts.

ParameterTypeDescription
channel_id *integerThe channel id.
identifier *stringEmail address or phone number, depending on the channel.
namestringThe contact's full name.

trengo_update_contact Update a contact

Rename a contact and/or set the contact groups it belongs to. contact_group_ids REPLACES the contact's groups. Trengo: PUT /contacts/{id}.

ParameterTypeDescription
contact_id *integerThe contact id.
contact_group_idsarrayThe full set of contact group ids (replaces the current groups).
namestringThe contact's new name.

trengo_create_board_card Create a board card

Create a card (e.g. a deal or task) in a stage of a Trengo board. The board id is in the board's URL in Trengo. Trengo: POST /boards/{boardId}/cards.

ParameterTypeDescription
board_id *integerThe board id.
name *stringThe card's name.
stage_id *integerThe stage id.
descriptionstringThe card's description.

trengo_update_board_card Update a board card

Partially update a board card: rename it, move it to another stage, or set its users (owners) and contacts (leads). user_ids / contact_ids replace the current sets. Trengo: PUT /boards/{boardId}/cards/{cardId}.

ParameterTypeDescription
board_id *integerThe board id.
card_id *integerThe card id.
contact_idsarrayTrengo contact ids on the card, e.g. leads (replaces the set).
namestringThe card's new name.
stage_idintegerMove the card to this stage.
user_idsarrayTrengo user ids on the card, e.g. deal owners (replaces the set).