Skip to main content
Glama

get_comment

Retrieve detailed information about a specific comment on the Qiita developer community platform using its unique comment ID.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYesコメントID

Implementation Reference

  • The handler for the 'get_comment' MCP tool. It validates the input using commentIdSchema and executes by calling client.getComment(commentId).
    get_comment: { schema: commentIdSchema, execute: async ({ commentId }, client) => client.getComment(commentId), },
  • Zod schema used for input validation of the get_comment tool (and other comment tools). Defines commentId as a required string.
    const commentIdSchema = z.object({ commentId: z.string(), });
  • MCP tool registration entry in the tools array. Provides the name, description, and JSON inputSchema for the get_comment tool.
    { name: 'get_comment', description: '指定されたコメントの詳細情報を取得します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, }, required: ['commentId'], }, },
  • Helper method in QiitaApiClient that performs the actual HTTP GET request to retrieve the comment details from the Qiita API.
    async getComment(commentId: string) { const response = await this.client.get(`/comments/${commentId}`); 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