Skip to main content
Glama

get_users

Retrieve a list of users from the Qiita developer community platform. Specify page numbers and results per page to browse user profiles.

Instructions

ユーザー一覧を取得します

Input Schema

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

Implementation Reference

  • Handler for the 'get_users' tool. It uses paginationSchema for input validation and delegates execution to QiitaApiClient.getUsers with page and perPage parameters.
    get_users: { schema: paginationSchema, execute: async ({ page, perPage }, client) => client.getUsers(page, perPage), },
  • MCP Tool definition for 'get_users', including name, description, and input schema for pagination parameters.
    { name: 'get_users', description: 'ユーザー一覧を取得します', inputSchema: { type: 'object', properties: { page: { type: 'number', description: 'ページ番号(1-100)', default: 1, }, perPage: { type: 'number', description: '1ページあたりの件数(1-100)', default: 20, }, }, required: [], }, },
  • QiitaApiClient.getUsers method that performs the actual API call to fetch users list from Qiita's /users endpoint with pagination.
    async getUsers(page = 1, perPage = 20) { const response = await this.client.get('/users', { params: { page, per_page: perPage }, }); return response.data; }
  • Zod schema used by the get_users handler for input validation (pagination parameters).
    const paginationSchema = z.object({ page: z.number().int().min(1).max(100).default(1), perPage: z.number().int().min(1).max(100).default(20), });

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