Skip to main content
Glama

unfollow_tag

Stop following a specific tag on Qiita to manage your feed content and focus on relevant topics in the developer community.

Instructions

指定されたタグのフォローを解除します

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagIdYesタグID

Implementation Reference

  • The handler definition for the 'unfollow_tag' tool. It specifies the input schema (tagIdSchema) and the execute function that calls the QiitaApiClient's unfollowTag method.
    unfollow_tag: { schema: tagIdSchema, execute: async ({ tagId }, client) => client.unfollowTag(tagId), },
  • The JSON schema definition for the 'unfollow_tag' tool, used in the ListTools MCP response.
    { name: 'unfollow_tag', description: '指定されたタグのフォローを解除します', inputSchema: { type: 'object', properties: { tagId: { type: 'string', description: 'タグID', }, }, required: ['tagId'], }, },
  • Zod schema for tagId input validation, referenced by the unfollow_tag handler and others.
    const tagIdSchema = z.object({ tagId: z.string(), });
  • The Qiita API client method that implements the unfollow tag logic by sending a DELETE request to /tags/{tagId}/following.
    async unfollowTag(tagId: string) { this.assertAuthenticated(); await this.client.delete(`/tags/${tagId}/following`); return { success: true }; }
  • src/index.ts:30-52 (registration)
    The CallTool request handler in the MCP server that dispatches to toolHandlers[name].execute, effectively registering all tools in toolHandlers including unfollow_tag.
    server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; const accessToken = process.env.QIITA_ACCESS_TOKEN; const qiita = new QiitaApiClient(accessToken); const handler = toolHandlers[name]; try { if (!handler) { throw new Error(`未知のツール: ${name}`); } const parsedArgs = handler.schema.parse(args ?? {}); const result = await handler.execute(parsedArgs, qiita); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], };

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