Skip to main content
Glama
Zendesk MCP Server by Fruggr

Zendesk MCP Server by Fruggr

Add Public Comment

add_public_comment

Add a public reply to a Zendesk ticket, with optional file attachments, to notify and update the requester. Use it for requester-visible responses; choose an internal note for agent-only comments.

Instructions

Add a public comment (visible to requester) to a ticket, optionally with file attachments (uploaded via the Zendesk Uploads API and carried on the comment). The comment is appended to the ticket thread and emails the requester; use add_private_note instead for an internal, agent-only note.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ticket_id": "<ticket_id>",
      "body": "<body>"
    },
    "name": "add_public_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesComment text sent to the requester; visible in the ticket. Markdown is rendered (**bold**, lists, links): wrap code, identifiers containing _ or * and <placeholders> in backticks so they show literally. HTML is not rendered (tags show as literal text), so do not send HTML.
ticket_idYesTicket ID — the numeric id of the ticket to reply on. Obtain it from search_tickets or list_tickets.
attachmentsNoFiles to attach to this comment (base64-encoded content).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.9.1
    • changedInput schema / properties / body / description
      Previous value: -"Comment text sent to the requester. Plain text or HTML; visible in the ticket."New value: +"Comment text sent to the requester; visible in the ticket. Markdown is rendered (**bold**, lists, links): wrap code, identifiers containing _ or * and <placeholders> in backticks so they show literally. HTML is not rendered (tags show as literal text), so do not send HTML."
  2. Changed1 schema field changedv3.3.1
    • addedInput schema / properties / attachments / items / additionalProperties
      Added value: +false
  3. Changed1 schema field changedv2.24.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed1 schema field changedv2.22.0
    • addedInput schema / properties / attachments / items / properties / file_base64 / contentEncoding
      Added value: +"base64"
  5. Changed2 schema fields changedv2.20.2
    • changedInput schema / properties / attachments / items / properties / file_base64 / description
      Previous value: -"File content encoded as base64."New value: +"File content encoded as base64. At most 10420224 characters (about 7.45 MB of file), and the attachments of one call must stay under that total; the HTTP transport additionally caps request bodies at 4 MB."
    • addedInput schema / properties / attachments / items / properties / file_base64 / maxLength
      Added value: +10420224
  6. Changed2 schema fields changedv2.6.0
    • changedInput schema / properties / body / description
      Previous value: -"Comment content"New value: +"Comment text sent to the requester. Plain text or HTML; visible in the ticket."
    • changedInput schema / properties / ticket_id / description
      Previous value: -"Ticket ID"New value: +"Ticket ID — the numeric id of the ticket to reply on. Obtain it from search_tickets or list_tickets."
  7. Changed1 schema field changedv2.4.1
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Files to attach to this comment (base64-encoded content).",
      +  "items": {
      +    "properties": {
      +      "content_type": {
      +        "default": "application/octet-stream",
      +        "description": "MIME type, e.g. \"text/plain\", \"image/png\", \"application/pdf\".",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "file_base64": {
      +        "description": "File content encoded as base64.",
      +        "format": "base64",
      +        "minLength": 1,
      +        "pattern": "^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$",
      +        "type": "string"
      +      },
      +      "file_name": {
      +        "description": "File name, e.g. \"app.log\" or \"screenshot.png\".",
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "file_name",
      +      "file_base64"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  8. Changed1 schema field changedv2.3.1
    • addedInput schema / additionalProperties
      Added value: +false
  9. First observedv1.7.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description's real contribution is the undisclosed side effect: posting emails the requester and appends to the ticket thread. It also explains the attachment pipeline (Uploads API, carried on the comment), which no annotation conveys. It stops short of noting irreversibility (no edit/delete path mentioned) or any rate/size caveats beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the visibility constraint and the email side effect front-loaded before the sibling routing advice. Every clause carries decision-relevant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with rich schema and solid annotation coverage, the description supplies the missing behavioral piece (requester email, thread append) and the key sibling choice. It does not describe the response shape, but the operation is simple enough that this is a minor gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so body, ticket_id, and the attachment fields are already fully documented, including Markdown/HTML rendering rules and size caps. The description adds only that attachments are uploaded via the Zendesk Uploads API and carried on the comment, which is modest mechanism context beyond the schema, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Add a public comment ... to a ticket"), states the audience ("visible to requester"), and explicitly distinguishes itself from the sibling add_private_note. An agent can pick between the two comment tools without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the concrete alternative (add_private_note) and the exact condition that selects it (internal, agent-only note), which is the primary fork an agent faces here. The requester-visible/emails-the-requester framing further reinforces when this tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.