Skip to main content
Glama

timeline_remove_scheduled_event

Remove scheduled social media posts and content automation events by event ID to manage your content calendar and workflow organization.

Instructions

Remove a scheduled event

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eventIdYes

Implementation Reference

  • The execute handler function that deletes the scheduled event from the database using the provided eventId and returns a success message.
    execute: async (params) => { const db = await getDb(); await db.delete(events).where(eq(events.id, params.eventId)); return JSON.stringify({ success: true, message: `Event ${params.eventId} removed successfully` }, null, 2); }
  • Zod schema for the tool input parameters, requiring a UUID string for eventId.
    parameters: z.object({ eventId: z.string().uuid() }),
  • MCP tool registration for timeline_remove_scheduled_event, including name, description, input schema, and inline handler.
    mcp.addTool({ name: 'timeline_remove_scheduled_event', description: 'Remove a scheduled event', parameters: z.object({ eventId: z.string().uuid() }), execute: async (params) => { const db = await getDb(); await db.delete(events).where(eq(events.id, params.eventId)); return JSON.stringify({ success: true, message: `Event ${params.eventId} removed successfully` }, null, 2); } });

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/derekalia/timeline-mcp'

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