Skip to main content
Glama

delete_comment

Remove unwanted or outdated comments from Qiita articles to maintain content quality and relevance. Specify the comment ID to delete specific comments.

Instructions

指定されたコメントを削除します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYesコメントID

Implementation Reference

  • The handler for the 'delete_comment' tool. It defines the input schema using commentIdSchema and the execute function that calls the QiitaApiClient's deleteComment method with the provided commentId.
    delete_comment: { schema: commentIdSchema, execute: async ({ commentId }, client) => client.deleteComment(commentId), },
  • The MCP tool registration for 'delete_comment', including name, description, and input schema definition.
    { name: 'delete_comment', description: '指定されたコメントを削除します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, }, required: ['commentId'], }, },
  • The Zod schema definition for commentId input, used by the delete_comment handler.
    const commentIdSchema = z.object({ commentId: z.string(), });
  • The QiitaApiClient helper method that implements the actual DELETE request to the Qiita API to delete the comment.
    async deleteComment(commentId: string) { this.assertAuthenticated(); await this.client.delete(`/comments/${commentId}`); return { success: true }; }

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