Skip to main content
Glama

Add Comment

jira_add_comment

Adds a Markdown comment to a Jira issue by key, with optional visibility and public or internal JSM customer-request support.

Instructions

Add a comment to a Jira issue.

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": {
      "issue_key": "<issue_key>",
      "body": "<body>"
    },
    "name": "jira_add_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesComment text in Markdown format
publicNo(Optional) For JSM customer requests. Set to true for customer-visible comment, false for internal agent-only comment. Posted via the ServiceDesk API as a raw string; Jira Cloud renders it server-side and stores ADF (markdown observed to render on Cloud, without the client-side markdown-to-ADF guarantees of the regular comment path). Cannot be combined with visibility on a request. On an issue that is not a JSM customer request (e.g. a plain Jira Task) this field is ignored and an ordinary comment is posted. If the issue's project is listed in JIRA_INTERNAL_ONLY_PROJECTS, only public=false is accepted on a request — public=true or omitting this field is rejected.
issue_keyYesJira issue key (e.g., 'PROJ-123', 'ACV2-642')
visibilityNo(Optional) Comment visibility as JSON string (e.g. '{"type":"group","value":"jira-users"}')

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.5.0
    • changedInput schema / properties / public / description
      Previous value: -"(Optional) For JSM/Service Desk issues only. Set to true for customer-visible comment, false for internal agent-only comment. Posted via the ServiceDesk API as a raw string; Jira Cloud renders it server-side and stores ADF (markdown observed to render on Cloud, without the client-side markdown-to-ADF guarantees of the regular comment path). Cannot be combined with visibility. If the issue's project is listed in JIRA_INTERNAL_ONLY_PROJECTS, only public=false is accepted — public=true or omitting this field is rejected."New value: +"(Optional) For JSM customer requests. Set to true for customer-visible comment, false for internal agent-only comment. Posted via the ServiceDesk API as a raw string; Jira Cloud renders it server-side and stores ADF (markdown observed to render on Cloud, without the client-side markdown-to-ADF guarantees of the regular comment path). Cannot be combined with visibility on a request. On an issue that is not a JSM customer request (e.g. a plain Jira Task) this field is ignored and an ordinary comment is posted. If the issue's project is listed in JIRA_INTERNAL_ONLY_PROJECTS, only public=false is accepted on a request — public=true or omitting this field is rejected."
  2. Changed4 schema fields changedv1.4.1
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / issue_key / pattern
      Previous value: -"^[A-Z][A-Z0-9_]+-\\d+$"New value: +"^[A-Z][A-Z0-9_]+-\\d+(?:-\\d+)*$"
    • changedInput schema / properties / public / description
      Previous value: -"(Optional) For JSM/Service Desk issues only. Set to true for customer-visible comment, false for internal agent-only comment. Uses the ServiceDesk API (plain text, not Markdown). Cannot be combined with visibility."New value: +"(Optional) For JSM/Service Desk issues only. Set to true for customer-visible comment, false for internal agent-only comment. Posted via the ServiceDesk API as a raw string; Jira Cloud renders it server-side and stores ADF (markdown observed to render on Cloud, without the client-side markdown-to-ADF guarantees of the regular comment path). Cannot be combined with visibility. If the issue's project is listed in JIRA_INTERNAL_ONLY_PROJECTS, only public=false is accepted — public=true or omitting this field is rejected."
    • removedOutput schema / description
      Removed value: -"Generic wrapper for non-object return types."
  3. Addedv1.0.1

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare this is a non-read-only, non-idempotent, open-world write, so safety is covered, and the description adds nothing on top. It does not mention duplicate risk on retry (idempotentHint=false), permission requirements, or the JSM/internal-only project constraints that materially change behavior; all of that lives in the schema rather than the description.

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

Conciseness4/5

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

A single front-loaded sentence with zero filler, which is structurally clean. It is arguably over-terse, since the brevity comes at the cost of any routing or constraint information, but nothing in it is wasted.

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

Completeness3/5

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

The tool is behaviorally complex (JSM comment visibility, internal-only project policy, Markdown-vs-ADF differences) and an output schema exists, so return values need not be explained. However, the description itself is silent on every one of these quirks, leaving an agent that reads only the description unaware that a public=true call can be rejected on certain projects.

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%, and the parameter docs are unusually detailed (Markdown body, ADF rendering caveats, JSM public/visibility mutual exclusion, JIRA_INTERNAL_ONLY_PROJECTS rejection rules). The description adds no parameter meaning beyond that, so the baseline of 3 applies.

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

Purpose4/5

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

The description states a specific verb and resource ('Add a comment to a Jira issue'), which is unambiguous on its own. It does not distinguish this tool from near siblings such as jira_edit_comment or confluence_add_comment, nor does it note that this creates a new comment rather than modifying an existing one, leaving that inference to the agent.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to add a comment versus editing one (jira_edit_comment) or when to use the JSM customer-request path. The important decision points — public vs visibility vs internal-only projects — are only discoverable by reading the parameter schema, not from the description.

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

Deploy Server

Other Tools