Skip to main content
Glama
robertn702

Sunsama MCP Server

update-task-planned-time

Modify the time estimate for a Sunsama task by specifying minutes or clear the estimate to improve time management and planning accuracy.

Instructions

Update the planned time (time estimate) for a task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitResponsePayloadNoWhether to limit the response payload size
taskIdYesThe ID of the task to update planned time for
timeEstimateMinutesYesTime estimate in minutes (use 0 to clear the time estimate)

Implementation Reference

  • The main handler function for the 'update-task-planned-time' tool. It uses the Sunsama client to update the task's time estimate and returns a formatted JSON response.
    export const updateTaskPlannedTimeTool = withTransportClient({
      name: "update-task-planned-time",
      description: "Update the planned time (time estimate) for a task",
      parameters: updateTaskPlannedTimeSchema,
      execute: async (
        { taskId, timeEstimateMinutes, limitResponsePayload }:
          UpdateTaskPlannedTimeInput,
        context: ToolContext,
      ) => {
        const result = await context.client.updateTaskPlannedTime(
          taskId,
          timeEstimateMinutes,
          limitResponsePayload,
        );
    
        return formatJsonResponse({
          success: result.success,
          taskId,
          timeEstimateMinutes,
          updatedFields: result.updatedFields,
        });
      },
    });
  • Zod schema defining the input parameters and validation for the tool.
    export const updateTaskPlannedTimeSchema = z.object({
      taskId: z.string().min(1, "Task ID is required").describe(
        "The ID of the task to update planned time for",
      ),
      timeEstimateMinutes: z.number().int().min(0).describe(
        "Time estimate in minutes (use 0 to clear the time estimate)",
      ),
      limitResponsePayload: z.boolean().optional().describe(
        "Whether to limit the response payload size",
      ),
    });
  • Local registration of the tool within the taskTools array, which is exported and used in higher-level tool aggregations.
    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:1-9 (registration)
    Aggregates all tools including taskTools into the allTools array for top-level export.
    import { userTools } from "./user-tools.js";
    import { taskTools } from "./task-tools.js";
    import { streamTools } from "./stream-tools.js";
    
    export const allTools = [
      ...userTools,
      ...taskTools,
      ...streamTools,
    ];
  • src/main.ts:33-44 (registration)
    Final MCP server registration loop that registers all tools, including 'update-task-planned-time', using the McpServer API.
    allTools.forEach((tool) => {
      server.registerTool(
        tool.name,
        {
          description: tool.description,
          inputSchema: "shape" in tool.parameters
            ? tool.parameters.shape
            : tool.parameters,
        },
        tool.execute,
      );
    });
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is an update operation but doesn't mention permission requirements, whether changes are reversible, rate limits, or what happens when setting timeEstimateMinutes to 0 (beyond 'clear the time estimate'). For a mutation tool with zero annotation coverage, this is inadequate.

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 states exactly what the tool does with zero wasted words. It's appropriately sized for a straightforward update operation and gets directly to the point.

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 insufficient. It doesn't explain what the tool returns, error conditions, or behavioral implications. While the schema covers parameters well, the overall context for using this update operation is incomplete.

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 already documents all three parameters thoroughly. The description adds minimal value beyond what's in the schema - it mentions 'time estimate in minutes' and 'use 0 to clear', but both are already covered in the schema descriptions. Baseline 3 is appropriate when schema does 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 ('planned time for a task'), making the purpose immediately understandable. However, it doesn't distinguish this from sibling tools like 'update-task-due-date' or 'update-task-complete' beyond mentioning 'planned time' specifically.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'update-task-due-date' or 'update-task-complete'. It doesn't mention prerequisites, dependencies, or any context about when planned time updates are appropriate versus other task modifications.

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