Skip to main content
Glama

get-notice-counts

Retrieve notification counts from note.com to monitor user alerts, messages, and platform updates for better account management.

Instructions

通知件数を取得する

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registers the 'get-notice-counts' MCP tool with description '通知件数を取得する', empty input schema, and an inline handler function that fetches notice counts via noteApiRequest to /v3/notice_counts endpoint.
    server.tool( "get-notice-counts", "通知件数を取得する", {}, async () => { try { const data = await noteApiRequest(`/v3/notice_counts`, "GET"); return createSuccessResponse(data.data || data); } catch (error) { return handleApiError(error, "通知件数取得"); } } );
  • The core handler function that executes the tool logic: calls the note.com API /v3/notice_counts, processes the response, or handles errors.
    async () => { try { const data = await noteApiRequest(`/v3/notice_counts`, "GET"); return createSuccessResponse(data.data || data); } catch (error) { return handleApiError(error, "通知件数取得"); }
  • Empty input schema object indicating no parameters required for the tool.
    {},
  • HTTP transport-specific handler implementation for 'get-notice-counts' tool, duplicating the API call for JSON-RPC over HTTP.
    } else if (name === "get-notice-counts") { // get-notice-countsツールの実装 const data = await noteApiRequest( `/v3/notice_counts`, "GET", null, true ); result = { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
  • Tool schema definition used in tools/list response for HTTP transport.
    name: "get-notice-counts", description: "通知件数を取得", inputSchema: { type: "object", properties: {}, required: [] } },

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