Skip to main content
Glama

update_comment

Modify existing comments on Qiita articles by providing the comment ID and new content in Markdown format to update your contributions.

Instructions

指定されたコメントを更新します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesコメントの本文(Markdown形式)
commentIdYesコメントID

Implementation Reference

  • Handler for the 'update_comment' MCP tool. Defines input schema using Zod and execute function that calls QiitaApiClient.updateComment.
    update_comment: { schema: z.object({ commentId: z.string(), body: z.string(), }), execute: async ({ commentId, body }, client) => client.updateComment(commentId, body), },
  • MCP protocol tool schema definition for 'update_comment', used for listing tools and input validation in the server.
    { name: 'update_comment', description: '指定されたコメントを更新します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, body: { type: 'string', description: 'コメントの本文(Markdown形式)', }, }, required: ['commentId', 'body'], }, },
  • Qiita API client method implementing the core logic: authenticates and sends PATCH request to /comments/{commentId} with new body.
    async updateComment(commentId: string, body: string) { this.assertAuthenticated(); const response = await this.client.patch(`/comments/${commentId}`, { body }); 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