get-hashtag
Retrieve detailed information about hashtags from note.com to analyze tag usage, discover related content, and understand hashtag performance metrics.
Instructions
ハッシュタグの詳細を取得する
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ハッシュタグ名 |
Implementation Reference
- src/tools/user-tools.ts:157-169 (registration)Registration of the 'get-hashtag' MCP tool, including name, description, input schema, and inline handler function that retrieves hashtag details from the note.com API.server.tool( "get-hashtag", "ハッシュタグの詳細を取得する", { tag: z.string().describe("ハッシュタグ名") }, async ({ tag }) => { try { const data = await noteApiRequest(`/v2/hashtags/${encodeURIComponent(tag)}`, "GET"); return createSuccessResponse(data.data || data); } catch (error) { return handleApiError(error, "ハッシュタグ詳細取得"); } } );
- src/tools/user-tools.ts:161-168 (handler)The core handler logic for the get-hashtag tool. It makes an API request to fetch details for the specified hashtag and handles success/error responses.async ({ tag }) => { try { const data = await noteApiRequest(`/v2/hashtags/${encodeURIComponent(tag)}`, "GET"); return createSuccessResponse(data.data || data); } catch (error) { return handleApiError(error, "ハッシュタグ詳細取得"); } }
- src/tools/user-tools.ts:160-160 (schema)Input schema for the get-hashtag tool using Zod: requires a 'tag' string parameter representing the hashtag name.{ tag: z.string().describe("ハッシュタグ名") },