Skip to main content
Glama
Selenium39

Qiita API MCP Server

is_user_followed

Check if you are following a specific user on Qiita, the Japanese developer community platform, to manage your connections.

Instructions

指定されたユーザーをフォローしているかどうかを確認します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userIdYesユーザーID

Implementation Reference

  • Handler for the 'is_user_followed' tool. Validates input with userIdSchema and executes by calling client.isUserFollowed(userId).
    is_user_followed: {
      schema: userIdSchema,
      execute: async ({ userId }, client) => client.isUserFollowed(userId),
    },
  • MCP tool metadata definition including name, description, and JSON input schema for 'is_user_followed'.
    {
      name: 'is_user_followed',
      description: '指定されたユーザーをフォローしているかどうかを確認します',
      inputSchema: {
        type: 'object',
        properties: {
          userId: {
            type: 'string',
            description: 'ユーザーID',
          },
        },
        required: ['userId'],
      },
    },
  • Core implementation of isUserFollowed in QiitaApiClient. Checks if the authenticated user follows the given userId by attempting to GET /users/{userId}/following and handling 404.
    async isUserFollowed(userId: string) {
      this.assertAuthenticated();
      try {
        await this.client.get(`/users/${userId}/following`);
        return { following: true };
      } catch (error: any) {
        if (error.response?.status === 404) {
          return { following: false };
        }
        throw error;
      }
    }

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