is_tag_followed
Check if you are following a specific tag on Qiita to manage your developer community interests and stay updated on relevant topics.
Instructions
指定されたタグをフォローしているかどうかを確認します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagId | Yes | タグID |
Implementation Reference
- src/tools/handlers.ts:149-152 (handler)The MCP tool handler for 'is_tag_followed'. It validates input with Zod schema and delegates execution to QiitaApiClient.isTagFollowed(tagId).is_tag_followed: { schema: tagIdSchema, execute: async ({ tagId }, client) => client.isTagFollowed(tagId), },
- src/tools/definitions.ts:450-463 (schema)The input schema definition for the 'is_tag_followed' tool as per MCP Tool specification.{ name: 'is_tag_followed', description: '指定されたタグをフォローしているかどうかを確認します', inputSchema: { type: 'object', properties: { tagId: { type: 'string', description: 'タグID', }, }, required: ['tagId'], }, },
- src/qiitaApiClient.ts:168-179 (helper)The core helper function in QiitaApiClient that implements the logic: checks if the authenticated user follows the tag by GET /tags/{tagId}/following (404 means not followed).async isTagFollowed(tagId: string) { this.assertAuthenticated(); try { await this.client.get(`/tags/${tagId}/following`); return { following: true }; } catch (error: any) { if (error.response?.status === 404) { return { following: false }; } throw error; } }