Jitbit MCP by usefulapi

v1.2.1
io.usefulapi/jitbit-helpdesk Checked 4 days ago Published 1 day ago

Read tickets and knowledge base; create tickets, add replies and close them in Jitbit.

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

jitbit_list_tickets List tickets

List tickets the user can see, newest first. Filter by mode (all, unanswered, unclosed, handledbyme), status, category, creator, company, assignee, tag and dates. Returns summaries, not bodies: use jitbit_get_ticket for one ticket. Jitbit API: GET /api/Tickets.

ParameterTypeDescription
categoryIdarrayFilter by category ids.
countintegerHow many tickets to return (default 10, max 300).
dateFromstringCreated on or after this date.
dateTostringCreated on or before this date.
dueInDaysintegerDue in this many days.
fromCompanyIdintegerFilter by company id.
fromUserIdintegerFilter by the ticket creator's user id.
handledByUserIdintegerFilter by the assignee's user id.
modestringWhich tickets: all (default), unanswered, unclosed, or handledbyme.
offsetintegerSkip this many tickets, for paging.
statusIdarrayFilter by status ids (New 1, In process 2, Closed 3; custom status ids are in the admin area).
subscribedOnlybooleanOnly tickets the user subscribes to.
tagNamestringFilter by one tag name.
updatedByTypestringLast updated by a technician (tech) or a customer (cust).
updatedFromstringLast updated on or after this date.
updatedTostringLast updated on or before this date.

jitbit_get_ticket Get ticket

Get one ticket with its subject, body, status, category, submitter, assignee, due date, tags and time spent. Jitbit API: GET /api/ticket?id=.

ParameterTypeDescription
ticket_id *integerTicket id (IssueID), for example 382.

jitbit_list_ticket_comments List ticket comments

List the comments (replies and internal notes) of a ticket in order, with author, date, and whether each is for technicians only. Jitbit API: GET /api/comments?id=.

ParameterTypeDescription
ticket_id *integerTicket id (IssueID), for example 382.

jitbit_list_ticket_attachments List ticket attachments

List the file attachments of a ticket with file name, size, file id and download URL. The file content is not returned. Jitbit API: GET /api/Attachments?id=.

ParameterTypeDescription
ticket_id *integerTicket id (IssueID), for example 382.

jitbit_get_ticket_custom_fields Get ticket custom fields

Get the custom fields of a ticket with their current values. Jitbit API: GET /api/TicketCustomFields?id=.

ParameterTypeDescription
ticket_id *integerTicket id (IssueID), for example 382.
return_unsetbooleanAlso return fields with no value (default false).

jitbit_get_ticket_time_log Get ticket time log

List each logged time entry of a ticket with user, status, seconds and date. Needs technician rights. Jitbit API: GET /api/TimeSpentLog?ticketId=.

ParameterTypeDescription
ticket_id *integerTicket id (IssueID), for example 382.

jitbit_search_tickets Search tickets

Search tickets by text, with optional creator, assignee, category, status and creation-date filters. Jitbit API: GET /api/Search?query=.

ParameterTypeDescription
query *stringText to search for.
assignedToUserIdintegerFilter by the assignee's user id.
categoryIdarrayFilter by category ids.
dateFromstringCreated on or after this date.
dateTostringCreated on or before this date.
fromUserIdintegerFilter by the ticket creator's user id.
statusIdarrayFilter by status ids.

jitbit_get_ticket_stats Get ticket stats

Get ticket counts: total, closed, in process, new, unanswered, unassigned, unclosed, handled by the user. With for_current_user true, return the stats available to the current user. Jitbit API: GET /api/Stats.

ParameterTypeDescription
for_current_userbooleanReturn the stats available to the current user instead of overall stats (default false).

jitbit_list_categories List categories

List the ticket categories the user can see, with their section. Use the category ids in other tools. Jitbit API: GET /api/categories.

jitbit_list_priorities List priorities

List the ticket priorities, standard and custom. Jitbit API: GET /api/Priorities.

jitbit_list_comment_templates List canned responses

List the canned responses (comment templates), optionally for one category. Use them as a base for a reply. Jitbit API: GET /api/CommentTemplates.

ParameterTypeDescription
category_idintegerOnly templates for this category id (0 or omitted = all).

jitbit_get_user Get user

Get one user by id: name, email, company, role flags (admin, technician, manager) and status. Jitbit API: GET /api/User?userId=.

ParameterTypeDescription
user_id *integerUser id.

jitbit_find_user_by_email Find user by email

Find a user by email address and return the full user record. Needs helpdesk-administrator or technician rights. Jitbit API: GET /api/UserByEmail?email=.

ParameterTypeDescription
email *stringThe user's email address.

jitbit_find_user_by_username Find user by username

Find a user by username and return the full user record. Needs administrator or technician rights. Jitbit API: GET /api/UserByUsername?username=.

ParameterTypeDescription
username *stringThe helpdesk username.

jitbit_list_users List users

List users, with paging and filters for role, company and department. Needs administrator rights. Jitbit API: GET /api/Users.

ParameterTypeDescription
company_idintegerOnly users of this company.
countintegerUsers per page (default 500).
department_idintegerOnly users of this department.
list_modestringWhich users to list (default all).
pageintegerPage number (default 1).

jitbit_list_kb_articles List knowledge base articles

List knowledge base articles with titles, links, categories and tags. The article bodies are not included: use jitbit_get_kb_article. Jitbit API: GET /api/Articles.

ParameterTypeDescription
category_idintegerOnly articles in this category id.

jitbit_get_kb_article Get knowledge base article

Get one knowledge base article with its full body. Jitbit API: GET /api/Article/{id}.

ParameterTypeDescription
article_id *integerArticle id (ArticleId).

jitbit_create_ticket Create ticket

Create a new ticket in a category. It is recorded as made through the API. It sends the customer a confirmation email unless suppress_confirmation is true. Use user_id only for a technician creating a ticket for someone else. Jitbit API: POST /api/ticket.

ParameterTypeDescription
body *stringTicket body text.
category_id *integerCategory id (see jitbit_list_categories).
priority *integerPriority: -1 Low, 0 Normal, 1 High, 2 Critical.
subject *stringTicket subject.
assigned_to_user_idintegerAssign to this technician (technician rights).
suppress_confirmationbooleanDo not send the customer a confirmation email.
tagsstringComma-separated tags, for example tag1,tag2.
user_idintegerCreate on behalf of this user (technician rights).

jitbit_add_comment Add comment

Post a reply or an internal note on a ticket. A reply (for_techs_only false) notifies the ticket's subscribers, which can include the customer. Check the ticket first. Jitbit API: POST /api/comment.

ParameterTypeDescription
body *stringComment text.
ticket_id *integerTicket id (IssueID), for example 382.
for_techs_onlybooleantrue = internal note visible to technicians only (default false). The API reference does not say whether it sends email.

jitbit_update_ticket Update ticket

Change a ticket's category, priority, status, assignee or due date. Only the given fields change. It does not change the subject, body or tags. Regular users can change only their own tickets; technicians and administrators can change any ticket they can see. Setting status_id 3 closes the ticket and may email the customer; jitbit_close_ticket with suppress_notification avoids that. Set assigned_user_id to 0 to remove the assignee, and due_date to an empty string to remove the due date. Jitbit API: POST /api/UpdateTicket.

ParameterTypeDescription
ticket_id *integerTicket id (IssueID), for example 382.
assigned_user_idintegerNew assignee user id; 0 removes the assignee.
category_idintegerNew category id.
due_dateNew due date, or an empty string to remove it.
priorityintegerPriority: -1 Low, 0 Normal, 1 High, 2 Critical.
status_idintegerNew status id (New is 1, In process is 2, Closed is 3; custom ids differ).

jitbit_close_ticket Close ticket

Close a ticket. With suppress_notification true, no email notifications are sent (to the customer or to subscribers). Otherwise the result matches status 3 in jitbit_update_ticket. Jitbit API: POST /api/Close.

ParameterTypeDescription
ticket_id *integerTicket id (IssueID), for example 382.
suppress_notificationbooleanClose without any email notifications (default false).