Skip to main content
Glama

add_comment

Add comments to Codebeamer work items using plain text or wiki markup formats to document discussions and updates.

Instructions

Add a comment to a Codebeamer work item. Supports plain text and wiki markup formats. Returns the created comment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYesNumeric item ID to comment on
commentYesComment text
formatNoComment format: PlainText or Wiki markupPlainText

Implementation Reference

  • The tool handler for "add_comment", which calls the client's addComment method and formats the result.
    async ({ itemId, comment, format }) => {
      const result = await client.addComment(itemId, {
        comment,
        commentFormat: format,
      });
      return {
        content: [{ type: "text", text: formatComments([result]) }],
      };
    },
  • Tool registration for "add_comment" in the McpServer.
    server.registerTool(
      "add_comment",
      {
        title: "Add Comment",
        description:
          "Add a comment to a Codebeamer work item. " +
          "Supports plain text and wiki markup formats. " +
          "Returns the created comment.",
        inputSchema: {
          itemId: z
            .number()
            .int()
            .positive()
            .describe("Numeric item ID to comment on"),
          comment: z.string().min(1).describe("Comment text"),
          format: z
            .enum(["PlainText", "Wiki"])
            .default("PlainText")
            .describe("Comment format: PlainText or Wiki markup"),
        },
      },
      async ({ itemId, comment, format }) => {
        const result = await client.addComment(itemId, {
          comment,
          commentFormat: format,
        });
        return {
          content: [{ type: "text", text: formatComments([result]) }],
        };
      },
    );
  • Zod schema definition for the input parameters of "add_comment".
    inputSchema: {
      itemId: z
        .number()
        .int()
        .positive()
        .describe("Numeric item ID to comment on"),
      comment: z.string().min(1).describe("Comment text"),
      format: z
        .enum(["PlainText", "Wiki"])
        .default("PlainText")
        .describe("Comment format: PlainText or Wiki markup"),
    },

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/3KniGHtcZ/codebeamer-mcp'

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