remove-magazine-note
Remove articles from magazines on note.com by specifying magazine and note IDs to manage content organization.
Instructions
マガジンから記事を削除する
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| magazineId | Yes | ||
| noteId | Yes |
Implementation Reference
- src/tools/magazine-tools.ts:68-83 (handler)Executes the tool logic: checks authentication, sends DELETE API request to remove note from magazine, returns formatted 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, "マガジンからの記事削除"); } }
- src/tools/magazine-tools.ts:64-67 (schema)Input schema validation using Zod for required string parameters magazineId and noteId.{ magazineId: z.string().describe("マガジンID"), noteId: z.string().describe("記事ID") },
- src/tools/magazine-tools.ts:61-84 (registration)Registers the remove-magazine-note tool with the MCP server, specifying name, Japanese 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, "マガジンからの記事削除"); } } );
- src/tools/index.ts:18-18 (registration)Calls registerMagazineTools as part of registering all tools, indirectly registering the remove-magazine-note tool.registerMagazineTools(server);