Skip to main content
Glama

delete_video_project

Remove a video project from the Magic Hour MCP Server to manage storage and organize media content. Specify the project ID to delete it.

Instructions

Delete a video project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe video project ID to delete

Implementation Reference

  • The delete_video_project tool registration and handler. This tool deletes a video project by ID using the Magic Hour API. It includes the schema definition (id parameter), error handling, and the async handler that calls client.v1.videoProjects.delete().
    server.tool(
      "delete_video_project",
      "Delete a video project.",
      {
        id: z.string().describe("The video project ID to delete"),
      },
      async ({ id }) => {
        try {
          await client.v1.videoProjects.delete({ id });
    
          return {
            content: [
              {
                type: "text" as const,
                text: `Video project ${id} deleted.`,
              },
            ],
          };
        } catch (error: any) {
          return {
            content: [
              { type: "text" as const, text: `Error: ${error.message}` },
            ],
            isError: true,
          };
        }
      }
    );

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/andrianthan/magic-hour-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server