Skip to main content
Glama

delete_comment

Remove unwanted or outdated comments from Qiita articles to maintain content quality and relevance. Delete comments by providing the specific comment ID.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYesコメントID

Implementation Reference

  • The handler for the 'delete_comment' tool, which validates input using commentIdSchema and executes by calling client.deleteComment(commentId).
    delete_comment: { schema: commentIdSchema, execute: async ({ commentId }, client) => client.deleteComment(commentId), },
  • MCP tool schema definition for 'delete_comment', specifying the input schema requiring 'commentId'.
    { name: 'delete_comment', description: '指定されたコメントを削除します', inputSchema: { type: 'object', properties: { commentId: { type: 'string', description: 'コメントID', }, }, required: ['commentId'], }, },
  • The QiitaApiClient helper method that authenticates and sends DELETE request to /comments/{commentId}.
    async deleteComment(commentId: string) { this.assertAuthenticated(); await this.client.delete(`/comments/${commentId}`); return { success: true }; }
  • Zod input schema for commentId used by the delete_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