Skip to main content
Glama

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
NameRequiredDescriptionDefault
noteIdYes記事ID

Implementation Reference

  • 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, "スキ削除"); } } );
  • 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, "スキ削除"); } } );
  • Input schema for 'unlike-note' tool: requires noteId as string.
    { noteId: z.string().describe("記事ID"), },
  • 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) }] };
  • 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"] } },

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