Skip to main content
Glama

get_item_comments

Retrieve all discussion thread comments for a specific Codebeamer item using its numeric ID to view feedback and collaboration history.

Instructions

Get all comments (discussion thread) for a Codebeamer item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYesNumeric item ID

Implementation Reference

  • The API client method that fetches item comments.
    async getItemComments(id: number): Promise<CbComment[]> {
      const raw = await this.http.get<unknown>(`/items/${id}/comments`, {
        resource: `comments for item ${id}`,
      });
      return toArray(raw);
    }
  • Registration of the get_item_comments tool and its handler logic which calls the client and formats the result.
    server.registerTool(
      "get_item_comments",
      {
        title: "Get Item Comments",
        description:
          "Get all comments (discussion thread) for a Codebeamer item.",
        inputSchema: {
          itemId: z
            .number()
            .int()
            .positive()
            .describe("Numeric item ID"),
        },
      },
      async ({ itemId }) => {
        const comments = await client.getItemComments(itemId);
        return { content: [{ type: "text", text: formatComments(comments) }] };
      },
    );

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