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
| Name | Required | Description | Default |
|---|---|---|---|
| ticket_id | Yes | The ID of the ticket to comment on | |
| comment | Yes | The comment text/content to add | |
| public | No | Whether the comment should be public |
Implementation Reference
- src/zendesk_mcp_server/server.py:378-390 (handler)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"] } ),