Skip to main content
Glama

remove-magazine-note

Remove articles from magazines on note.com by specifying magazine and article IDs to manage content organization.

Instructions

マガジンから記事を削除する

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
magazineIdYes
noteIdYes

Implementation Reference

  • Handler function that checks authentication, makes a DELETE API request to remove the note from the magazine, and returns success or error response.
    async ({ magazineId, noteId }) => {
      try {
        if (!hasAuth()) {
          return createAuthErrorResponse();
        }
    
        const data = await noteApiRequest(`/v1/our/magazines/${magazineId}/notes/${noteId}`, "DELETE", null, true);
        
        return createSuccessResponse({
          message: "マガジンから記事を削除しました",
          data: data
        });
      } catch (error) {
        return handleApiError(error, "マガジンからの記事削除");
      }
    }
  • Zod schema defining input parameters: magazineId and noteId as strings.
    {
      magazineId: z.string().describe("マガジンID"),
      noteId: z.string().describe("記事ID")
    },
  • Registration of the 'remove-magazine-note' tool on the MCP server, including name, description, input schema, and handler function.
    server.tool(
      "remove-magazine-note",
      "マガジンから記事を削除する",
      {
        magazineId: z.string().describe("マガジンID"),
        noteId: z.string().describe("記事ID")
      },
      async ({ magazineId, noteId }) => {
        try {
          if (!hasAuth()) {
            return createAuthErrorResponse();
          }
    
          const data = await noteApiRequest(`/v1/our/magazines/${magazineId}/notes/${noteId}`, "DELETE", null, true);
          
          return createSuccessResponse({
            message: "マガジンから記事を削除しました",
            data: data
          });
        } 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