unlike-note
Remove your like from a note.com article by providing the article ID to manage your engagement with content on the platform.
Instructions
記事のスキを削除する
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| noteId | Yes | 記事ID |
Implementation Reference
- src/tools/note-tools.ts:460-481 (handler)The primary handler implementation for the 'unlike-note' tool. It authenticates, sends a DELETE request to `/v3/notes/${noteId}/likes` to remove a like from the note, and returns a success or error response.server.tool( "unlike-note", "記事のスキを削除する", { noteId: z.string().describe("記事ID"), }, async ({ noteId }) => { try { if (!hasAuth()) { return createAuthErrorResponse(); } await noteApiRequest(`/v3/notes/${noteId}/likes`, "DELETE", {}, true); return createSuccessResponse({ message: "スキを削除しました" }); } catch (error) { return handleApiError(error, "スキ削除"); } } );
- src/tools/note-tools.ts:460-481 (registration)The tool is registered here using the MCP SDK's server.tool method within the registerNoteTools function, including name, description, input schema (noteId), and handler.server.tool( "unlike-note", "記事のスキを削除する", { noteId: z.string().describe("記事ID"), }, async ({ noteId }) => { try { if (!hasAuth()) { return createAuthErrorResponse(); } await noteApiRequest(`/v3/notes/${noteId}/likes`, "DELETE", {}, true); return createSuccessResponse({ message: "スキを削除しました" }); } catch (error) { return handleApiError(error, "スキ削除"); } } );
- src/tools/note-tools.ts:463-465 (schema)Input schema for 'unlike-note' tool: requires noteId as string.{ noteId: z.string().describe("記事ID"), },
- src/note-mcp-server-http.ts:704-720 (handler)Fallback inline handler for HTTP/SSE transport in note-mcp-server-http.ts. Uses POST to `/v3/notes/${noteId}/unlike` instead of DELETE.} else if (name === "unlike-note") { // unlike-noteツールの実装 const { noteId } = args; const data = await noteApiRequest( `/v3/notes/${noteId}/unlike`, "POST", null, true ); result = { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
- src/note-mcp-server-http.ts:180-190 (schema)Hardcoded schema for 'unlike-note' in the tools list returned by getToolsList() for HTTP transport.{ name: "unlike-note", description: "記事のスキを削除", inputSchema: { type: "object", properties: { noteId: { type: "string", description: "記事ID" } }, required: ["noteId"] } },