Skip to main content
Glama

unlike-note

Remove a like from a note.com article using its article ID. This tool helps manage article interactions by deleting previously added likes.

Instructions

記事のスキを削除する

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYes記事ID

Implementation Reference

  • The complete implementation of the 'unlike-note' tool, registered via server.tool(). It includes the input schema (noteId), description, and the handler function that authenticates, sends a DELETE request to `/v3/notes/${noteId}/likes` API endpoint to remove the like (ski), and returns 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, "スキ削除");
        }
      }
    );

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