Skip to main content
Glama

create_ticket_comment

Add a comment to an existing Zendesk ticket to provide updates, ask questions, or share information with customers or internal teams.

Instructions

Create a new comment on an existing Zendesk ticket

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticket_idYesThe ID of the ticket to comment on
commentYesThe comment text/content to add
publicNoWhether the comment should be public

Implementation Reference

  • The tool handler logic for 'create_ticket_comment' which calls 'zendesk_client.post_comment'.
    elif name == "create_ticket_comment":
        if not arguments:
            raise ValueError("Missing arguments")
        public = arguments.get("public", True)
        result = zendesk_client.post_comment(
            ticket_id=arguments["ticket_id"],
            comment=arguments["comment"],
            public=public
        )
        return [types.TextContent(
            type="text",
            text=f"Comment created successfully: {result}"
        )]
  • The tool definition (schema) for 'create_ticket_comment'.
    types.Tool(
        name="create_ticket_comment",
        description="Create a new comment on an existing Zendesk ticket",
        inputSchema={
            "type": "object",
            "properties": {
                "ticket_id": {
                    "type": "integer",
                    "description": "The ID of the ticket to comment on"
                },
                "comment": {
                    "type": "string",
                    "description": "The comment text/content to add"
                },
                "public": {
                    "type": "boolean",
                    "description": "Whether the comment should be public",
                    "default": True
                }
            },
            "required": ["ticket_id", "comment"]
        }
    ),

Latest Blog Posts

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/kdopenshaw/zendesk-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server