Skip to main content
Glama
robertn702

Sunsama MCP Server

update-task-snooze-date

Reschedule tasks or move them to backlog by updating the snooze date with a new target date in YYYY-MM-DD format.

Instructions

Update task snooze date to reschedule tasks or move them to backlog

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitResponsePayloadNoWhether to limit the response payload size
newDayYesTarget date in YYYY-MM-DD format
taskIdYesThe ID of the task to reschedule
timezoneNoTimezone string (e.g., 'America/New_York'). If not provided, uses user's default timezone

Implementation Reference

  • Main tool handler implementation using withTransportClient wrapper. Calls the underlying client.updateTaskSnoozeDate method.
    export const updateTaskSnoozeDateTool = withTransportClient({
      name: "update-task-snooze-date",
      description:
        "Update task snooze date to reschedule tasks or move them to backlog",
      parameters: updateTaskSnoozeDateSchema,
      execute: async (
        { taskId, newDay, timezone, limitResponsePayload }:
          UpdateTaskSnoozeDateInput,
        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,
          newDay,
          options,
        );
    
        return formatJsonResponse({
          success: result.success,
          taskId,
          newDay,
          updatedFields: result.updatedFields,
        });
      },
    });
  • Zod schema defining the input parameters for the tool.
    export const updateTaskSnoozeDateSchema = z.object({
      taskId: z.string().min(1, "Task ID is required").describe(
        "The ID of the task to reschedule",
      ),
      newDay: z.string().date("Must be a valid date in YYYY-MM-DD format").describe(
        "Target date in YYYY-MM-DD format",
      ),
      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",
      ),
    });
  • src/main.ts:33-44 (registration)
    MCP server registration loop that registers all tools including 'update-task-snooze-date' via the allTools array.
    allTools.forEach((tool) => {
      server.registerTool(
        tool.name,
        {
          description: tool.description,
          inputSchema: "shape" in tool.parameters
            ? tool.parameters.shape
            : tool.parameters,
        },
        tool.execute,
      );
    });
  • src/tools/index.ts:5-8 (registration)
    Aggregation of all tools into allTools array, which includes taskTools containing the snooze tool.
    export const allTools = [
      ...userTools,
      ...taskTools,
      ...streamTools,
  • Export of taskTools array that includes updateTaskSnoozeDateTool.
    export const taskTools = [
      // Query tools
      getTasksBacklogTool,
      getTasksByDayTool,
      getArchivedTasksTool,
      getTaskByIdTool,
    
      // Lifecycle tools
      createTaskTool,
      deleteTaskTool,
    
      // Update tools
      updateTaskCompleteTool,
      updateTaskSnoozeDateTool,
      updateTaskBacklogTool,
      updateTaskPlannedTimeTool,
      updateTaskNotesTool,
      updateTaskDueDateTool,
      updateTaskTextTool,
      updateTaskStreamTool,
    ];
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions 'update' and 'reschedule,' implying a mutation, but does not cover critical aspects like required permissions, whether changes are reversible, rate limits, or error handling. This is inadequate for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose ('update task snooze date') and adds context ('to reschedule tasks or move them to backlog'). There is no wasted text, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description is incomplete. It lacks details on behavioral traits (e.g., side effects, auth needs), return values, and does not fully compensate for the absence of structured data, leaving gaps for agent usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all parameters. The description adds no additional parameter details beyond what the schema provides, such as explaining 'newDay' for backlog moves. Baseline 3 is appropriate as the schema handles the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('update') and resource ('task snooze date'), and specifies the purpose ('to reschedule tasks or move them to backlog'). It distinguishes from some siblings like 'update-task-due-date' by focusing on snooze dates, though not all alternatives are explicitly named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for rescheduling tasks or moving them to backlog, which suggests when to use it (e.g., deferring tasks). However, it lacks explicit guidance on when not to use it or direct comparisons to alternatives like 'update-task-backlog' or 'update-task-due-date', leaving some ambiguity.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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