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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/user-tools.ts:199-211 (registration)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, "通知件数取得"); } } );
- src/tools/user-tools.ts:203-209 (handler)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, "通知件数取得"); }
- src/tools/user-tools.ts:202-202 (schema)Empty input schema object indicating no parameters required for the tool.{},
- src/note-mcp-server-http.ts:1027-1041 (handler)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) }] };
- src/note-mcp-server-http.ts:284-291 (schema)Tool schema definition used in tools/list response for HTTP transport.name: "get-notice-counts", description: "通知件数を取得", inputSchema: { type: "object", properties: {}, required: [] } },