TiFlux MCP Server
OfficialPermite enviar mensagens WhatsApp e gerenciar chats do WhatsApp como parte do sistema de chat do TiFlux, incluindo listagem de chats por origem WhatsApp, envio de mensagens e finalização de atendimentos.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TiFlux MCP Servershow me open tickets for desk 'Support'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TiFlux MCP Server
Model Context Protocol (MCP) server for TiFlux integration with Claude Code and other AI clients.
Features
Ticket Management: Get, create, update, close and list tickets with comprehensive filtering. Supports desk transfer — when
desk_id/desk_nameis informed, the MCP auto-resolves the first stage of the destination desk.Stages & SLA History: Inspect the full history of ticket stages with per-stage SLA outcomes
Internal Communications: Create and list internal communications for tickets with file attachments
Time Tracking (Appointments): Create and list work-hour appointments on tickets
Chat Management: List inbox/mine/in-attendance/archived chats, fetch chat details, transfer/link chats, send WhatsApp messages and finish chats
Department Discovery: List organization departments with optional name search — resolves department names to IDs for chat filtering (
list_departments)Knowledge Base: List and create knowledge base articles — search by title/tags/description and filter by folder (
list_knowledges,create_knowledge)Contracts: List the organization's contracts (read-only) with client/type/status filters, showing modality, status, expiration and total value (
list_contracts)Desk Exploration: List available desks and inspect full desk configurations (SLA, fields, behavior) without leaving the chat
Custom Field Discovery: Discover custom fields (entities) at all three levels — entity → field → option — enabling LLMs to correctly fill checkbox/single_select fields using the right option IDs
Client CRUD: Full CRUD for clients — get, create, update, list with filters, related desks/technical groups, portal users, and email permissions
Attendant Search (non-admin): Search technical attendants (responsible candidates) via
GET /technical-users— no admin permission required. Supports server-side filtering by name, email,desk_id, andclient_id.responsible_nameauto-resolve increate_ticket,update_ticket, andlist_ticketsnow uses this endpoint as the primary path (1 round-trip, works for all profiles including non-admin).Requestor Search: Search ticket openers (requestors) by name, email, or telephone via dedicated
GET /requestorsendpoint with server-side filtering (no 200-record limit). Includes an automatic fallback chain that works for non-admin attendants and finds people who only exist as users:GET /requestors→ client-scopedGET /clients/{id}/requestors→GET /users(email used asrequestor_email) →GET /users/me(open as yourself). Triggers on 403 or zero resultsRequestor CRUD: Manage a client's requestors end to end — list, get, create, update, and update custom fields (
list_requestors,get_requestor,create_requestor,update_requestor,update_requestor_entities). Increate_ticket, the canonical link isrequestor_id: the MCP resolves email and name to an existingrequestor_idautomatically (precedencerequestor_id>requestor_email>requestor_name), only sending a raw email when no registration matches.File Upload Support: Attach up to 10 files (25MB each) to internal communications
API Integration: Direct integration with TiFlux API v2
Environment Configuration: Secure configuration with environment variables
Comprehensive Testing: Automated tests with 100% mock isolation
Related MCP server: zendesk-mcp
Installation
npm install -g @tiflux/mcpUsage
With Claude Code
Add to your MCP configuration:
{
"tiflux": {
"command": "npx",
"args": ["@tiflux/mcp@latest"]
}
}With Other MCP Clients
npx @tiflux/mcp@latestVia URL (HTTP Transport)
Endpoint: https://mcp.tiflux.com/mcp
claude mcp add tiflux-lambda --transport http https://mcp.tiflux.com/mcp --header "x-tiflux-api-key:APIKEY" -s projectManual Configuration
Add to .claude/settings.json or ~/.claude.json:
{
"mcpServers": {
"tiflux": {
"type": "url",
"url": "https://mcp.tiflux.com/mcp",
"headers": {
"x-tiflux-api-key": "YOUR_API_KEY"
}
}
}
}Endpoints
Endpoint | Method | Auth | Description |
| GET | No | Server info |
| POST | Yes | MCP operations |
| GET | No | Health check |
Via Web (OAuth 2.0) — Claude web & ChatGPT connectors
Use TiFlux as a connector in any AI platform that supports MCP over OAuth 2.0 — such as Claude (claude.ai / desktop) and ChatGPT — with no local install. You just add a custom connector pointing to the TiFlux MCP server URL.
MCP Server URL (paste this in the connector):
https://mcp.tiflux.comAdd the connector:
Claude (claude.ai / desktop): Settings → Connectors → Add custom connector → paste
https://mcp.tiflux.com→ Connect.ChatGPT: Settings → Connectors (or when building a GPT, Add a connector) → paste
https://mcp.tiflux.com→ Connect.
How the authorization works:
After adding the connector, the platform opens the TiFlux authorization page automatically.
The page shows a step-by-step guide to generate your TiFlux API Key:
Log in at app.tiflux.com
Click your profile photo → Minha conta
Open the Sessões tab
Under Sessões API, click "Gerar novo token de sessão"
Copy the generated key and paste it into the authorization form
After authorizing, the platform receives a Bearer token and uses it for all subsequent MCP requests — no need to handle the key again.
For Claude Code or local/script usage with a direct API key header, see Via URL (HTTP Transport) above.
Authentication methods supported:
Method | Header | When to use |
API key (direct) |
| Claude Code, local SDK, scripts |
Bearer token (OAuth) |
| Claude.ai, ChatGPT, web connectors |
OAuth 2.0 endpoints:
Endpoint | Description |
| OAuth server metadata (RFC 8414) |
| Dynamic client registration (RFC 7591) |
| Authorization page (user enters API key) |
| Form submit — issues auth code |
| Token exchange and refresh |
Configuration
Create a .env file with your TiFlux API credentials:
# TiFlux API Configuration
TIFLUX_API_KEY=your_api_key_here
# Default values for ticket creation
TIFLUX_DEFAULT_CLIENT_ID=1
TIFLUX_DEFAULT_DESK_ID=1
TIFLUX_DEFAULT_PRIORITY_ID=1
TIFLUX_DEFAULT_CATALOG_ITEM_ID=1Response Verbosity
The server supports two verbosity modes to control token consumption:
Mode | Description |
| Full Markdown output with emojis, footers, and verbose pagination blocks (default) |
| Terse output — no decorative footer, one-line pagination summary, |
SDK (stdio) — environment variable:
TIFLUX_MCP_VERBOSITY=compact npx @tiflux/mcp@latestServer (HTTP/Lambda) — per-request header:
x-tiflux-verbosity: compactDefault is
richin both modes. Existing integrations are unaffected unless the env var or header is set.
Token-reduction tips for API integrations
When building applications that call this MCP server programmatically, token costs matter. Follow these guidelines:
Pass IDs when you already have them. Every tool that accepts a
_nameparam for auto-resolution (e.g.desk_name,stage_name,entity_field_name) will make one or more extra API calls to resolve the name. If you stored the ID from a previous call, pass it directly (e.g.desk_id,stage_id,entity_field_id) — this is always faster and cheaper.Use
compactverbosity viaTIFLUX_MCP_VERBOSITY=compact(SDK) orx-tiflux-verbosity: compactheader (Server). Compact mode cutsget_ticketandlist_ticketsoutput by ~50%.Paginate deliberately.
list_ticketswith a wide date range on a busy desk can return hundreds of items. Passlimitandoffsetintentionally — when a full page comes back, compact mode appends a next-page hint (→ offset: N) so the model knows there may be more to fetch.
Available Tools
get_ticket
Retrieve a specific ticket by ID with comprehensive information including status, priority, desk, stage, catalog, responsible, client, audit data, SLA and URLs.
Parameters:
ticket_number(string, required): Number of the ticket to retrieveshow_entities(boolean, optional): Include ALL custom fields linked to the ticketinclude_filled_entity(boolean, optional): Include only custom fields with filled values
Returns: Comprehensive ticket information including:
Status (ID, name, open/closed flags)
Priority (ID, name)
Desk (ID, internal name, display name, active status)
Stage (ID, name, first/last stage flags, max time)
Service Catalog (item ID, item name, area, catalog)
Responsible (ID, name, email, type, technical group)
Client (ID, name, social reason, active status)
Audit (created by ID, origin, created/updated dates)
SLA (status, expirations, deadlines)
Additional info (followers, worked hours, reopens, internal/external URLs)
New in v1.4.0: Expanded fields for complete ticket metadata in a single call.
create_ticket
Create a new ticket in TiFlux.
Parameters:
title(string, required): Ticket titledescription(string, required): Ticket description. Accepts Markdown (bold, lists, headings, code) — the MCP automatically converts it to HTML before sending to the API.client_id(number, optional): Client (company) IDclient_name(string, optional): Client (company) name for automatic search (alternative to client_id). Use only when the user says "client" or "company" explicitly.desk_id(number, optional): Desk IDdesk_name(string, optional): Desk/team name for automatic search (alternative to desk_id). Accepts partial names — e.g."cansados"resolves to"Dev - Cansados"(see Smart Name Resolution). Prefer this when the user references a name without qualifying the entity.priority_id(number, optional): Priority IDservices_catalogs_item_id(number, optional): Service catalog item IDcatalog_item_name(string, optional): Catalog item name for automatic search (alternative to services_catalogs_item_id, requires desk_id or desk_name)status_id(number, optional): Status IDrequestor_id(number, optional): Requestor ID (person who opens the ticket, must belong to the selected client). This is the canonical link — prefer it when you know the ID. Highest precedence: if provided, it is used directly with no resolution.requestor_name(string, optional): Requestor name. Used only when neitherrequestor_idnorrequestor_emailis provided. The MCP attempts to resolve it to an existingrequestor_id(avoids creating a "ghost" requestor) viaGET /requestors, falling back to the client-scopedGET /clients/{id}/requestorson 403. Multiple matches → returns a list to disambiguate; no match → sends the name as-is (the API resolves/creates the requestor).requestor_email(string, optional): Requestor email. The MCP automatically attempts to resolve it to an existingrequestor_idby searching the client's requestors (the canonical link). One match → uses therequestor_idand drops the raw email; zero matches → keeps the raw email as a fallback; multiple matches → returns a list to disambiguate. Has precedence overrequestor_name.requestor_telephone(string, optional): Requestor phone
Requestor precedence (v2.18.0): the canonical link is
requestor_id. The MCP resolves email and name torequestor_idautomatically when a matching registration exists, in the orderrequestor_id>requestor_email>requestor_name. When email or name resolves to an ID, the individual fields (name/email/telephone) are dropped from the payload so the registered requestor is linked instead of a loose/ghost entry. A raw email is only sent when no registration matches.
responsible_id(number, optional): Responsible user IDresponsible_name(string, optional): Responsible user name for automatic search (alternative to responsible_id)followers(string, optional): Comma-separated follower emailsparent_ticket_number(number, optional): Parent ticket number — the created ticket will be linked as a child of this ticketfiles_base64(array, optional): Array of base64 encoded files[{content: "base64...", filename: "file.png"}](max 10 files, 25MB each)
New in v2.4.0: Support for base64 file upload via files_base64. The ticket is sent as multipart/form-data. Note for Server mode (Lambda): files_base64 payloads are subject to the 6MB API Gateway limit.
Breaking change (v2.8.0): O parametro
files(caminhos locais) foi removido. Use a nova toolupload_ticket_filespara enviar arquivos via base64, ou passe os arquivos diretamente viafiles_base64.
update_ticket
Update an existing ticket in TiFlux. Supports transferring a ticket to another desk — when desk_id/desk_name is provided without an explicit stage_id/stage_name, the MCP automatically resolves the first stage of the destination desk (the stage with first_stage: true, or the one with the lowest index as a fallback), preventing invalid-stage errors.
Parameters:
ticket_number(string, required): Number of the ticket to update (e.g. "123", "456")title(string, optional): New ticket titledescription(string, optional): New ticket description. Accepts Markdown (bold, lists, headings, code) — the MCP automatically converts it to HTML before sending to the API.client_id(number, optional): New client IDdesk_id(number, optional): New desk ID. Transfers the ticket to the specified desk. Stages and priorities are scoped per desk — if no stage is provided, the MCP auto-resolves the first stage of the destination desk.desk_name(string, optional): Desk name for automatic search (alternative to desk_id). Accepts partial names — e.g."cansados"resolves to"Dev - Cansados"(see Smart Name Resolution). Prefer this when the user references a name without qualifying the entity.stage_id(number, optional): Stage/phase ID. Always takes precedence over auto-resolution.stage_name(string, optional): Stage name for automatic search (alternative to stage_id, requires desk_id or desk_name). Always takes precedence over auto-resolution.priority_id(number, optional): Priority ID. Priorities are scoped per desk — uselist_desk_prioritiesto discover valid IDs for the destination desk. When transferring desks, provide this field (orpriority_name) to preserve the ticket's priority (priorities are not automatically preserved across desk transfers).priority_name(string, optional): Priority name for automatic search (requiresdesk_idordesk_nameto resolve). Because it requires a desk, the API treats it as a transfer — sopriority_nameonly works when transferring to another desk. To change priority on the ticket's current desk, usepriority_iddirectly (no desk).priority_change_reason(string, optional): Reason for the priority change (free text). Required when changing priority (priority_id) outside of a desk transfer — the API rejectspriority_idwithout it (42201). Not allowed during a desk transfer — the API rejects it (42202); in that case it is dropped automatically and a warning is shown.status_id(number, optional): Status ID. There is no status listing endpoint in the API v2 — provide the ID directly (nostatus_name).responsible_id(number, optional): Responsible user ID (use null to unassign)responsible_name(string, optional): Responsible user name for automatic search (alternative to responsible_id)followers(string, optional): Comma-separated follower emailsservices_catalogs_item_id(number, optional): Catalog item ID for updating desk with specific itemcatalog_item_name(string, optional): Catalog item name for automatic search (alternative to services_catalogs_item_id, requires desk_id or desk_name)
Note: At least one optional field must be provided along with the ticket_number.
Desk Transfer Prerequisites:
Desk relationship — origin and destination desks must be linked in TiFlux settings. Without this the API rejects the transfer with a
42202error.Catalog item for destination desk — desks that require a service catalog reject the transfer without
services_catalogs_item_id/catalog_item_nameof the destination desk.Priority is not preserved — priority is scoped per desk and is lost on transfer (becomes
null). Providepriority_name/priority_idto preserve it. Status is automatically reallocated by the API.
Priority change rules (enforced by the API v2):
Same desk (no transfer): use
priority_iddirectly (nodesk_id/desk_name).priority_change_reasonis required (42201otherwise).priority_namedoes not work here — it requires a desk, which the API interprets as a transfer.During a desk transfer: provide
priority_idorpriority_nameto preserve priority; do not sendpriority_change_reason(42202otherwise — it is dropped automatically with a warning).
Error messages: Common 42202 transfer errors (missing desk relationship, required catalog) are returned as actionable messages instead of raw API text.
update_ticket_entities
Update custom fields (entities) of a ticket in TiFlux. Supports up to 50 fields per request. For checkbox fields with multiple named options, send one item per option with entity_field_option_id. Use list_entity_field_options to discover option IDs.
Tip: Prefer
entity_field_id(numeric) when available — it avoids extra API calls. Use the_nameparams only when you don't have the ID yet.
Parameters:
ticket_number(string, required): Ticket number to updateentities(array, required): List of custom fields to update. For multiple-choice checkbox fields, send one item per option.
Entity Object Structure:
entity_field_id(number): Custom field ID (obtained viaget_ticketorlist_entity_fields). Prefer this when available.entity_name(string, optional): Entity group name for automaticentity_field_idresolution — alternative when the ID is unknown.entity_field_name(string, optional): Field name within the entity group for automaticentity_field_idresolution — use together withentity_name.entity_field_option_name(string, optional): Option name for automaticentity_field_option_idresolution (forsingle_select/checkboxfields).value(string, required): Field value. Accepted types:text: stringtext_area: stringcurrency: float as string (e.g., "150.55")phone: numbers only (e.g., "47999999999")email: stringlink: URL starting with http/https/ftpdate: format YYYY-MM-DDsingle_select: option ID as stringcheckbox: boolean as string"true"/"false"Use
nullto clear non-required fields
entity_field_option_id(number, optional): Option ID for checkbox multiple-choice fields. Uselist_entity_field_optionsto get IDs. For multiple-choice checkboxes, send one item per option with the sameentity_field_idand differententity_field_option_id.country_code(string, optional): Country code (for phone fields outside Brazil)
Example — simple text/date fields (with IDs, most efficient):
{
"ticket_number": "123",
"entities": [
{ "entity_field_id": 72, "value": "New value" },
{ "entity_field_id": 73, "value": "2025-01-15" }
]
}Example — resolving by name (when IDs are unknown):
{
"ticket_number": "123",
"entities": [
{
"entity_name": "Contrato",
"entity_field_name": "Tipo de contrato",
"entity_field_option_name": "Suporte Premium",
"value": "true"
}
]
}Example — checkbox with multiple named options:
{
"ticket_number": "12345",
"entities": [
{ "entity_field_id": 81, "entity_field_option_id": 11, "value": "true" },
{ "entity_field_id": 81, "entity_field_option_id": 12, "value": "false" },
{ "entity_field_id": 81, "entity_field_option_id": 13, "value": "true" }
]
}cancel_ticket
Cancel a specific ticket in TiFlux.
Parameters:
ticket_number(string, required): Ticket number to be cancelled (e.g., "37", "123")
Example:
{
"ticket_number": "84429"
}list_tickets
List tickets with filtering options. Catalog and priority are automatically shown in every ticket card — no extra API calls needed (already included in GET /tickets response).
Parameters:
desk_ids(string, optional): Comma-separated desk IDs (e.g., "1,2,3")desk_name(string, optional): Desk/team name for automatic ID resolution. Accepts partial names — e.g."cansados"resolves to"Dev - Cansados"(see Smart Name Resolution). Prefer this field when the user references a name without qualifying the entity.client_ids(string, optional): Comma-separated client (company) IDs (e.g., "1,2,3")client_name(string, optional): Client (company) name for automatic search. Use only when the user explicitly says "client", "company", or gives a known corporate name. For a person, preferrequestor_email.stage_ids(string, optional): Comma-separated stage IDs (e.g., "1,2,3")stage_name(string, optional): Stage name (must be used with desk_name)responsible_ids(string, optional): Comma-separated responsible (assigned attendant) user IDs (use when you already have the ID)responsible_name(string, optional): Responsible user name for automatic resolution. Works for both admin (viaGET /users) and non-admin users (via attendant groups fallback). Use when the user says "assigned to" / "responsible" and gives a name.requestor_ids(string, optional): Comma-separated requestor (person who opened the ticket) IDs (e.g., "1,2,3"). Use for filtering by person (not company). Resolve the ID viasearch_requestor.requestor_email(string, optional): Email of the requestor (person who opened the ticket). Use when the user references a person or provides an email directly. Avoids a round-trip to resolve the ID.services_catalogs_item_ids(string, optional): Comma-separated service catalog item IDs (e.g., "11,12,13"). Passthrough directly to the API — max 15 IDs (theGET /ticketslimit; beyond that only the first 15 are applied, with a warning). Duplicates are removed. Use when you already know the IDs (viasearch_catalog_item). For name/area/catalog text search, usecatalog_query.catalog_query(string, optional): Free-text search term to filter by service catalog. Matches partially against catalog name, area name, and item name server-side — a single term like"security"returns items from all areas/catalogs whose name contains that term. Requires a desk (desk_idordesk_name). For precise IDs, useservices_catalogs_item_ids.priority_ids(string, optional): Comma-separated priority IDs (e.g., "17,18"). Passthrough directly to the API — max 15 IDs (theGET /ticketslimit; duplicates removed). Use when you already know the IDs (vialist_desk_priorities). For name-based search, usepriority_name.priority_name(string, optional): Priority name for automatic fuzzy resolution (e.g., "high", "baixa"). Requires a desk (desk_idordesk_name). For direct IDs, usepriority_ids.offset(number, optional): Page number (default: 1)limit(number, optional): Items per page (default: 20, max: 200)is_closed(boolean, optional): Include closed tickets (default: false)filter_by(string, optional): Status mode with precedence overis_closed: "open" (only open), "closed" (only resolved/closed — does NOT include cancelled), "canceled" (only cancelled — robust even with custom status names), or "all" (every status in a single query). Use "canceled" when the user specifically asks for cancelled tickets, and "all" for tickets regardless of status.date_type(string, optional): Date type for filtering: "created_at" (creation date, default) or "solved_in_time" (resolution/closing date)group_by(string, optional): Aggregates the ticket COUNT instead of returning the list. "day"/"week"/"month" group by period (combine withdate_type+ date range); "desk" groups by desk. Returns{ group_by, date_type, total, buckets: [{period, count}] }. Use for comparison/trend (e.g., "opened per day this week") or per-desk breakdowns.sla_expiring_before(string, optional): Filters OPEN (and non-stopped) tickets whose RESOLUTION SLA (solve_expiration) is due before the given ISO 8601 datetime, including already overdue. Use for "SLA at risk" (e.g., pass end-of-today). Combine withgroup_by=deskfor "desks with SLA at risk".start_datetime(string, optional): Start date/time filter in ISO 8601 format (e.g., "2024-05-15T00:00:00Z"). Filters tickets with date >= start_datetimeend_datetime(string, optional): End date/time filter in ISO 8601 format (e.g., "2024-05-15T23:59:59Z"). Filters tickets with date <= end_datetime
Note: At least one filter is required (desk, client, requestor, responsible, stage, date range, SLA, catalog, or priority).
Catalog filter note: catalog_query uses server-side partial matching against catalog, area, and item names simultaneously — one term matches items from multiple areas. The MCP paginates all results and resolves to item IDs before calling GET /tickets. Because GET /tickets accepts at most 15 services_catalogs_item_ids (Swagger error 42201 otherwise), if the query resolves to more than 15 items only the first 15 are applied and a warning is returned (the result may be incomplete). For surgical precision, discover IDs via search_catalog_item and pass a narrow set via services_catalogs_item_ids.
Example — filter by catalog query:
{
"desk_name": "Support",
"catalog_query": "security"
}Example — filter by priority and catalog (IDs):
{
"desk_ids": "1",
"priority_ids": "17",
"services_catalogs_item_ids": "11,12"
}Example — filter by requestor email:
{
"requestor_email": "joao@empresa.com",
"is_closed": false
}Date Filtering Examples:
// List tickets created in a specific date range (including closed ones)
{
"desk_name": "Support",
"date_type": "created_at",
"start_datetime": "2024-01-01T00:00:00Z",
"end_datetime": "2024-01-31T23:59:59Z",
"is_closed": true
}
// List tickets resolved in a specific period
{
"desk_name": "Support",
"date_type": "solved_in_time",
"start_datetime": "2024-01-01T00:00:00Z",
"end_datetime": "2024-01-31T23:59:59Z",
"is_closed": true
}close_ticket
Close a specific ticket in TiFlux.
Parameters:
ticket_number(string, required): Ticket number to be closed (e.g., "37", "123")
Example:
{
"ticket_number": "84429"
}Success Response:
**Ticket #84429 fechado com sucesso!**
**Mensagem:** Ticket 84429 closed successfully
*Ticket fechado via API TiFlux*create_ticket_answer
Create a new answer (client communication) in a specific ticket.
Parameters:
ticket_number(string, required): Ticket number where answer will be createdtext(string, required): Answer content that will be sent to the client. Accepts Markdown (bold, lists, headings, code) — the MCP automatically converts it to HTML before sending to the API.with_signature(boolean, optional): Include user signature in the answer (default: false)files_base64(array, optional): Array of base64 encoded files[{content: "base64...", filename: "file.pdf"}](max 10 files, 40MB each)
New in v1.3.0: Support for base64 file upload via files_base64 parameter.
Breaking change (v2.8.0): O parametro
files(caminhos locais) foi removido. Use a nova toolupload_ticket_filespara enviar arquivos via base64, ou passe os arquivos diretamente viafiles_base64.
Example:
{
"ticket_number": "123",
"text": "Hello, your issue has been resolved.",
"with_signature": true,
"files_base64": [{"content": "JVBERi0x...", "filename": "attachment.pdf"}]
}search_client
Search for clients by name (shortcut — name-only). Use list_clients for full filters and pagination.
Parameters:
client_name(string, required): Client name to search (partial match supported)
list_clients
List clients with filters and pagination. Full version of search_client — accepts status, name, and CPF/CNPJ filters.
Parameters:
active(boolean, optional): Filter by status: true = active only, false = inactive only. Omit for all.name(string, optional): Filter by name (partial match)social_revenue(string, optional): Filter by CPF/CNPJoffset(number, optional): Page number (default: 1)limit(number, optional): Results per page (default: 20, max: 200)
Example:
{
"active": true,
"name": "Acme",
"limit": 10
}get_client
Get full details of a client by ID.
Parameters:
client_id(number, required): Client ID (obtained viasearch_clientorlist_clients)show_entities(boolean, optional): Include custom fields (entities) in the response (default: false)
Example:
{
"client_id": 42,
"show_entities": true
}create_client
Create a new client in TiFlux. Only name and social are required; all other fields are optional and only sent if provided.
Parameters:
name(string, required): Client trade name (nome fantasia)social(string, required): Client legal name (razão social)social_revenue(string, optional): CPF or CNPJdesk_ids(array of numbers, optional): Desk IDs to associateadd_all_desks(boolean, optional): Associate all deskstechnical_group_ids(array of numbers, optional): Technical group IDs to associatestatus(boolean, optional): Active (true) or inactive (false) — default: truemax_agents(number, optional): Maximum agents allowedemail_financial(string, optional): Financial contact emailanotations(string, optional): Internal notesbilling_report_type(string, optional):detailed_with_appointment,detailed,synthetic, or""(empty)
Example:
{
"name": "Acme Corp",
"social": "Acme Corporação Ltda",
"social_revenue": "12.345.678/0001-99",
"desk_ids": [1, 2]
}update_client
Update an existing client (partial update — only provided fields are sent).
Parameters:
client_id(number, required): Client ID to updateAll fields from
create_client(all optional)
Example:
{
"client_id": 42,
"status": false,
"email_financial": "novo@empresa.com"
}update_client_entities
Update custom fields (entities) for a client. Supports up to 50 fields per request. For checkbox fields with multiple options, send one item per option with entity_field_id + entity_field_option_id + value: "true"/"false".
Tip: Prefer
entity_field_id(numeric) when available — it avoids extra API calls. Use the_nameparams only when you don't have the ID yet.
Parameters:
client_id(number, required): Client ID to updateentities(array, required): List of custom fields. Each item:entity_field_id(number): Custom field ID. Prefer this when available.entity_name(string, optional): Entity group name for automaticentity_field_idresolution.entity_field_name(string, optional): Field name for automaticentity_field_idresolution (use withentity_name).entity_field_option_name(string, optional): Option name for automaticentity_field_option_idresolution.value(string, required): Field value (or null to clear)entity_field_option_id(number, optional): Option ID for checkbox/single_selectcountry_code(string, optional): Country code for phone fields
Example — with IDs (most efficient):
{
"client_id": 42,
"entities": [
{ "entity_field_id": 72, "value": "TI" },
{ "entity_field_id": 80, "entity_field_option_id": 12, "value": "true" }
]
}Example — resolving by name:
{
"client_id": 42,
"entities": [
{
"entity_name": "Dados comerciais",
"entity_field_name": "Segmento",
"entity_field_option_name": "Tecnologia",
"value": "true"
}
]
}get_client_desks
List desks associated with a client.
Parameters:
client_id(number, required): Client IDoffset(number, optional): Page number (default: 1)limit(number, optional): Results per page (default: 20, max: 200)
get_client_technical_groups
List technical groups associated with a client.
Parameters:
client_id(number, required): Client IDoffset(number, optional): Page number (default: 1)limit(number, optional): Results per page (default: 20, max: 200)
create_client_user
Create a portal user for a client. Allows the user to access the client portal.
Parameters:
client_id(number, required): Client ID to associate the user withname(string, required): Full name of the useremail(string, required): User email — used for portal loginextension(string, optional): Phone extensionauthorization_flow(boolean, optional): Require authorization for portal accesstelephone(string, optional): Phone numbercountry_code(string, optional): Country code for the phone number
Example:
{
"client_id": 42,
"name": "João Silva",
"email": "joao@empresa.com",
"telephone": "11999999999"
}add_client_email_permission
Add an authorized domain or email to open tickets on behalf of a client.
Parameters:
client_id(number, required): Client IDaddress(string, required): Domain (e.g.@empresa.com.br) or specific email authorized to open tickets for this client
Example:
{
"client_id": 42,
"address": "@empresa.com.br"
}search_user
Search for users by name to use as responsible in tickets.
Parameters:
name(string, required): User name to search (partial match supported, searches in name and email)type(string, optional): User type filter (client, attendant, admin)active(boolean, optional): Filter active (true) or inactive (false) userslimit(number, optional): Results per page (default: 20, max: 200)offset(number, optional): Page number (default: 1)
Non-admin support (fallback via attendant groups):
If the API key belongs to a non-admin user, GET /users returns 403. In this case, the tool automatically falls back to enumerating attendant groups (GET /technical-groups) and their members (GET /technical-groups/{id}/users), then applies fuzzy matching by name. The result is identical to the admin path — no parameter change needed. A note is added to the output when the fallback was used.
Implementation Note:
For admin users, the TiFlux API does not support name-based filtering in the /users endpoint — the tool fetches up to 200 users and filters client-side. For non-admin users, the tool uses the technical-groups chain and deduplicates users that appear in multiple groups.
Example:
{
"name": "John",
"type": "attendant",
"active": true
}search_technical_user
Search for technical attendants (users who can be assigned as responsible) in TiFlux by name, email, desk, or client. Uses the GET /technical-users endpoint — does not require user management permission (works for both admin and non-admin attendants). Use the returned id as responsible_id when creating or updating a ticket.
Note on responsible_name auto-resolve: When responsible_name is passed to create_ticket, update_ticket, or list_tickets, the MCP now uses GET /technical-users as the primary resolution path (fast, 1 round-trip, works for all profiles). The old fallback via GET /technical-groups is only triggered if the primary path returns an unexpected error (404/403), preserving compatibility with orgs where the endpoint may not be available.
Parameters:
name(string, optional): Attendant name to search (partial match, case-insensitive, server-side)email(string, optional): Attendant email (partial match, case-insensitive, server-side)desk_id(number, optional): Filter attendants who serve this deskclient_id(number, optional): Filter attendants who serve this clientlimit(number, optional): Results per page (default: 20, max: 200)offset(number, optional): Page number (default: 1)
Example:
{
"name": "Ana",
"desk_id": 123
}Returns: List of attendants with id, name, and email. Use the id in responsible_id.
search_requestor
Search for requestors (ticket openers) in TiFlux by name, email, or telephone. Uses the dedicated GET /requestors endpoint with server-side filtering — no client-side limit.
Automatic fallback chain (triggers on 403 OR on zero results — no questions asked): the tool tries each source in order and returns the first that finds someone, so it also works for non-admin attendants and for searches where the term exists only as a user (not as a registered requestor):
GET /requestors— global requestors (admin/global permission). → use theidasrequestor_id.GET /clients/{client_id}/requestors— client-scoped requestors (only ifclient_idis provided; clients are already filtered by the attendant's permission). →requestor_id.GET /users— users matching the name/email. Users are not requestors, but their email can be used asrequestor_emailwhen creating the ticket.GET /users/me— the current user. Suggests opening the ticket as yourself, using your own email asrequestor_email.
A non-403 hard error (e.g. 5xx) on the primary endpoint is surfaced instead of being masked by the chain. The calling LLM decides the next step from the suggestion.
Parameters:
name(string, optional): Requestor name to search (partial match, server-side)email(string, optional): Requestor email to searchtelephone(string, optional): Requestor phone number (no country code, no symbols)can_open_ticket(boolean, optional): Filter requestors who can (true) or cannot (false) open tickets by emailclient_id(number, optional): Client ID to scope the search. Enables the automaticGET /clients/{id}/requestorsfallback when the global endpoint returns 403.limit(number, optional): Results per page (default: 20, max: 200)offset(number, optional): Page number (default: 1)
Note: At least one filter parameter must be provided.
Returns: When found via levels 1–2, a list of requestors with id, name, email, telephone, client.name, and can_open_ticket (use the id as requestor_id). When found only via level 3 (users) or level 4 (yourself), a suggestion to use the matched email as requestor_email.
Example:
{
"name": "João Silva"
}Example (by email):
{
"email": "joao@empresa.com"
}list_requestors
List the requestors of a specific client (canonical per-client listing — GET /clients/{id}/requestors, aligned with list_clients). Use search_requestor when you need a cross-client search with the fallback chain; use list_requestors for the requestor catalog of a known client.
Parameters:
client_id(number, required): Client whose requestors will be listedname(string, optional): Filter by name (partial match)email(string, optional): Filter by emailtelephone(string, optional): Filter by phone (digits only, no country code)extension(string, optional): Filter by extensioncan_open_ticket(boolean, optional): Filter requestors who can (true) or cannot (false) open tickets by emailinclude_entity_fields(boolean, optional): Include each requestor's custom fields (entities) in the response (default: false)offset(number, optional): Page number (default: 1)limit(number, optional): Requestors per page (default: 20, max: 200)
Returns: A paginated list of requestors with id, name, email, telephone, extension, and can_open_ticket.
Example:
{
"client_id": 123,
"name": "João"
}get_requestor
Get full details of a requestor of a client by ID (GET /clients/{id}/requestors/{requestor_id}). Returns registration data and optional custom fields (entities, applied_in: "solicitant").
Parameters:
client_id(number, required): Client the requestor belongs torequestor_id(number, required): Requestor ID (obtained vialist_requestorsorsearch_requestor)show_entities(boolean, optional): Include custom fields (entities) in the response (default: false)
Example:
{
"client_id": 123,
"requestor_id": 555,
"show_entities": true
}create_requestor
Create a new requestor in a client (POST /clients/{id}/requestors). Required fields: client_id, name, telephone. Other fields are optional and only sent if provided.
Parameters:
client_id(number, required): Client to link the requestor toname(string, required): Requestor nametelephone(string, required): Requestor phone (digits only)email(string, optional): Requestor emailcan_open_ticket(boolean, optional): Whether the requestor can open tickets by emailextension(string, optional): Requestor extensioncountry(string, optional): Requestor country
Returns: The created requestor's id, name, email, and telephone.
Example:
{
"client_id": 123,
"name": "João Silva",
"telephone": "47999999999",
"email": "joao@empresa.com"
}update_requestor
Update an existing requestor (PUT /clients/{id}/requestors/{requestor_id}). Partial update — only the provided fields are sent. Use get_requestor to see the current state before updating.
Parameters:
client_id(number, required): Client the requestor belongs torequestor_id(number, required): Requestor ID to updatename(string, optional): Requestor nametelephone(string, optional): Requestor phone (digits only)email(string, optional): Requestor emailcan_open_ticket(boolean, optional): Whether the requestor can open tickets by emailextension(string, optional): Requestor extension
If no updatable field is provided, returns a friendly error.
Example:
{
"client_id": 123,
"requestor_id": 555,
"can_open_ticket": true
}update_requestor_entities
Update a requestor's custom fields (entities) (PUT /clients/{id}/requestors/{requestor_id}/entities). Supports up to 50 fields per request. For checkbox fields with multiple options, send one item per option with entity_field_id + entity_field_option_id + value: "true"/"false".
Prefer IDs when known to avoid resolution round-trips. Use entity_name/entity_field_name/entity_field_option_name for automatic resolution when you don't have the IDs — resolution is scoped to requestor entities (applied_in: "solicitant").
Parameters:
client_id(number, required): Client the requestor belongs torequestor_id(number, required): Requestor ID to updateentities(array, required): List of custom fields (seeupdate_client_entitiesfor the item shape)
Example:
{
"client_id": 123,
"requestor_id": 555,
"entities": [
{ "entity_field_id": 88, "value": "Premium" }
]
}search_stage
Search for stages of a specific desk to use in ticket updates.
Parameters:
desk_id(number, optional): Desk ID to search stagesdesk_name(string, optional): Desk name for automatic search (alternative to desk_id). Accepts partial names — e.g."cansados"resolves to"Dev - Cansados"(see Smart Name Resolution)limit(number, optional): Results per page (default: 20, max: 200)offset(number, optional): Page number (default: 1)
Note: At least one parameter (desk_id or desk_name) must be provided.
Example:
{
"desk_name": "Suporte",
"limit": 20
}search_catalog_item
Search for service catalog items by free-text term or by name/filter within a specific desk. Use search to explore items by keyword (server-side, matches catalog name, area name, or item name). Use catalog_item_name to locate a specific item by name (client-side, collapses to single detail when exactly 1 match).
Parameters:
desk_id(number, optional): Desk ID to search catalog itemsdesk_name(string, optional): Desk name for automatic search (alternative to desk_id). Accepts partial names — e.g."cansados"resolves to"Dev - Cansados"(see Smart Name Resolution)search(string, optional): Free-text term for server-side search across catalog name, area name, and item name. Partial match, case-insensitive, accent-insensitive. Returns a listing with full hierarchy (catalog → area → item). Combinable witharea_id/catalog_idto narrow scope.catalog_item_name(string, optional): Catalog item name to search (client-side partial match on item name only). 1 match → detailed view; multiple → error with list. Usesearchfor broader exploration.area_id(number, optional): Service area ID to filter resultscatalog_id(number, optional): Service catalog ID to filter resultslimit(number, optional): Results per page (default: 20, max: 200)offset(number, optional): Page number (default: 1)
Note: At least one of desk_id or desk_name must be provided, along with at least one of search, catalog_item_name, area_id, or catalog_id.
Example — free-text search (recommended for exploration):
{
"desk_name": "Support",
"search": "infra",
"limit": 10
}Example — locate a specific item by name:
{
"desk_name": "Support",
"catalog_item_name": "Installation",
"limit": 10
}Internal Communications
create_internal_communication
Create a new internal communication in a ticket.
Parameters:
ticket_number(string, required): Ticket number where communication will be createdtext(string, required): Communication content. Accepts Markdown (bold, lists, headings, code) — the MCP automatically converts it to HTML before sending to the API.files_base64(array, optional): Array of base64 encoded files[{content: "base64...", filename: "file.pdf"}](max 10 files, 25MB each)
New in v1.3.0: Support for base64 file upload via files_base64 parameter.
Breaking change (v2.8.0): O parametro
files(caminhos locais) foi removido. Use a nova toolupload_ticket_filespara enviar arquivos via base64, ou passe os arquivos diretamente viafiles_base64.
Example:
{
"ticket_number": "123",
"text": "Internal communication content",
"files_base64": [{"content": "base64...", "filename": "relatorio.pdf"}]
}list_internal_communications
List internal communications for a ticket.
Parameters:
ticket_number(string, required): Ticket number to list communicationsoffset(number, optional): Page number (default: 1)limit(number, optional): Communications per page (default: 20, max: 200)
get_ticket_files
Get all files attached to a specific ticket.
Parameters:
ticket_number(string, required): Ticket number to retrieve files from
Returns: List of files with details including:
File ID, name, content type
File size (formatted as KB/MB/GB)
URL for download
Created date and creator information
Example:
{
"ticket_number": "123"
}upload_ticket_files
Upload files to an existing ticket in TiFlux. Files must be provided as base64-encoded content.
Parameters:
ticket_number(string, required): Ticket number where files will be attached (e.g., "123", "456")files_base64(array, required): Array of base64 encoded files[{content: "base64...", filename: "file.pdf"}](max 10 files, 25MB each)
Example:
{
"ticket_number": "123",
"files_base64": [
{"content": "base64encodedcontent...", "filename": "relatorio.md"},
{"content": "base64encodedcontent...", "filename": "screenshot.png"}
]
}Returns: Confirmation with list of uploaded files.
Note: Uploaded text files (.md, .txt, .csv, .json) are sent with the appropriate charset=utf-8 content type, which prevents character encoding issues (mojibake) in the TiFlux portal.
delete_ticket_file
Remove a file attached to a ticket in TiFlux.
Parameters:
ticket_number(string, required): Ticket number from which the file will be removed (e.g., "123", "456")file_id(string, required): ID of the file to remove (obtained viaget_ticket_files)
Example:
{
"ticket_number": "123",
"file_id": "456"
}Returns: Confirmation that the file was removed.
get_ticket_stages_slas
List the full history of a ticket as it moved through the desk's stages, with the SLA outcome for each stage. Useful for SLA audits, escalation reviews, and bottleneck analysis.
Parameters:
ticket_number(string, required): Ticket number (e.g., "123", "456")offset(number, optional): Page number (default: 1)limit(number, optional): Records per page (default: 20, max: 200)
Returns: For each stage transition, the formatted output includes:
Stage name and desk
Time spent in expedient (
HH:MM)Whether the SLA was met (
✅ Sim/❌ Não)SLA expiration timestamp
When the ticket entered the stage and who moved it
When (if) the ticket was attended in this stage and by whom
Empty result: Tickets on desks without an active SLA return an empty list with an explanatory message — this is expected behavior, not an error.
Example:
{
"ticket_number": "32",
"offset": 1,
"limit": 20
}list_ticket_answers
List answers (communications with the client) of a specific ticket, paginated.
Parameters:
ticket_number(integer, required): Ticket number to list answers fromoffset(number, optional): Page number (default: 1)limit(number, optional): Answers per page (default: 20, max: 200)
Returns: Each answer includes:
Author name, date/time, origin (
agent,client, etc.)File count indicator
Preview of the content (first 200 characters)
Pagination info with hint for next page
Example:
{
"ticket_number": 123,
"offset": 1,
"limit": 20
}get_ticket_answer
Get the full detail of a specific answer from a ticket, including attached files.
Parameters:
ticket_number(integer, required): Ticket numberanswer_id(integer, required): ID of the answer to retrieve
Returns:
Full answer content (untruncated), author, date, origin
Complete list of attached files with name, type, size and download URL
Example:
{
"ticket_number": 123,
"answer_id": 501
}delete_ticket_answer
Remove an answer (client communication) from a ticket in TiFlux.
Parameters:
ticket_number(string, required): Ticket number from which the answer will be removed (e.g., "123", "456")answer_id(string, required): ID of the answer to remove (obtained vialist_ticket_answersorget_ticket_answer)
Example:
{
"ticket_number": "123",
"answer_id": "501"
}Returns: Confirmation that the answer was removed.
delete_ticket_answer_file
Remove a file attached to a specific ticket answer in TiFlux.
Parameters:
answer_id(string, required): ID of the answer from which the file will be removed (obtained vialist_ticket_answersorget_ticket_answer)file_id(string, required): ID of the file to remove (obtained viaget_ticket_answer, fieldfiles[].id)
Example:
{
"answer_id": "501",
"file_id": "1"
}Returns: Confirmation that the file was removed.
get_ticket_histories
List the event history (timeline) of a ticket, showing field changes, stage transitions, and other events. Paginated.
Parameters:
ticket_number(integer, required): Ticket number to retrieve history foroffset(number, optional): Page number (default: 1)limit(number, optional): Events per page (default: 20, max: 200)history_of(integer, optional): Filter by ticket area (e.g.,1= appointments)type_id_attr(integer, optional): Filter by attribute typeoperation(integer, optional): Filter by operation type — only valid whenhistory_of=1
Returns: For each event:
Action description, user, date/time, event type and operation
Diff of changed fields with old → new values
Example:
{
"ticket_number": 123,
"history_of": 1
}reopen_ticket
Reopen a closed or canceled ticket. Tickets that have been billed cannot be reopened.
Parameters:
ticket_number(integer, required): Ticket number to reopendisapproval_reason(string, optional): Required when reopening a ticket pending review (disapproval-based reopening)
Business Rules:
Tickets that have been billed cannot be reopened (API returns 422)
disapproval_reasonis mandatory when reopening a ticket that is pending review/approval
Example:
{
"ticket_number": 123,
"disapproval_reason": "The solution did not resolve the issue"
}get_internal_communication
Get a specific internal communication with full content.
Parameters:
ticket_number(string, required): Ticket number containing the communicationcommunication_id(string, required): ID of the internal communication to retrieve
update_internal_communication
Update the text of an existing internal communication in a ticket. Only the author of the communication can edit it.
Parameters:
ticket_number(string, required): Ticket number where the communication exists (e.g., "123", "456")communication_id(string, required): ID of the internal communication to update (obtained vialist_internal_communicationsorget_internal_communication)text(string, required): New content of the internal communication. Accepts Markdown (bold, lists, headings, code) — the MCP automatically converts it to HTML before sending to the API.
Example:
{
"ticket_number": "123",
"communication_id": "101",
"text": "Updated communication content with **important** details."
}Returns: Confirmation with updated communication content.
Note: The TiFlux API only allows the author of the communication to edit it. A 403 error will be returned if the authenticated user did not create the communication.
delete_internal_communication
Remove an internal communication from a ticket in TiFlux.
Parameters:
ticket_number(string, required): Ticket number from which the communication will be removed (e.g., "123", "456")communication_id(string, required): ID of the internal communication to remove (obtained vialist_internal_communications)
Example:
{
"ticket_number": "123",
"communication_id": "101"
}Returns: Confirmation that the internal communication was removed.
Appointments (Time Tracking)
Disclaimer: Creating appointments (
create_appointment) is only supported for tickets on desks configured with non-valued appointments. Listing appointments (list_appointments) works for any desk and renders valorization details when available.
create_appointment
Create a new appointment (work-hour record) on a specific ticket. Only works on tickets from desks configured with non-valued appointments.
Parameters:
ticket_number(string, required): Ticket number where the appointment will be createddate(string, required): Appointment date inYYYY-MM-DDformat. Future dates are not allowed.init_time(string, required): Start time inHH:MMformat (e.g."09:00","14:30")end_time(string, required): End time inHH:MMformat. Must be greater than or equal toinit_time.description(string, required): Description of the work performed
Example:
{
"ticket_number": "123",
"date": "2025-01-15",
"init_time": "09:00",
"end_time": "10:30",
"description": "Investigation and fix of the reported issue"
}list_appointments
List appointments (work-hour records) of a specific ticket with optional filters. When available, each appointment card includes valorization details (attendance type, contract or loose service, travel shift, value) and geolocation entries.
Parameters:
ticket_number(string, required): Ticket number to list appointments fromuser_id(number, optional): Filter by the ID of the user who made the appointmentstart_date(string, optional): Return appointments from this date (YYYY-MM-DD)end_date(string, optional): Return appointments up to this date (YYYY-MM-DD)offset(number, optional): Page number (default: 1)limit(number, optional): Appointments per page (default: 20, max: 200)
Returns: Each appointment card shows date, time range, attendant, client (when available), and description. When the desk has valorization enabled, the card also includes:
Attendance type: External (Externo), Remote (Remoto), or Internal (Interno)
Service type: Loose (Avulso) with loose service name, or Contract with contract name
Travel shift name and value (when applicable)
Guarantee and manual-value flags (shown only when
true)Monetary value formatted as
R$ X,XX
When valorization is null (desks configured without valorization), none of the above fields are shown.
Geolocation lines (📍 Localização: lat, lon) are rendered when the API returns locations for the appointment.
Example:
{
"ticket_number": "123",
"start_date": "2025-01-01",
"end_date": "2025-01-31",
"limit": 50
}Chats
get_chat
Exibir detalhes de um chat específico pelo id. Retorna card com status, cliente, responsável, departamento, origem, avaliação e datas.
Parameters:
id(number, required): Numeric ID of the chat (also accepts numeric string — the handler calls parseInt)
Returns: Card with all relevant chat fields including:
Status (archived, canceled, online, waiting for answer)
Client and requestor names
Department and responsible attendant
Origin channel and room
Linked ticket number
Assessment rating (1–5) if available
Last client message (truncated at 150 chars)
Timestamps (created, updated, assumed)
Example:
{
"id": 42
}list_inbox_chats
Listar chats na caixa de entrada (chats não assumidos) com filtros opcionais de departamento, cliente, origem, data e paginação.
Parameters:
offset(number, optional): Page number (default: 1, minimum: 1)limit(number, optional): Chats per page (default: 20, max: 200)department_id(number, optional): Filter by department ID. To discover the ID from a name, uselist_departments(e.g.list_departments name:"financeiro")client_id(number, optional): Filter by client IDrequestor_id(number, optional): Filter by requestor ID — must be greater than 0number(number, optional): Filter by WhatsApp contact number — requires WhatsApp licenseorigins(string, optional): Comma-separated origin channels:chat,site_widget,campaign,whatsapp,whatsapp_web,gupshup,whatsapp_cloudstarted_by(string, optional): Chat initiator type:Client,Attendant,Campaign,APIcreated_at_start(string, optional): Filter chats created on or after this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZcreated_at_end(string, optional): Filter chats created on or before this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZ. Must be >=created_at_start
Example:
{
"origins": "whatsapp",
"created_at_start": "2026-06-01T00:00:00Z",
"created_at_end": "2026-06-30T23:59:59Z",
"limit": 10
}list_my_chats
Listar chats assumidos pelo usuário autenticado (dono da API key) com filtros opcionais e paginação.
Parameters:
offset(number, optional): Page number (default: 1, minimum: 1)limit(number, optional): Chats per page (default: 20, max: 200)department_id(number, optional): Filter by department ID. To discover the ID from a name, uselist_departments(e.g.list_departments name:"financeiro")client_id(number, optional): Filter by client IDrequestor_id(number, optional): Filter by requestor ID — must be greater than 0number(number, optional): Filter by WhatsApp contact number — requires WhatsApp licenseorigins(string, optional): Comma-separated origin channels (see list_inbox_chats)started_by(string, optional): Chat initiator type (see list_inbox_chats)created_at_start(string, optional): Filter chats created on or after this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZcreated_at_end(string, optional): Filter chats created on or before this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZ. Must be >=created_at_start
Example:
{
"department_id": 3,
"created_at_start": "2026-06-01T00:00:00Z",
"limit": 20
}list_in_attendance_chats
Listar todos os chats em atendimento da organização com filtros opcionais de responsável, status, data e paginação.
Parameters:
offset(number, optional): Page number (default: 1, minimum: 1)limit(number, optional): Chats per page (default: 20, max: 200)department_id(number, optional): Filter by department ID. To discover the ID from a name, uselist_departments(e.g.list_departments name:"financeiro")client_id(number, optional): Filter by client IDrequestor_id(number, optional): Filter by requestor ID — must be greater than 0number(number, optional): Filter by WhatsApp contact number — requires WhatsApp licenseorigins(string, optional): Comma-separated origin channels (see list_inbox_chats)started_by(string, optional): Chat initiator type (see list_inbox_chats)user_id(number, optional): Filter by responsible attendant IDstatus(string, optional): Filter by attendance status:waiting_client,waiting_attendance,triagecreated_at_start(string, optional): Filter chats created on or after this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZcreated_at_end(string, optional): Filter chats created on or before this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZ. Must be >=created_at_start
Example:
{
"user_id": 7,
"status": "triage",
"created_at_start": "2026-06-15T00:00:00Z"
}list_archived_chats
Listar chats arquivados (finalizados ou cancelados) com filtros opcionais de data de criação e finalização. Exibe avaliação do atendimento e status de cancelamento.
Parameters:
offset(number, optional): Page number (default: 1, minimum: 1)limit(number, optional): Chats per page (default: 20, max: 200)department_id(number, optional): Filter by department ID. To discover the ID from a name, uselist_departments(e.g.list_departments name:"financeiro")client_id(number, optional): Filter by client IDrequestor_id(number, optional): Filter by requestor ID — must be greater than 0number(number, optional): Filter by WhatsApp contact number — requires WhatsApp licenseorigins(string, optional): Comma-separated origin channels (see list_inbox_chats)started_by(string, optional): Chat initiator type (see list_inbox_chats)canceled(boolean, optional):true= only canceled chats,false= only normally finished, omitted = all archived chatscreated_at_start(string, optional): Filter chats created on or after this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZcreated_at_end(string, optional): Filter chats created on or before this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZ. Must be >=created_at_startfinished_at_start(string, optional): Filter chats finished on or after this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZ. Only applicable to archived chatsfinished_at_end(string, optional): Filter chats finished on or before this datetime. Recommended format: ISO 8601YYYY-MM-DDTHH:MM:SSZ. Must be >=finished_at_start. Only applicable to archived chats
Example:
{
"canceled": false,
"created_at_start": "2026-06-01T00:00:00Z",
"created_at_end": "2026-06-30T23:59:59Z",
"finished_at_start": "2026-06-15T00:00:00Z",
"limit": 50
}update_chat
Atualizar um chat existente: transferir o atendente (user_id), transferir o departamento (department_id) e/ou vincular o chat a um ticket (ticket_number). Só é possível atualizar um chat que não esteja cancelado ou encerrado.
Parameters:
id(number, required): Chat ID (accepts numeric string — handler runsparseInt)user_id(number, optional): Attendant the chat will be transferred touser_name(string, optional): Attendant name for automatic lookup (alternative touser_id;user_idtakes precedence). Caveat (BL-007): requires an admin API key —GET /usersreturns 403 for non-admin accounts; in that case useuser_iddirectly.department_id(number, optional): Department the chat will be transferred to. Nodepartment_name— to find the ID from a name, uselist_departmentsfirst (e.g.list_departments name:"financeiro").ticket_number(number, optional): Ticket number to link to the chat
Note: At least one of user_id / user_name / department_id / ticket_number is required. If none is provided, the tool returns a friendly warning without calling the API.
Example:
{
"id": 37,
"user_id": 1,
"ticket_number": 127
}Returns: Markdown confirmation with the list of applied changes.
send_message
Enviar uma mensagem por WhatsApp, criando o chat no envio. Use mensagem livre (message) ou modelo HSM / modelo de chat (template_id), nunca os dois juntos.
messageé texto plano (NÃO Markdown/HTML). O WhatsApp usa marcação própria (asterisco para negrito, underscore para itálico); HTML apareceria literal. Por isso, diferentemente dedescription/answerde ticket, o conteúdo não é convertido para HTML.
Parameters:
number(number, required): Destination phone number. Validated as Brazilian by default; for another country also passcountry_code.integration_id(number, required): WhatsApp integration ID. Accepted types:gupshup,whatsapp_cloud.message(string, optional): Free-text message (plain text). UsemessageORtemplate_id.template_id(number, optional): HSM / chat template ID. Useparameters/header_parametersfor variables.country_code(string, optional): ISO 3166-1 alpha-2 country code (e.g.US). DefaultBR.name(string, optional): Requester name.department_id(number, optional): Link the created chat to a department.ticket_number(number, optional): Link the created chat to a ticket.client_id(number, optional): Link the created chat to a client.parameters(string[], optional): Values for the HSM body variables (template_id).header_parameters(string[], optional): Values for the HSM header variables —whatsapp_cloudonly.archive(boolean, optional): Defaultfalse.true= create and send straight to the finished/archived box.
Note: Besides number + integration_id, at least one of message / template_id is required (validated locally). Success status from the API: 201.
Example (free message):
{
"number": 5568976728276,
"integration_id": 1,
"message": "Olá, tudo bem?"
}Example (HSM template with parameters):
{
"number": 5519993017428,
"integration_id": 1,
"template_id": 1,
"parameters": ["Valor 1", "Valor 2"]
}Returns: Markdown confirmation with the send details (type, number, integration, links).
archive_chat
Finalizar (encerrar) um chat. A API responde 202 (Accepted) — o encerramento pode ser processado de forma assíncrona; o tool trata 202 como sucesso.
Parameters:
id(number, required): Chat ID to finish (accepts numeric string — handler runsparseInt)services_catalogs_item_id(number, optional): Service catalog item ID. Conditional: required only when the organization is configured to "Usar catálogo de serviços no chat" — otherwise the API returns 422. Nocatalog_item_name: catalog item search requires adesk_id, which the chat does not provide; pass the ID directly when needed.
Example:
{
"id": 37,
"services_catalogs_item_id": 1
}Returns: Markdown confirmation that the chat was finished (202 Accepted).
Desk Tools
Explore and inspect desks (service queues) without leaving the chat. Use list_desks to discover available desks, get_desk to inspect full configuration, list_desk_priorities to discover priority IDs before creating tickets, and list_desk_services_catalogs to list service catalog containers linked to a desk.
list_desks
Listar mesas (desks) disponiveis no tenant para descoberta e exploracao. Retorna tabela com id, nome, display name, status ativo e tipo de atendimento. Use antes de criar tickets ou para explorar quais mesas existem. Para localizar uma mesa por nome (parcial/fuzzy), use get_desk com desk_name.
Parameters:
active(boolean, optional): Filter active (true) or inactive (false) desks. Default:true(active only)limit(number, optional): Results per page (default: 20, max: 200)offset(number, optional): Page number (default: 1)
Returns: Markdown table with id, name, display_name, active status and appointment_type.
Example:
{
"active": true,
"limit": 50
}get_desk
Retornar configuracoes completas de uma mesa (30+ campos) agrupadas em secoes: Identificacao, Atendimento, SLA, Comportamento de tickets e Campos obrigatorios no formulario. Campos vazios ou falsy sao omitidos automaticamente.
Accepts desk_id (direct) or desk_name (fuzzy, uses the same Smart Name Resolution mechanism). If both are provided, desk_id takes precedence.
Parameters:
desk_id(number, optional): Numeric desk ID. If provided, used directly without name resolutiondesk_name(string, optional): Partial, full or multi-word desk name (tokens in any order) — e.g."cansados"or"dev cansados"resolve to"Dev - Cansados";"dev experimentos"resolves to"DEV - Experimentos"(see Smart Name Resolution). Alternative to desk_id
Note: At least one of desk_id or desk_name is required.
Returns: Markdown with sections covering:
Identificacao: name, display name, description, active status, internal desk flag, receiving new tickets
Atendimento: appointment type, attendance type, permissions, cancelable tickets, feedback, e-mail settings, desk exchange
SLA: SLA active flag, SLA goal, can stop SLA, SLA time tracking
Comportamento de tickets: ticket review settings, reopening rules, time limits, billing behavior
Campos obrigatorios no formulario: required fields, service catalog requirements
Example:
{
"desk_id": 3
}Or using fuzzy name resolution:
{
"desk_name": "cansados"
}list_desk_priorities
Listar prioridades configuradas em uma mesa do TiFlux. Use para descobrir os IDs de prioridade antes de criar ou atualizar tickets (ex: "alta prioridade" → priority_id). O filtro priority_name e feito client-side com fuzzy match apos buscar os registros da API.
Accepts desk_id (direct) or desk_name (fuzzy). If both are provided, desk_id takes precedence.
Parameters:
Parameter | Type | Required | Default | Description |
| number | one of | — | Numeric desk ID. Used directly, no name lookup |
| string | one of | — | Partial or exact desk name (fuzzy resolved). Alternative to |
| string | no | — | Optional fuzzy filter on priority name (client-side). E.g. |
| number | no | 20 | Results per page (max: 200) |
| number | no | 1 | Page number |
Returns: Markdown table with id, name, order, start_time, end_time.
Example — list all priorities by desk_id:
{
"desk_id": 3
}Example — filter by priority name using desk_name:
{
"desk_name": "suporte",
"priority_name": "alta"
}Example response:
| ID | Nome | Ordem | Inicio | Fim |
|---|---|---|---|---|
| 17 | High | 1 | 04:00 | 24:00 |
| 18 | Low | 2 | 10:00 | 48:00 |list_desk_services_catalogs
Listar catalogos de servicos vinculados a uma mesa do TiFlux. Catalogos sao os containers pai — diferentes dos itens de catalogo (use search_catalog_item para itens selecionaveis em tickets). O filtro catalog_name e feito client-side com fuzzy match.
Accepts desk_id (direct) or desk_name (fuzzy). If both are provided, desk_id takes precedence.
Parameters:
Parameter | Type | Required | Default | Description |
| number | one of | — | Numeric desk ID. Used directly, no name lookup |
| string | one of | — | Partial or exact desk name (fuzzy resolved). Alternative to |
| string | no | — | Optional fuzzy filter on catalog name (client-side). E.g. |
| number | no | 20 | Results per page (max: 200) |
| number | no | 1 | Page number |
Returns: Markdown table with id, name.
Example — list all catalogs:
{
"desk_name": "suporte"
}Example — filter by catalog name:
{
"desk_id": 3,
"catalog_name": "infra"
}Example response:
| ID | Nome |
|---|---|
| 6 | Catalogo 1 |
| 7 | Catalogo 2 |Department Tools
Discover department IDs by name — required for filtering chats by department. The two-step flow: list_departments(name:"financeiro") → get id → list_my_chats(department_id:...).
list_departments
Listar departamentos da organização com filtro opcional de busca parcial por nome. Use para descobrir o department_id a partir de um nome antes de filtrar chats. Retorna tabela ID | Nome.
Permissions: Admin API keys return all active departments. Technical (non-admin) keys return only departments linked to their attendant group.
Parameters:
name(string, optional): Partial name search, case-insensitive (e.g."financeiro","suporte"). Max 255 characters.limit(number, optional): Results per page (default: 20, max: 200)offset(number, optional): Page number (default: 1)
Returns: Markdown table with ID and Nome columns.
Example:
{
"name": "financeiro"
}Example response:
| ID | Nome |
|---|---|
| 3 | Financeiro |Use the id as department_id in list_inbox_chats, list_my_chats, list_in_attendance_chats, or list_archived_chats.
Knowledge Base Tools
Search and manage the organization's knowledge base articles. Without the "Gerenciar base de conhecimento" permission, only public articles and those from the user's attendant group are returned.
list_knowledges
List knowledge base articles with optional search and folder filters. Returns a Markdown table with ID, title, visibility, folders, tags, and last updated date.
Permissions: Without "Gerenciar base de conhecimento" — only public articles and those from the user's attendant group. With the permission — all articles.
Note: The description field returned by the API is truncated at 300 characters (preview only — partial content).
Parameters:
search(string, optional): Search by title, tags, or beginning of the description (case-insensitive).knowledge_folder_ids(array of numbers, optional): Filter by folder IDs. Example:[1, 2].limit(number, optional): Results per page (default: 20, max: 200).offset(number, optional): Page number (default: 1).
Returns: Markdown table with columns ID | Titulo | Privado | Pastas | Tags | Atualizado.
Example:
{
"search": "VPN",
"knowledge_folder_ids": [1],
"limit": 10
}Example response:
| ID | Titulo | Privado | Pastas | Tags | Atualizado |
|---|---|---|---|---|---|
| 101 | Como configurar VPN | Sim | 1, 2 | VPN, acesso remoto | 01/06/2026 |A descricao e exibida truncada em ate 300 caracteres pela API (preview parcial).
create_knowledge
Create a new knowledge base article. Requires the "Gerenciar conhecimento" permission.
Required fields:
title(string): Article title.description(string): Article body in HTML (e.g."<p>Content here.</p>").knowledge_folder_ids(array of numbers, min 1): IDs of the folders where the article will be published. Example:[12, 34].
Optional fields:
tags(array of strings): Tags for the article. Tags must not contain commas. Example:["VPN", "remote access"].private(boolean): Whether the article is private (default:true). Iffalse, the article is public.client_ids(array of numbers): Client IDs with access — only relevant whenprivate: true. Example:[100, 200].technical_group_ids(array of numbers): Technical group IDs with access — only relevant whenprivate: true. Example:[5, 10].services_catalogs_item_ids(array of numbers): Related service catalog item IDs. Example:[301, 302].
Returns: Confirmation with the created article's ID, title, visibility, folders, tags, and related IDs.
Example:
{
"title": "How to configure VPN",
"description": "<p>Step-by-step VPN setup guide for remote access.</p>",
"knowledge_folder_ids": [1, 2],
"tags": ["VPN", "remote access"],
"private": true,
"technical_group_ids": [5]
}Example response:
Conhecimento criado com sucesso!
**ID:** 201
**Titulo:** How to configure VPN
**Visibilidade:** Privado
**Pastas:** 1, 2
**Tags:** VPN, remote access
**Grupos tecnicos vinculados:** 5list_contracts
List the organization's contracts (read-only). Returns a Markdown table with ID, name, client, contract type, modality, status, expiration date, and total value for each contract.
Note: Only the GET /contracts endpoint exists in the API v2 (there is no GET /contracts/{id}), so this is the single contracts tool — the listing already returns the full contract object.
Permissions: The monetary fields (total_value, rider_tax, rider_value) are only shown to users with the "Visualizar valores dos tickets" permission. Without it, the API returns "--" for those fields (rendered as-is).
Parameters (all optional):
client_ids(string, CSV): Filter by clients, IDs separated by commas (e.g."982,2,1024").contract_type_ids(string, CSV): Filter by contract types, IDs separated by commas (e.g."3,27").status(string, CSV): Filter by status —actives,readjust,expired, separated by commas (e.g."actives,expired"). By default the API lists onlyactives.limit(number, optional): Results per page (default: 20, max: 200).offset(number, optional): Page number (default: 1).
Returns: Markdown table with columns ID | Nome | Cliente | Tipo | Modalidade | Situação | Expiração | Valor total. Modality and status are translated to PT-BR (unknown enum values fall back to the raw API value). Monetary values are formatted as R$ x,yy.
Example:
{
"client_ids": "44",
"status": "actives,expired",
"limit": 10
}Example response:
| ID | Nome | Cliente | Tipo | Modalidade | Situação | Expiração | Valor total |
|---|---|---|---|---|---|---|---|
| 101 | Contrato Mensal Ouro | Acme Corp | Suporte Mensal | Horas | Ativo | 2027-01-31 | R$ 1500,00 |list_entities
List custom field groups (entities) available in the TiFlux organization. Use to discover which custom field groups exist, which applications they apply to (ticket, client, etc.), and their IDs — required for list_entity_fields.
Parameters:
Parameter | Type | Required | Default | Description |
| boolean | no | — | Filter active ( |
| string | no | — | Filter by application: |
| string | no | — | Filter by entity name (partial match) |
| number | no | 20 | Results per page (max: 200) |
| number | no | 1 | Page number |
Returns: Markdown table with id, name, applied_in, active.
Example:
{
"applied_in": "ticket"
}Example response:
| ID | Nome | Applied In | Ativa |
|---|---|---|---|
| 10 | Classificação do Chamado | ticket | Sim |
| 11 | Dados do Atendimento | ticket | Sim |list_entity_fields
List subfields (entity_fields) of a custom field group in TiFlux. Returns name, type, required status, and indicates which fields have selectable options (single_select/checkbox) — use list_entity_field_options in those cases.
Parameters:
Parameter | Type | Required | Default | Description |
| number | yes | — | ID of the custom field group (entity). Obtain via |
| string | no | — | Filter by type: |
| boolean | no | — | Filter required ( |
| string | no | — | Filter by field name |
| number | no | 20 | Results per page (max: 200) |
| number | no | 1 | Page number |
Returns: Markdown table with id, name, field_type, required, and options hint for single_select/checkbox fields.
Example:
{
"entity_id": 10,
"field_type": "checkbox"
}Example response:
| ID | Nome | Tipo | Obrigatorio | Opcoes |
|---|---|---|---|---|
| 81 | Categoria do Impacto | checkbox | Nao | Sim (use list_entity_field_options) |list_entity_field_options
List options of a custom subfield (entity_field) of type single_select or checkbox. Use to get option IDs (entity_field_option_id) required when filling multiple-choice fields via update_ticket_entities.
Parameters:
Parameter | Type | Required | Default | Description |
| number | yes | — | ID of the subfield (entity_field). Obtain via |
| string | no | — | Filter options by value/text (partial match) |
| number | no | 20 | Results per page (max: 200) |
| number | no | 1 | Page number |
Returns: Markdown table with option id, value, null_option.
Example:
{
"entity_field_id": 81
}Example response:
| ID | Valor | Opcao nula |
|---|---|---|
| 11 | Hardware | Nao |
| 12 | Software | Nao |
| 13 | Rede | Nao |
| 14 | (nenhuma) | Sim |Search Heuristics — Mesa-First
When a user references a name without explicitly qualifying the entity type, the following priority applies:
User input | Filter to use | Reason |
"tickets do tuitui" (unqualified name) |
| Unqualified term = desk/team in most cases |
"tickets da mesa X" / "equipe Y" |
| "mesa" / "equipe" = desk |
"tickets do cliente Z" / "empresa ACME" |
| "cliente" / "empresa" = company |
"tickets do João" (person name) |
| Person = requestor |
"tickets atribuídos ao João" |
| "atribuído a" = responsible — |
"tickets aberto por joao@empresa.com" |
| Email = requestor |
Ambiguous / uncertain | Ask the user | Visible failure > filtering by wrong entity |
(create_ticket) "solicitante Fulano" |
| Avoids ghost requestor duplicate |
This heuristic is embedded in the description fields of list_tickets, create_ticket, and update_ticket schemas. The LLM reads these on every tool call decision.
Smart Name Resolution
When using desk_name in any tool, the MCP server performs a two-step lookup:
Direct search:
GET /desks?active=true&name={desk_name}— fast, uses the API's built-in filter.Fuzzy fallback (automatic): If the direct search returns no results, the server fetches all active desks (paginated, up to 200 per page) and applies client-side fuzzy matching with tokenization and normalization (trim, lowercase, accent-insensitive). Works correctly regardless of how many desks the organization has. This handles common patterns like:
Partial name:
"cansados"resolves to"Dev - Cansados"Accent-insensitive:
"comunicacao"resolves to"Comunicação"Token match:
"premium"resolves to"Dev - Premium"Multi-word (tokens in any order, separator-insensitive):
"dev experimentos"resolves to"DEV - Experimentos"
The fallback returns only the highest-scoring group of matches — so single-match terms resolve immediately, while ambiguous terms (multiple desks at equal score) return a disambiguation list.
Behavior:
If exactly 1 desk matches → auto-resolved, request proceeds normally.
If multiple desks match at the same score → returns a list so you can be more specific or use
desk_iddirectly.If no match → returns a clear error message.
This applies to: create_ticket, update_ticket, list_tickets, search_stage, search_catalog_item, get_desk, list_desk_priorities, and list_desk_services_catalogs.
API Endpoints Used
The MCP server integrates with the following TiFlux API v2 endpoints:
GET /tickets/{id}- Retrieve ticket detailsPOST /tickets- Create new tickets (supports multipart with file attachments viafiles_base64;requestor_idbody field links existing requestor)PUT /tickets/{id}- Update existing ticketsPUT /tickets/{id}/entities- Update ticket custom fieldsPUT /tickets/{ticket_number}/cancel- Cancel specific ticketPUT /tickets/{ticket_number}/close- Close specific ticketPUT /tickets/{ticket_number}/reopen- Reopen closed or canceled ticket (supports optionaldisapproval_reason)POST /tickets/{ticket_number}/answers- Create ticket answer (client communication)GET /tickets/{ticket_number}/answers- List ticket answers (client communications), paginatedGET /tickets/{ticket_number}/answers/{id}- Get specific ticket answer with attached filesDELETE /tickets/{ticket_number}/answers/{id}- Remove a ticket answer (delete_ticket_answer)DELETE /ticket_answers/{ticket_answer_id}/files/{id}- Remove a file from a ticket answer (delete_ticket_answer_file)GET /tickets/{ticket_number}/histories- Get ticket event history (timeline) with optional filtersGET /tickets- List tickets with filters (supportsrequestor_ids,requestor_email,services_catalogs_item_ids,priority_idsquery params; response includesservices_catalogandpriorityper ticket)GET /clients- Search/list clients (search_client,list_clients, andclient_nameauto-resolve inlist_ticketsandcreate_ticket)GET /clients/{id}- Get client details (get_client)POST /clients- Create a new client (create_client)PUT /clients/{id}- Update client fields (update_client)PUT /clients/{id}/entities- Update client custom fields (update_client_entities)GET /clients/{id}/desks- List desks associated with a client (get_client_desks)GET /clients/{id}/technical-groups- List technical groups associated with a client (get_client_technical_groups)POST /clients/{id}/users- Create a portal user for a client (create_client_user)POST /clients/{id}/email_tickets_permissions- Add authorized email/domain for a client (add_client_email_permission)GET /requestors- Search requestors with server-side filtering (search_requestor, andrequestor_nameauto-resolve increate_ticket). Admin/global permission required — returns 403 for non-admin attendants, handled by the client-scoped fallback below.GET /clients/{client_id}/requestors- Client-scoped requestor listing/search. Powerslist_requestors; automatic fallback forsearch_requestorandcreate_ticket(name and email resolution) whenGET /requestorsreturns 403 (attendant with permission on that client).GET /clients/{client_id}/requestors/{id}- Get a single requestor of a client (get_requestor;include_entity_fieldsfor custom fields).POST /clients/{client_id}/requestors- Create a requestor in a client (create_requestor).PUT /clients/{client_id}/requestors/{id}- Update a requestor (update_requestor, partial).PUT /clients/{client_id}/requestors/{id}/entities- Update a requestor's custom fields (update_requestor_entities).DELETE /clients/{client_id}/requestors/{id}- Delete a requestor (mapped; not yet implemented as an MCP tool — out of current scope).GET /users- Search users (used bysearch_user,responsible_nameauto-resolve, and as level 3 of thesearch_requestorfallback chain — the matched user's email becomesrequestor_email). Returns 403 for non-admin users — handled automatically by the fallback below.GET /users/me- Current authenticated user (used as the final level of thesearch_requestorchain — suggests opening the ticket as yourself viarequestor_email).GET /technical-users- Search technical attendants with server-side filtering by name, email, desk_id, client_id (search_technical_user). Does not require user management permission — works for admin and non-admin. Primary path forresponsible_nameauto-resolve increate_ticket,update_ticket,list_tickets. Note: absent from the public swagger.json as of 2026-06-18 but live in production.GET /technical-groups- List attendant groups (used bysearch_usernon-admin fallback and as fallback forresponsible_nameresolution when/technical-usersreturns 404/403)GET /technical-groups/{id}/users- List users in an attendant group (non-admin fallback forsearch_user— deduplicated, fuzzy-matched)GET /departments- List organization departments with optional name search (list_departments). Admin: all active; non-admin: only linked to attendant groupGET /desks- Search/list desks (used by Smart Name Resolution andlist_desks)GET /desks/{id}- Get full desk configuration (get_desk)GET /desks/{id}/priorities- Get desk priorities (list_desk_priorities,update_ticketpriority_name resolution,list_ticketspriority_name resolution)GET /desks/{id}/services-catalogs- Get desk service catalogs (list_desk_services_catalogs)GET /desks/{id}/stages- Get desk stagesGET /desks/{id}/services-catalogs-items- Get service catalog items (supports?namefor server-side search by catalog/area/item name; used bysearch_catalog_itemandlist_ticketscatalog_queryresolver)POST /tickets/{ticket_number}/internal_communications- Create internal communicationGET /tickets/{ticket_number}/internal_communications- List internal communicationsGET /tickets/{ticket_number}/internal_communications/{id}- Get specific internal communicationPUT /tickets/{ticket_number}/internal_communications/{id}- Update internal communication text (update_internal_communication)DELETE /tickets/{ticket_number}/internal_communications/{id}- Remove an internal communication (delete_internal_communication)GET /tickets/{ticket_number}/files- Get ticket attached filesPOST /tickets/{ticket_number}/files- Upload files to an existing ticket (upload_ticket_files)DELETE /tickets/{ticket_number}/files/{id}- Remove a file attached to a ticket (delete_ticket_file)GET /tickets/{ticket_number}/stages-slas- Get ticket stages history with SLA outcomesPOST /tickets/{ticket_number}/appointments- Create a ticket appointment (time tracking)GET /tickets/{ticket_number}/appointments- List ticket appointments with filtersGET /chats/{id}- Retrieve chat detailsGET /chats/inbox- List inbox chatsGET /chats/mine- List chats assigned to the authenticated userGET /chats/in_attendance- List chats currently in attendanceGET /chats/archived- List archived (finished or canceled) chatsPUT /chats/{id}- Update a chat (transfer attendant/department, link ticket)POST /chats/send_message- Send a WhatsApp message (free text or HSM template), creating the chatPUT /chats/{id}/archive- Finish (archive) a chatGET /entities- List custom field groups (list_entities)GET /entities/{entity_id}/fields- List custom subfields of an entity (list_entity_fields)GET /entity_fields/{entity_field_id}/options- List options of a single_select/checkbox field (list_entity_field_options)GET /knowledges- List knowledge base articles with optional search/folder filter (list_knowledges). Without "Gerenciar base de conhecimento" permission: public + attendant group only; with permission: allPOST /knowledges- Create a new knowledge base article (create_knowledge). Requires "Gerenciar conhecimento" permissionGET /contracts- List the organization's contracts (list_contracts), read-only. Optional filters:client_ids,contract_type_ids,status(CSV). Monetary fields require "Visualizar valores dos tickets" permission (otherwise"--")
Telemetry
Every request sent to the TiFlux API v2 includes a User-Agent header with basic technical metadata:
TiFlux-MCP-sdk/2.3.0 # local / npx mode
TiFlux-MCP-server/2.3.0 (node/v20.11.0) # Lambda / hosted modeWhat is collected: mode (sdk or server) and package version. The Node.js version is only sent in server mode (TiFlux-hosted infrastructure) — in local sdk mode it is intentionally omitted, so no detail about your local environment is collected.
What is NOT collected: tool names, arguments, responses, user data, or any personally identifiable information.
This telemetry is always enabled and requires no configuration. It is used exclusively to understand which package versions are in use. No separate telemetry endpoint is used — the data is carried as a standard HTTP header on every API v2 request.
Requirements
Node.js >= 16.0.0
Valid TiFlux API credentials
License
MIT
Support
For support, please contact the TiFlux development team or create an issue on GitHub.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tiflux/tiflux-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server