Skip to main content
Glama

get_item_stockers

Retrieve users who have bookmarked a specific Qiita article to analyze engagement and identify interested community members.

Instructions

指定された記事をストックしたユーザー一覧を取得します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYes記事ID
pageNoページ番号(1-100)
perPageNo1ページあたりの件数(1-100)

Implementation Reference

  • MCP tool handler for 'get_item_stockers'. Validates input using Zod schema (itemId + pagination) and executes by calling QiitaApiClient.getItemStockers.
    get_item_stockers: { schema: itemIdSchema.merge(paginationSchema), execute: async ({ itemId, page, perPage }, client) => client.getItemStockers(itemId, page, perPage), },
  • MCP tool definition including name, description, and JSON input schema for 'get_item_stockers' used in listTools response.
    { name: 'get_item_stockers', description: '指定された記事をストックしたユーザー一覧を取得します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, page: { type: 'number', description: 'ページ番号(1-100)', default: 1, }, perPage: { type: 'number', description: '1ページあたりの件数(1-100)', default: 20, }, }, required: ['itemId'], }, },
  • Core implementation in QiitaApiClient that performs the HTTP GET request to Qiita API endpoint /items/{itemId}/stockers to fetch stockers list.
    async getItemStockers(itemId: string, page = 1, perPage = 20) { const response = await this.client.get(`/items/${itemId}/stockers`, { params: { page, per_page: perPage }, }); return response.data; }
  • Shared Zod schema for pagination parameters used in get_item_stockers handler.
    const paginationSchema = z.object({ page: z.number().int().min(1).max(100).default(1), perPage: z.number().int().min(1).max(100).default(20), });
  • Shared Zod schema for itemId parameter used in get_item_stockers 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