get_user_followees
Retrieve the list of users followed by a specific Qiita user to analyze their interests and connections within the developer community.
Instructions
指定されたユーザーのフォロー一覧を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ページ番号(1-100) | |
| perPage | No | 1ページあたりの件数(1-100) | |
| userId | Yes | ユーザーID |
Implementation Reference
- src/tools/handlers.ts:80-84 (handler)Handler definition for 'get_user_followees' tool, including Zod schema for input validation and execution that calls QiitaApiClient.getUserFollowees.get_user_followees: { schema: userIdSchema.merge(paginationSchema), execute: async ({ userId, page, perPage }, client) => client.getUserFollowees(userId, page, perPage), },
- src/tools/definitions.ts:119-142 (schema)MCP tool schema definition for 'get_user_followees', used in listTools response, defining name, description, and input schema.{ name: 'get_user_followees', description: '指定されたユーザーのフォロー一覧を取得します', inputSchema: { type: 'object', properties: { userId: { type: 'string', description: 'ユーザーID', }, page: { type: 'number', description: 'ページ番号(1-100)', default: 1, }, perPage: { type: 'number', description: '1ページあたりの件数(1-100)', default: 20, }, }, required: ['userId'], }, },
- src/qiitaApiClient.ts:57-62 (helper)Qiita API client method that performs the HTTP GET request to retrieve the list of users followed by the specified user.async getUserFollowees(userId: string, page = 1, perPage = 20) { const response = await this.client.get(`/users/${userId}/followees`, { params: { page, per_page: perPage }, }); return response.data; }