Skip to main content
Glama

get_comment

Retrieve detailed information about specific comments on the Qiita developer community platform using comment IDs to access comment content and metadata.

Instructions

指定されたコメントの詳細情報を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYesコメントID

Implementation Reference

  • Handler definition for the 'get_comment' MCP tool. It uses a shared schema and executes by delegating to the QiitaApiClient's getComment method.
    get_comment: { schema: commentIdSchema, execute: async ({ commentId }, client) => client.getComment(commentId), },
  • Tool schema definition for 'get_comment' used in the list tools response, including input schema for validation.
    { name: 'get_comment', description: '指定されたコメントの詳細情報を取得します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, }, required: ['commentId'], }, },
  • Core implementation of fetching a comment by ID using the Axios client in QiitaApiClient.
    async getComment(commentId: string) { const response = await this.client.get(`/comments/${commentId}`); return response.data; }
  • Shared Zod schema for commentId parameter used in get_comment handler.
    const commentIdSchema = z.object({ commentId: z.string(), });

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