Skip to main content
Glama

Add Comment

jira_add_comment
Destructive

Add comments to Jira issues with optional visibility controls and Service Desk support for customer-facing or internal notes.

Instructions

Add a comment to a Jira issue.

Args: ctx: The FastMCP context. issue_key: Jira issue key. body: Comment text in Markdown. visibility: (Optional) Comment visibility as JSON string. public: (Optional) For JSM issues. True = customer-visible, False = internal/agent-only. Uses ServiceDesk API.

Returns: JSON string representing the added comment object.

Raises: ValueError: If in read-only mode or Jira client unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_keyYesJira issue key (e.g., 'PROJ-123', 'ACV2-642')
bodyYesComment text in Markdown format
visibilityNo(Optional) Comment visibility as JSON string (e.g. '{"type":"group","value":"jira-users"}')
publicNo(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.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations provide destructiveHint=true, indicating a write operation. The description adds valuable behavioral context beyond annotations: it specifies that 'public' uses ServiceDesk API with plain text (not Markdown), mentions the 'Raises' section for error conditions (read-only mode, client availability), and notes that 'visibility' and 'public' cannot be combined. This enriches understanding without contradicting annotations.

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?

The description is well-structured with clear sections (purpose, Args, Returns, Raises), front-loads the core functionality, and uses bullet-like formatting efficiently. Every sentence adds value without redundancy, making it easy to scan and understand.

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

Completeness5/5

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

Given the tool's complexity (mutation with multiple parameters), the description is complete: it covers purpose, parameters, returns, and error conditions. With annotations (destructiveHint), 100% schema coverage, and an output schema (implied by 'Returns'), no critical gaps remain. It adequately supplements structured data.

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 the schema already fully documents all parameters. The description adds minimal extra semantics (e.g., Markdown format for 'body', JSON string example for 'visibility', API details for 'public'), but does not significantly enhance meaning beyond what the schema provides. This meets the baseline for high schema coverage.

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 clearly states the specific action ('Add a comment') and target resource ('to a Jira issue'), distinguishing it from sibling tools like 'jira_edit_comment' or 'confluence_add_comment' by specifying the Jira context. It provides a verb+resource combination that is unambiguous.

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

Usage Guidelines4/5

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

The description includes implicit context for when to use this tool (e.g., for Jira issues, with Markdown text) and mentions JSM-specific usage with the 'public' parameter, but does not explicitly state when to choose alternatives like 'jira_edit_comment' or 'confluence_add_comment'. It provides clear parameter guidance but lacks explicit sibling differentiation.

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

Install Server

Other Tools

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/GeiserX/atlassian-browser-mcp'

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