LiveAgent MCP by usefulapi
v1.2.1Read tickets, SLA state and contacts, and create or update tickets in LiveAgent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
liveagent_get_api_privileges Get API key privileges
Show which permissions the connected API key has. Use it first to see which tools the key can call. GET /api/privileges.
liveagent_list_tickets List tickets
List tickets with status, department, agent, subject and dates. Use filters for status, department or dates, because one query returns at most 10 000 records. GET /tickets.
| Parameter | Type | Description |
|---|---|---|
filters | string | Filter as a JSON object, e.g. {"status":"N"}, or a JSON array of [column, operator, value] triples. |
from | integer | Result set start offset. Takes precedence over page. |
page | integer | Page number, used with perPage. |
perPage | integer | Results per page. |
sortDir | string | Sort direction. |
sortField | string | Field to sort by, as the vendor reference names it. |
to | integer | Result set end offset. Used with from. |
liveagent_get_ticket Get a ticket
Get one ticket with its status, department, agent, tags and custom fields. GET /tickets/{ticketId}.
| Parameter | Type | Description |
|---|---|---|
ticketId * | string | The ticket id (from liveagent_list_tickets). |
liveagent_get_ticket_messages Get ticket messages
Get the message groups (conversation messages) of one ticket. GET /tickets/{ticketId}/messages.
| Parameter | Type | Description |
|---|---|---|
ticketId * | string | The ticket id (from liveagent_list_tickets). |
filters | string | Filter as a JSON object, e.g. {"status":"N"}, or a JSON array of [column, operator, value] triples. |
from | integer | Result set start offset. Takes precedence over page. |
includeQuotedMessages | boolean | Include quoted text from earlier messages. |
page | integer | Page number, used with perPage. |
perPage | integer | Results per page. |
sortDir | string | Sort direction. |
sortField | string | Field to sort by, as the vendor reference names it. |
to | integer | Result set end offset. Used with from. |
liveagent_get_ticket_history Get ticket history
Get the change history (status, agent and department changes) of one ticket. GET /tickets/{ticketId}/history.
| Parameter | Type | Description |
|---|---|---|
ticketId * | string | The ticket id (from liveagent_list_tickets). |
liveagent_get_ticket_sla Get ticket SLA
Get the SLA (service level) state of one ticket: due times and breaches. GET /tickets/{ticketId}/sla.
| Parameter | Type | Description |
|---|---|---|
ticketId * | string | The ticket id (from liveagent_list_tickets). |
liveagent_list_contacts List contacts
List customer contacts (requesters) with their name, email and company. GET /contacts.
| Parameter | Type | Description |
|---|---|---|
filters | string | Filter as a JSON object, e.g. {"status":"N"}, or a JSON array of [column, operator, value] triples. |
from | integer | Result set start offset. Takes precedence over page. |
page | integer | Page number, used with perPage. |
perPage | integer | Results per page. |
sortDir | string | Sort direction. |
sortField | string | Field to sort by, as the vendor reference names it. |
to | integer | Result set end offset. Used with from. |
liveagent_get_contact Get a contact
Get one customer contact with its details and custom fields. GET /contacts/{contactId}.
| Parameter | Type | Description |
|---|---|---|
contactId * | string | The contact id (from liveagent_list_contacts). |
liveagent_list_agents List agents
List support agents (staff users) with their names, roles and status. GET /agents.
| Parameter | Type | Description |
|---|---|---|
filters | string | Filter as a JSON object, e.g. {"status":"N"}, or a JSON array of [column, operator, value] triples. |
from | integer | Result set start offset. Takes precedence over page. |
page | integer | Page number, used with perPage. |
perPage | integer | Results per page. |
sortDir | string | Sort direction. |
sortField | string | Field to sort by, as the vendor reference names it. |
to | integer | Result set end offset. Used with from. |
liveagent_get_agent Get an agent
Get one agent with their departments, groups and settings. GET /agents/{userId}.
| Parameter | Type | Description |
|---|---|---|
userId * | string | The agent user id (from liveagent_list_agents). |
liveagent_list_departments List departments
List departments (queues that tickets are routed to). GET /departments.
| Parameter | Type | Description |
|---|---|---|
filters | string | Filter as a JSON object, e.g. {"status":"N"}, or a JSON array of [column, operator, value] triples. |
from | integer | Result set start offset. Takes precedence over page. |
page | integer | Page number, used with perPage. |
perPage | integer | Results per page. |
sortDir | string | Sort direction. |
sortField | string | Field to sort by, as the vendor reference names it. |
to | integer | Result set end offset. Used with from. |
liveagent_list_groups List agent groups
List agent groups (teams of agents used for routing and permissions). GET /groups.
liveagent_list_companies List companies
List customer companies (organizations that contacts belong to). GET /companies.
| Parameter | Type | Description |
|---|---|---|
filters | string | Filter as a JSON object, e.g. {"status":"N"}, or a JSON array of [column, operator, value] triples. |
from | integer | Result set start offset. Takes precedence over page. |
page | integer | Page number, used with perPage. |
perPage | integer | Results per page. |
sortDir | string | Sort direction. |
sortField | string | Field to sort by, as the vendor reference names it. |
to | integer | Result set end offset. Used with from. |
liveagent_list_tags List tags
List ticket tags that agents use to label and filter tickets. GET /tags.
liveagent_list_predefined_answers List predefined answers
List predefined answers (saved reply templates) that agents insert into tickets. GET /predefined_answers.
| Parameter | Type | Description |
|---|---|---|
filters | string | Filter as a JSON object, e.g. {"status":"N"}, or a JSON array of [column, operator, value] triples. |
from | integer | Result set start offset. Takes precedence over page. |
page | integer | Page number, used with perPage. |
perPage | integer | Results per page. |
sortDir | string | Sort direction. |
sortField | string | Field to sort by, as the vendor reference names it. |
to | integer | Result set end offset. Used with from. |
liveagent_create_ticket Create a ticket
Create a ticket for a customer. By default it sends no email to the customer (doNotSendMail is Y); set it to N only when the user asks to notify the customer. POST /tickets.
| Parameter | Type | Description |
|---|---|---|
departmentid * | string | Department id the ticket goes to (from liveagent_list_departments). |
message * | string | First message text of the ticket. |
recipient * | string | Customer email address. |
subject * | string | Ticket subject. |
useridentifier * | string | Sender identifier that the vendor's create-ticket body requires (see the vendor reference). |
doNotSendMail | string | Y = do not email the customer (default). N = email the customer. |
recipientName | string | Customer name. |
status | string | Initial status code. |
tags | array | Tags to add. |
liveagent_update_ticket Update a ticket
Change a ticket's status, department, agent, subject or tags. Only the fields you pass change. PUT /tickets/{ticketId}.
| Parameter | Type | Description |
|---|---|---|
ticketId * | string | The ticket id (from liveagent_list_tickets). |
agentid | string | New agent user id. |
departmentid | string | New department id. |
status | string | Ticket status code (I, N, T, P, R or X). |
subject | string | New subject. |
tags | array | Replace the tag list with these tags. |