Skip to main content
Glama

get_item

Retrieve detailed information about specific Qiita articles using their unique ID. Access article content, metadata, and author details from the Japanese developer community platform.

Instructions

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYes記事ID

Implementation Reference

  • Handler for the 'get_item' tool. Defines the Zod input schema (itemIdSchema) and the execute function that calls QiitaApiClient.getItem with the provided itemId.
    get_item: { schema: itemIdSchema, execute: async ({ itemId }, client) => client.getItem(itemId), },
  • MCP tool schema definition for 'get_item', including name, description, and inputSchema requiring 'itemId'.
    { name: 'get_item', description: '指定された記事の詳細情報を取得します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, }, required: ['itemId'], }, },
  • QiitaApiClient.getItem method: Fetches the Qiita item details by ID using the axios client and returns the data. This is called by the tool handler.
    async getItem(itemId: string) { const response = await this.client.get(`/items/${itemId}`); return response.data; }
  • Zod schema for itemId input, reused by the get_item handler and others.
    const itemIdSchema = z.object({ itemId: z.string(), });
  • Exports the toolHandlers object containing all tool definitions including get_item, which is imported and used in src/index.ts for tool execution.
    export { toolHandlers };

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