Skip to main content
Glama
Selenium39

Qiita API MCP Server

get_item

Retrieve detailed information about specific articles from the Qiita developer community platform using article IDs.

Instructions

指定された記事の詳細情報を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYes記事ID

Implementation Reference

  • Handler definition for the 'get_item' tool. Parses input using itemIdSchema and executes by calling client.getItem(itemId).
    get_item: {
      schema: itemIdSchema,
      execute: async ({ itemId }, client) => client.getItem(itemId),
    },
  • MCP tool schema definition for 'get_item', specifying input schema with required 'itemId' string.
    {
      name: 'get_item',
      description: '指定された記事の詳細情報を取得します',
      inputSchema: {
        type: 'object',
        properties: {
          itemId: {
            type: 'string',
            description: '記事ID',
          },
        },
        required: ['itemId'],
      },
    },
  • QiitaApiClient method that performs the actual HTTP GET request to retrieve the item details from Qiita API.
    async getItem(itemId: string) {
      const response = await this.client.get(`/items/${itemId}`);
      return response.data;
    }
  • Zod schema used for input validation in the get_item handler.
    const itemIdSchema = z.object({
      itemId: 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