get_item_stockers
Retrieve users who have bookmarked a specific Qiita article. Use this tool to identify readers who found an article valuable by checking its stockers list with pagination support.
Instructions
指定された記事をストックしたユーザー一覧を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | 記事ID | |
| page | No | ページ番号(1-100) | |
| perPage | No | 1ページあたりの件数(1-100) |
Implementation Reference
- src/tools/handlers.ts:120-124 (handler)The MCP tool handler for get_item_stockers. It defines the Zod input schema and the execute function that calls the QiitaApiClient's getItemStockers method.get_item_stockers: { schema: itemIdSchema.merge(paginationSchema), execute: async ({ itemId, page, perPage }, client) => client.getItemStockers(itemId, page, perPage), },
- src/tools/definitions.ts:334-356 (schema)The tool definition exported in the tools array, including name, description, and inputSchema for MCP listTools.{ 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'], },
- src/qiitaApiClient.ts:130-135 (helper)The QiitaApiClient helper method that makes the actual API call to fetch the list of users who stocked the specified item.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; }