Skip to main content
Glama

Create comment

create_comment

Adds a new comment to an issue, posted as you (the API key's owner; the issue's history also names the key), and returns the comment's id - what edit_comment/delete_comment take. Requires canEdit on the issue (see get_issue/list_issues); an issue you can't read is reported as not found. Everyone who can read the issue sees the comment; no notification is sent. Only you can later edit or delete it. Use it for discussion and progress notes; to change an existing comment use edit_comment, to note why while moving the issue pass edit_issue_status's comment instead, and to change the issue's own text use edit_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": {
      "issueKey": "<issueKey>",
      "text": "<text>"
    },
    "name": "create_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe comment's text, max 32768 characters. Plain text or markdown.
filesNoFiles to attach to the comment, base64-encoded - same format and types as create_issue's files, e.g. a report or config as Markdown/JSON.
issueKeyYesThe issue to comment on, e.g. 'BRD-42' - a key from list_issues or get_issue.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / text / description
      Previous value: -"The comment's text, max 4096 characters. Plain text or markdown."New value: +"The comment's text, max 32768 characters. Plain text or markdown."
    • changedInput schema / properties / text / maxLength
      Previous value: -4096New value: +32768
  2. Changed1 schema field changed
    • addedInput schema / properties / files
      Added value: +{
      +  "default": null,
      +  "description": "Files to attach to the comment, base64-encoded - same format and types as create_issue's files, e.g. a report or config as Markdown/JSON.",
      +  "items": {
      +    "properties": {
      +      "base64Content": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "contentType": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "fileName": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "fileName",
      +      "contentType",
      +      "base64Content"
      +    ],
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / issueKey / description
      Previous value: -"The issue's key, e.g. 'BRD-42'."New value: +"The issue to comment on, e.g. 'BRD-42' - a key from list_issues or get_issue."
    • changedInput schema / properties / text / description
      Previous value: -"The comment's text, max 4096 characters."New value: +"The comment's text, max 4096 characters. Plain text or markdown."
  4. Changed2 schema fields changed
    • changedInput schema / properties / text / description
      Previous value: -"The comment's text."New value: +"The comment's text, max 4096 characters."
    • addedInput schema / properties / text / maxLength
      Added value: +4096
  5. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the supplied annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) by disclosing authorship attribution, that the issue history names the key, the return value and its downstream use, the canEdit permission requirement, that unreadable issues are reported as not found, that all readers see the comment with no notification sent, and that only the author can later edit or delete it. These are exactly the mutation-side facts annotations cannot express.

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?

Front-loads the action and return value, then the permission and visibility notes, then alternatives, so the most important material is first. It is dense rather than padded, but the long parenthetical clause about the API key's owner and the history is slightly run-on and could be tightened.

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?

With no output schema, the description correctly explains the return value (the comment id) and how it feeds edit_comment/delete_comment. For a 3-parameter mutation tool it covers permissions, visibility, notification behavior, and post-creation ownership, leaving no material 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 issueKey, text, and files are already fully documented with formats, limits, and examples, making 3 the baseline. The description adds only indirectly by naming the returned comment id as the value edit_comment/delete_comment take, without clarifying any parameter behavior the schema does not.

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?

States a specific verb and resource ('Adds a new comment to an issue') and immediately scopes it as authored by the API key's owner, which distinguishes it from edit_comment, delete_comment, and edit_issue named later. An agent can identify the operation without inspecting any 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?

Explicitly states the intended use ('discussion and progress notes') and routes three adjacent needs to their correct alternatives: edit_comment for changing a comment, edit_issue_status's comment field for status-change rationale, and edit_issue for the issue body. This is precisely the when/when-not/alternative structure the dimension rewards.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.