Skip to main content
Glama

update-task-backlog

Move tasks to your backlog for later review and organization. This tool helps you defer tasks by transferring them from your active list to the backlog using the task ID.

Instructions

Move a task to the backlog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitResponsePayloadNoWhether to limit the response payload size
taskIdYesThe ID of the task to move to backlog
timezoneNoTimezone string (e.g., 'America/New_York'). If not provided, uses user's default timezone

Implementation Reference

  • Main handler implementation for the 'update-task-backlog' tool. It moves a task to the backlog by calling `updateTaskSnoozeDate` with a null date.
    export const updateTaskBacklogTool = withTransportClient({ name: "update-task-backlog", description: "Move a task to the backlog", parameters: updateTaskBacklogSchema, execute: async ( { taskId, timezone, limitResponsePayload }: UpdateTaskBacklogInput, context: ToolContext, ) => { const options: { timezone?: string; limitResponsePayload?: boolean } = {}; if (timezone) options.timezone = timezone; if (limitResponsePayload !== undefined) { options.limitResponsePayload = limitResponsePayload; } const result = await context.client.updateTaskSnoozeDate( taskId, null, options, ); return formatJsonResponse({ success: result.success, taskId, movedToBacklog: true, updatedFields: result.updatedFields, }); }, });
  • Zod schema defining the input parameters for the 'update-task-backlog' tool.
    // Update task backlog parameters export const updateTaskBacklogSchema = z.object({ taskId: z.string().min(1, "Task ID is required").describe( "The ID of the task to move to backlog", ), timezone: z.string().optional().describe( "Timezone string (e.g., 'America/New_York'). If not provided, uses user's default timezone", ), limitResponsePayload: z.boolean().optional().describe( "Whether to limit the response payload size", ), });
  • The 'updateTaskBacklogTool' is registered in the taskTools array, which is re-exported from src/tools/index.ts into allTools.
    export const taskTools = [ // Query tools getTasksBacklogTool, getTasksByDayTool, getArchivedTasksTool, getTaskByIdTool, // Lifecycle tools createTaskTool, deleteTaskTool, // Update tools updateTaskCompleteTool, updateTaskSnoozeDateTool, updateTaskBacklogTool, updateTaskPlannedTimeTool, updateTaskNotesTool, updateTaskDueDateTool, updateTaskTextTool, updateTaskStreamTool, ];
  • src/tools/index.ts:5-9 (registration)
    Top-level registration where taskTools (containing update-task-backlog) is spread into allTools.
    export const allTools = [ ...userTools, ...taskTools, ...streamTools, ];
  • Imports helper functions like withTransportClient used to wrap the execute handler.
    import { formatJsonResponse, formatPaginatedTsvResponse, formatTsvResponse, withTransportClient, type ToolContext, } from "./shared.js";

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/robertn702/mcp-sunsama'

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