Skip to main content
Glama

like-note

Add a like to a specific note.com article using its ID to show appreciation or engagement with the content.

Instructions

記事にスキをする

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteIdYes記事ID

Implementation Reference

  • Full implementation of the 'like-note' tool: registers the tool name, input schema (noteId: string), description, and handler function. The handler checks authentication with hasAuth(), calls noteApiRequest POST to `/v3/notes/${noteId}/likes` to like the note, returns success message or error response.
    server.tool(
      "like-note",
      "記事にスキをする",
      {
        noteId: z.string().describe("記事ID"),
      },
      async ({ noteId }) => {
        try {
          if (!hasAuth()) {
            return createAuthErrorResponse();
          }
    
          await noteApiRequest(`/v3/notes/${noteId}/likes`, "POST", {}, true);
    
          return createSuccessResponse({
            message: "スキをつけました"
          });
        } catch (error) {
          return handleApiError(error, "スキ");
        }
      }
    );
  • Zod schema for 'like-note' tool input: requires noteId as string (記事ID).
    {
      noteId: z.string().describe("記事ID"),
    },
  • Registers all note tools including 'like-note' by calling registerNoteTools(server).
    registerNoteTools(server);
  • Top-level registration call to registerAllTools(server), which includes note tools like 'like-note'.
    registerAllTools(server);

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