Gorgias MCP Server for Cloudflare Workers
72 tools available in the Gorgias MCP server. Each tool can be called by AI assistants to perform specific actions.
gorgias_get_ruleGet a single rule by ID.
Args:
Returns: The rule record with all available fields including code/codeAst.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Rule ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_list_viewsList all ticket views from Gorgias.
Views are saved ticket filters that help organize and categorize tickets.
Returns: JSON format: Array of views Markdown format: Formatted table of views
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_viewGet a single view by ID.
Args:
Returns: The view record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "View ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_get_custom_fieldGet a single custom field by ID.
Args:
Returns: The custom field record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Custom field ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_list_custom_fieldsList all custom fields from Gorgias.
Custom fields allow you to store additional structured data on tickets and customers.
Args:
Returns: JSON format: Array of custom fields Markdown format: Formatted table of custom fields
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"objectType": {
"enum": [
"ticket",
"customer"
],
"type": "string",
"description": "Filter by object type"
}
}
}gorgias_list_customersList customers from Gorgias with pagination and filtering.
Returns a paginated list of customers. Use the cursor from the response to fetch the next page.
Args:
Returns: JSON format: { items: Customer[], nextCursor } Markdown format: Formatted table of customers
{
"type": "object",
"properties": {
"email": {
"type": "string",
"description": "Filter by email address"
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of customers to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_accountGet account information for the Gorgias helpdesk.
Returns: The account record including domain, status, and settings.
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_statisticsGet statistics for the Gorgias helpdesk.
Args:
Returns: Statistics data for the specified time range.
{
"type": "object",
"required": [
"statisticType",
"startDatetime",
"endDatetime"
],
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"timezone": {
"type": "string",
"description": "Timezone"
},
"endDatetime": {
"type": "string",
"description": "End datetime (ISO format)"
},
"startDatetime": {
"type": "string",
"description": "Start datetime (ISO format)"
},
"statisticType": {
"type": "string",
"description": "Type of statistics"
}
}
}gorgias_test_connectionTest the connection to the Gorgias API.
Returns: Connection status and account information.
{
"type": "object",
"properties": {}
}gorgias_create_custom_fieldCreate a new custom field in Gorgias.
Args:
Returns: The created custom field record.
{
"type": "object",
"required": [
"objectType",
"label"
],
"properties": {
"label": {
"type": "string",
"description": "Field label"
},
"priority": {
"type": "integer",
"description": "Display priority"
},
"required": {
"type": "boolean",
"description": "Whether field is required"
},
"objectType": {
"enum": [
"ticket",
"customer"
],
"type": "string",
"description": "Object type"
},
"description": {
"type": "string",
"description": "Field description"
},
"definitionType": {
"type": "string",
"description": "Field type (text, number, dropdown, etc.)"
}
}
}gorgias_update_custom_fieldUpdate an existing custom field.
Args:
Returns: The updated custom field record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Custom field ID to update"
},
"label": {
"type": "string",
"description": "Field label"
},
"priority": {
"type": "integer",
"description": "Display priority"
},
"required": {
"type": "boolean",
"description": "Whether field is required"
},
"description": {
"type": "string",
"description": "Field description"
}
}
}gorgias_get_customerGet a single customer by ID.
Args:
Returns: The customer record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Customer ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_customerCreate a new customer in Gorgias.
Args:
Returns: The created customer record.
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Full name"
},
"note": {
"type": "string",
"description": "Notes"
},
"email": {
"type": "string",
"description": "Email address"
},
"language": {
"type": "string",
"description": "Language code"
},
"lastname": {
"type": "string",
"description": "Last name"
},
"timezone": {
"type": "string",
"description": "Timezone"
},
"firstname": {
"type": "string",
"description": "First name"
},
"externalId": {
"type": "string",
"description": "External ID"
}
}
}gorgias_update_customerUpdate an existing customer.
Args:
Returns: The updated customer record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Customer ID to update"
},
"name": {
"type": "string",
"description": "Full name"
},
"note": {
"type": "string",
"description": "Notes"
},
"email": {
"type": "string",
"description": "Email address"
},
"language": {
"type": "string",
"description": "Language code"
},
"lastname": {
"type": "string",
"description": "Last name"
},
"timezone": {
"type": "string",
"description": "Timezone"
},
"firstname": {
"type": "string",
"description": "First name"
},
"externalId": {
"type": "string",
"description": "External ID"
}
}
}gorgias_delete_customerDelete a customer from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Customer ID to delete"
}
}
}gorgias_merge_customersMerge two customers into one.
Args:
Returns: The merged customer record.
{
"type": "object",
"required": [
"targetId",
"sourceId"
],
"properties": {
"sourceId": {
"type": "integer",
"description": "Source customer ID to merge"
},
"targetId": {
"type": "integer",
"description": "Target customer ID to keep"
}
}
}gorgias_list_eventsList events from Gorgias with pagination and filtering.
Events represent actions that occurred in Gorgias (e.g., ticket created, message sent).
Args:
Returns: JSON format: { items: Event[], nextCursor } Markdown format: Formatted table of events
{
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Filter by event type"
},
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of events to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"objectId": {
"type": "integer",
"description": "Filter by object ID"
},
"objectType": {
"type": "string",
"description": "Filter by object type"
}
}
}gorgias_get_eventGet a single event by ID.
Args:
Returns: The event record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Event ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_list_integrationsList all integrations from Gorgias.
Integrations connect Gorgias to external services like Shopify, Magento, BigCommerce, etc.
Returns: JSON format: Array of integrations Markdown format: Formatted table of integrations
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_integrationGet a single integration by ID.
Args:
Returns: The integration record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Integration ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_integrationCreate a new HTTP integration in Gorgias.
Args:
Returns: The created integration record.
{
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"type": "string",
"description": "Integration name"
},
"type": {
"type": "string",
"description": "Integration type"
},
"httpUrl": {
"type": "string",
"description": "HTTP endpoint URL"
},
"httpMethod": {
"type": "string",
"description": "HTTP method"
},
"httpHeadersJson": {
"type": "string",
"description": "HTTP headers as JSON object"
}
}
}gorgias_update_integrationUpdate an existing integration.
Args:
Returns: The updated integration record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Integration ID to update"
},
"name": {
"type": "string",
"description": "Integration name"
}
}
}gorgias_delete_integrationDelete an integration from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Integration ID to delete"
}
}
}gorgias_list_jobsList background jobs from Gorgias with pagination.
Jobs represent background tasks like bulk operations or imports.
Args:
Returns: JSON format: { items: Job[], nextCursor } Markdown format: Formatted table of jobs
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of jobs to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_jobGet a single job by ID.
Args:
Returns: The job record with all available fields including status and progress.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Job ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_jobCreate a new background job in Gorgias.
Args:
Returns: The created job record.
{
"type": "object",
"required": [
"type",
"paramsJson"
],
"properties": {
"type": {
"type": "string",
"description": "Job type"
},
"paramsJson": {
"type": "string",
"description": "Job parameters as JSON"
},
"scheduledDatetime": {
"type": "string",
"description": "When to run (ISO datetime)"
}
}
}gorgias_cancel_jobCancel a running job.
Args:
Returns: Confirmation of cancellation.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Job ID to cancel"
}
}
}gorgias_list_macrosList macros from Gorgias with pagination.
Macros are pre-defined responses and actions that agents can use to respond quickly to common customer inquiries.
Args:
Returns: JSON format: { items: Macro[], nextCursor } Markdown format: Formatted table of macros
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of macros to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_macroGet a single macro by ID.
Args:
Returns: The macro record with all available fields including actions.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Macro ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_macroCreate a new macro in Gorgias.
Args:
Returns: The created macro record.
{
"type": "object",
"required": [
"name",
"actionsJson"
],
"properties": {
"name": {
"type": "string",
"description": "Macro name"
},
"intent": {
"type": "string",
"description": "Intent/category"
},
"language": {
"type": "string",
"description": "Language code"
},
"actionsJson": {
"type": "string",
"description": "Macro actions as JSON array of {type, args} objects"
}
}
}gorgias_update_macroUpdate an existing macro.
Args:
Returns: The updated macro record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Macro ID to update"
},
"name": {
"type": "string",
"description": "Macro name"
},
"intent": {
"type": "string",
"description": "Intent/category"
},
"language": {
"type": "string",
"description": "Language code"
},
"actionsJson": {
"type": "string",
"description": "Macro actions as JSON array"
}
}
}gorgias_delete_macroDelete a macro from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Macro ID to delete"
}
}
}gorgias_list_messagesList messages from Gorgias with pagination and filtering.
Returns a paginated list of messages. Use the cursor from the response to fetch the next page.
Args:
Returns: JSON format: { items: Message[], nextCursor } Markdown format: Formatted table of messages
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of messages to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"ticketId": {
"type": "integer",
"description": "Filter by ticket ID"
}
}
}gorgias_get_messageGet a single message by ID.
Args:
Returns: The message record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Message ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_messageCreate a new message on a ticket.
Args:
Returns: The created message record.
{
"type": "object",
"required": [
"ticketId",
"channel",
"bodyText"
],
"properties": {
"via": {
"type": "string",
"default": "helpdesk",
"description": "How the message was received"
},
"channel": {
"type": "string",
"description": "Channel for the message"
},
"subject": {
"type": "string",
"description": "Message subject"
},
"bodyHtml": {
"type": "string",
"description": "Message body (HTML)"
},
"bodyText": {
"type": "string",
"description": "Message body (plain text)"
},
"senderId": {
"type": "integer",
"description": "Sender user ID"
},
"ticketId": {
"type": "integer",
"description": "Ticket ID"
},
"fromAgent": {
"type": "boolean",
"default": true,
"description": "Whether this is from an agent"
},
"receiverId": {
"type": "integer",
"description": "Receiver ID"
}
}
}gorgias_delete_messageDelete a message from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Message ID to delete"
}
}
}gorgias_list_rulesList automation rules from Gorgias with pagination.
Rules are automation workflows that trigger actions based on events (e.g., auto-tagging, auto-assignment).
Args:
Returns: JSON format: { items: Rule[], nextCursor } Markdown format: Formatted table of rules
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of rules to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_create_ruleCreate a new automation rule in Gorgias.
Args:
Returns: The created rule record.
{
"type": "object",
"required": [
"name",
"eventTypes"
],
"properties": {
"code": {
"type": "string",
"description": "Rule code"
},
"name": {
"type": "string",
"description": "Rule name"
},
"priority": {
"type": "integer",
"description": "Rule priority"
},
"eventTypes": {
"type": "string",
"description": "Event types (e.g., ticket-created)"
},
"codeAstJson": {
"type": "string",
"description": "Rule code AST as JSON"
},
"description": {
"type": "string",
"description": "Rule description"
}
}
}gorgias_update_ruleUpdate an existing rule.
Args:
Returns: The updated rule record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Rule ID to update"
},
"code": {
"type": "string",
"description": "Rule code"
},
"name": {
"type": "string",
"description": "Rule name"
},
"priority": {
"type": "integer",
"description": "Rule priority"
},
"eventTypes": {
"type": "string",
"description": "Event types"
},
"codeAstJson": {
"type": "string",
"description": "Rule code AST as JSON"
},
"description": {
"type": "string",
"description": "Rule description"
}
}
}gorgias_delete_ruleDelete a rule from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Rule ID to delete"
}
}
}gorgias_list_satisfaction_surveysList satisfaction surveys from Gorgias with pagination.
Satisfaction surveys collect customer feedback after ticket resolution.
Args:
Returns: JSON format: { items: SatisfactionSurvey[], nextCursor } Markdown format: Formatted table of surveys
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of surveys to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"ticketId": {
"type": "integer",
"description": "Filter by ticket ID"
},
"customerId": {
"type": "integer",
"description": "Filter by customer ID"
}
}
}gorgias_get_satisfaction_surveyGet a single satisfaction survey by ID.
Args:
Returns: The satisfaction survey record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Survey ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_satisfaction_surveyCreate a new satisfaction survey in Gorgias.
Args:
Returns: The created satisfaction survey record.
{
"type": "object",
"required": [
"ticketId",
"customerId"
],
"properties": {
"ticketId": {
"type": "integer",
"description": "Ticket ID"
},
"customerId": {
"type": "integer",
"description": "Customer ID"
},
"shouldSendDatetime": {
"type": "string",
"description": "When to send (ISO datetime)"
}
}
}gorgias_list_tagsList all tags from Gorgias.
Returns: JSON format: Array of tags Markdown format: Formatted table of tags
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_tagGet a single tag by ID.
Args:
Returns: The tag record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Tag ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_tagCreate a new tag in Gorgias.
Args:
Returns: The created tag record.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Tag name"
},
"color": {
"type": "string",
"description": "Tag color (hex code)"
},
"description": {
"type": "string",
"description": "Tag description"
}
}
}gorgias_update_tagUpdate an existing tag.
Args:
Returns: The updated tag record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Tag ID to update"
},
"name": {
"type": "string",
"description": "Tag name"
},
"color": {
"type": "string",
"description": "Tag color (hex code)"
},
"description": {
"type": "string",
"description": "Tag description"
}
}
}gorgias_delete_tagDelete a tag from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Tag ID to delete"
}
}
}gorgias_merge_tagsMerge multiple tags into one.
Args:
Returns: The merged tag record.
{
"type": "object",
"required": [
"primaryId",
"secondaryIds"
],
"properties": {
"primaryId": {
"type": "integer",
"description": "Primary tag ID to keep"
},
"secondaryIds": {
"type": "array",
"items": {
"type": "number"
},
"description": "Tag IDs to merge"
}
}
}gorgias_list_teamsList all teams from Gorgias.
Returns: JSON format: Array of teams Markdown format: Formatted table of teams
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_teamGet a single team by ID.
Args:
Returns: The team record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Team ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_teamCreate a new team in Gorgias.
Args:
Returns: The created team record.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "Team name"
},
"memberIds": {
"type": "array",
"items": {
"type": "number"
},
"description": "Member user IDs"
},
"description": {
"type": "string",
"description": "Team description"
}
}
}gorgias_update_teamUpdate an existing team.
Args:
Returns: The updated team record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Team ID to update"
},
"name": {
"type": "string",
"description": "Team name"
},
"memberIds": {
"type": "array",
"items": {
"type": "number"
},
"description": "Member user IDs"
},
"description": {
"type": "string",
"description": "Team description"
}
}
}gorgias_delete_teamDelete a team from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Team ID to delete"
}
}
}gorgias_create_viewCreate a new view in Gorgias.
Args:
Returns: The created view record.
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "View name"
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields to display"
},
"filters": {
"type": "string",
"description": "Filter expression"
},
"orderBy": {
"type": "string",
"description": "Field to order by"
},
"orderDir": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Order direction"
},
"visibility": {
"enum": [
"public",
"shared",
"private"
],
"type": "string",
"description": "View visibility"
}
}
}gorgias_list_ticketsList tickets from Gorgias with pagination and filtering.
Returns a paginated list of tickets. Use the cursor from the response to fetch the next page.
Args:
Returns: JSON format: { items: Ticket[], nextCursor } Markdown format: Formatted table of tickets
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of tickets to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"status": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "Filter by status"
},
"channel": {
"type": "string",
"description": "Filter by channel"
},
"customerId": {
"type": "integer",
"description": "Filter by customer ID"
},
"assigneeTeamId": {
"type": "integer",
"description": "Filter by assigned team ID"
},
"assigneeUserId": {
"type": "integer",
"description": "Filter by assigned user ID"
}
}
}gorgias_get_ticketGet a single ticket by ID with all messages included.
Args:
Returns: The ticket record with all available fields and messages.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Ticket ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_ticketCreate a new ticket in Gorgias.
Args:
Returns: The created ticket record.
{
"type": "object",
"required": [
"channel",
"messageBodyText"
],
"properties": {
"channel": {
"type": "string",
"description": "Channel for the ticket"
},
"subject": {
"type": "string",
"description": "Ticket subject"
},
"customerId": {
"type": "integer",
"description": "Customer ID"
},
"messageVia": {
"type": "string",
"default": "api",
"description": "How the message was received"
},
"customerEmail": {
"type": "string",
"description": "Customer email"
},
"messageBodyHtml": {
"type": "string",
"description": "Initial message body (HTML)"
},
"messageBodyText": {
"type": "string",
"description": "Initial message body (plain text)"
}
}
}gorgias_update_ticketUpdate an existing ticket.
Args:
Returns: The updated ticket record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Ticket ID to update"
},
"status": {
"enum": [
"open",
"closed"
],
"type": "string",
"description": "New status"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string",
"description": "New priority"
},
"assigneeTeamId": {
"type": "integer",
"description": "New assignee team ID"
},
"assigneeUserId": {
"type": "integer",
"description": "New assignee user ID"
}
}
}gorgias_delete_ticketDelete a ticket from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Ticket ID to delete"
}
}
}gorgias_add_ticket_tagsAdd tags to a ticket.
Args:
Returns: Confirmation of success.
{
"type": "object",
"required": [
"ticketId",
"tagIds"
],
"properties": {
"tagIds": {
"type": "array",
"items": {
"type": "number"
},
"description": "Tag IDs to add"
},
"ticketId": {
"type": "integer",
"description": "Ticket ID"
}
}
}gorgias_remove_ticket_tagsRemove tags from a ticket.
Args:
Returns: Confirmation of success.
{
"type": "object",
"required": [
"ticketId",
"tagIds"
],
"properties": {
"tagIds": {
"type": "array",
"items": {
"type": "number"
},
"description": "Tag IDs to remove"
},
"ticketId": {
"type": "integer",
"description": "Ticket ID"
}
}
}gorgias_list_usersList users (agents) from Gorgias with pagination.
Returns a paginated list of users/agents. Use the cursor from the response to fetch the next page.
Args:
Returns: JSON format: { items: User[], nextCursor } Markdown format: Formatted table of users
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of users to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous response"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_userGet a single user (agent) by ID.
Args:
Returns: The user record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "User ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_update_viewUpdate an existing view.
Args:
Returns: The updated view record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "View ID to update"
},
"name": {
"type": "string",
"description": "View name"
},
"fields": {
"type": "array",
"items": {
"type": "string"
},
"description": "Fields to display"
},
"filters": {
"type": "string",
"description": "Filter expression"
},
"orderBy": {
"type": "string",
"description": "Field to order by"
},
"orderDir": {
"enum": [
"asc",
"desc"
],
"type": "string",
"description": "Order direction"
},
"visibility": {
"enum": [
"public",
"shared",
"private"
],
"type": "string",
"description": "View visibility"
}
}
}gorgias_delete_viewDelete a view from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "View ID to delete"
}
}
}gorgias_list_view_itemsList tickets matching a view's filters.
Args:
Returns: JSON format: { items: Ticket[], nextCursor } Markdown format: Formatted table of tickets
{
"type": "object",
"required": [
"viewId"
],
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Number of tickets to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
},
"viewId": {
"type": "integer",
"description": "View ID"
}
}
}gorgias_list_widgetsList all widgets from Gorgias.
Widgets display custom information in the helpdesk UI (e.g., customer data from external systems).
Returns: JSON format: Array of widgets Markdown format: Formatted table of widgets
{
"type": "object",
"properties": {
"format": {
"enum": [
"json",
"markdown"
],
"type": "string",
"default": "json",
"description": "Response format"
}
}
}gorgias_get_widgetGet a single widget by ID.
Args:
Returns: The widget record with all available fields.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Widget ID"
},
"format": {
"enum": [
"json",
"markdown"
],
"type": "string"
}
}
}gorgias_create_widgetCreate a new widget in Gorgias.
Args:
Returns: The created widget record.
{
"type": "object",
"required": [
"context",
"template"
],
"properties": {
"order": {
"type": "integer",
"description": "Display order"
},
"context": {
"enum": [
"ticket",
"customer",
"user"
],
"type": "string",
"description": "Widget context"
},
"template": {
"type": "string",
"description": "Widget template HTML"
},
"integrationId": {
"type": "integer",
"description": "Integration ID"
}
}
}gorgias_update_widgetUpdate an existing widget.
Args:
Returns: The updated widget record.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Widget ID to update"
},
"order": {
"type": "integer",
"description": "Display order"
},
"context": {
"enum": [
"ticket",
"customer",
"user"
],
"type": "string",
"description": "Widget context"
},
"template": {
"type": "string",
"description": "Widget template HTML"
}
}
}gorgias_delete_widgetDelete a widget from Gorgias.
Args:
Returns: Confirmation of deletion.
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "integer",
"description": "Widget ID to delete"
}
}
}