get-notice-counts
Retrieve notification counts from note.com to monitor user alerts and activity updates through the MCP server.
Instructions
通知件数を取得する
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/user-tools.ts:203-210 (handler)The core handler function for the 'get-notice-counts' tool. It makes an API request to `/v3/notice_counts` to retrieve notice counts, formats the response, and handles any errors gracefully.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:199-211 (registration)Registers the 'get-notice-counts' tool on the MCP server with name, Japanese description, empty input schema (no parameters), and inline handler function.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:202-202 (schema)Input schema for the tool: empty object, indicating no parameters are required.{},