get_tag
Retrieve detailed information about specific tags from the Qiita developer community platform to identify topics, track trends, and organize content effectively.
Instructions
指定されたタグの詳細情報を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagId | Yes | タグID |
Implementation Reference
- src/tools/handlers.ts:132-135 (handler)The handler definition for the 'get_tag' MCP tool. It uses tagIdSchema for input validation and delegates execution to the QiitaApiClient's getTag method.get_tag: { schema: tagIdSchema, execute: async ({ tagId }, client) => client.getTag(tagId), },
- src/tools/definitions.ts:384-397 (schema)The MCP tool schema definition for 'get_tag', including input schema (JSON Schema equivalent to tagIdSchema) and description.{ name: 'get_tag', description: '指定されたタグの詳細情報を取得します', inputSchema: { type: 'object', properties: { tagId: { type: 'string', description: 'タグID', }, }, required: ['tagId'], }, },
- src/tools/handlers.ts:23-25 (schema)Zod schema used by the 'get_tag' handler (and other tag-related tools) for input validation.const tagIdSchema = z.object({ tagId: z.string(), });
- src/qiitaApiClient.ts:144-147 (helper)The underlying Qiita API client method called by the 'get_tag' handler to fetch tag details via HTTP GET /tags/{tagId}.async getTag(tagId: string) { const response = await this.client.get(`/tags/${tagId}`); return response.data; }
- src/index.ts:26-28 (registration)Registration of the tool list handler, which returns the tools array including 'get_tag' for MCP ListTools requests.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });