Skip to main content
Glama

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
NameRequiredDescriptionDefault
itemIdYes記事ID
pageNoページ番号(1-100)
perPageNo1ページあたりの件数(1-100)

Implementation Reference

  • 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), },
  • 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'], },
  • 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; }

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