Skip to main content
Glama

create_comment

Post comments on Qiita articles using the item ID and Markdown-formatted text to engage with the developer community.

Instructions

指定された記事にコメントを作成します

Input Schema

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

Implementation Reference

  • The handler definition for the 'create_comment' tool, including input validation schema and the execute function that delegates to the QiitaApiClient's createComment method.
    create_comment: { schema: z.object({ itemId: z.string(), body: z.string(), }), execute: async ({ itemId, body }, client) => client.createComment(itemId, body), },
  • The MCP tool definition for 'create_comment', including name, description, and input schema for validation.
    { name: 'create_comment', description: '指定された記事にコメントを作成します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, body: { type: 'string', description: 'コメントの本文(Markdown形式)', }, }, required: ['itemId', 'body'], }, },
  • The supporting method in QiitaApiClient that performs the actual API call to create a comment on a Qiita item.
    async createComment(itemId: string, body: string) { this.assertAuthenticated(); const response = await this.client.post(`/items/${itemId}/comments`, { 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