Skip to main content
Glama

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
NameRequiredDescriptionDefault
tagYesハッシュタグ名

Implementation Reference

  • 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, "ハッシュタグ詳細取得"); } } );
  • 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, "ハッシュタグ詳細取得"); } }
  • Input schema for the get-hashtag tool using Zod: requires a 'tag' string parameter representing the hashtag name.
    { tag: z.string().describe("ハッシュタグ名") },

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/shimayuz/note-com-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server