Skip to main content
Glama

get_item_comments

Retrieve all comments for a specific Qiita article using its article ID to view community feedback and discussions.

Instructions

指定された記事のコメント一覧を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYes記事ID

Implementation Reference

  • The handler definition for the 'get_item_comments' tool. It uses itemIdSchema for input validation and delegates execution to the QiitaApiClient's getItemComments method.
    get_item_comments: { schema: itemIdSchema, execute: async ({ itemId }, client) => client.getItemComments(itemId), },
  • The MCP tool definition including name, description, and input schema for 'get_item_comments'.
    { name: 'get_item_comments', description: '指定された記事のコメント一覧を取得します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, }, required: ['itemId'], }, },
  • The core helper method in QiitaApiClient that performs the actual API request to retrieve comments for a given item ID.
    async getItemComments(itemId: string) { const response = await this.client.get(`/items/${itemId}/comments`); return response.data; }

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/Selenium39/mcp-server-qiita'

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