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
| Name | Required | Description | Default |
|---|---|---|---|
| magazineId | Yes | ||
| noteId | Yes |
Implementation Reference
- src/tools/magazine-tools.ts:68-83 (handler)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, "マガジンからの記事削除"); } }
- src/tools/magazine-tools.ts:64-67 (schema)Zod schema defining input parameters: magazineId and noteId as strings.{ magazineId: z.string().describe("マガジンID"), noteId: z.string().describe("記事ID") },
- src/tools/magazine-tools.ts:61-84 (registration)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, "マガジンからの記事削除"); } } );