Skip to main content
Glama

google_tasks_set_default_list

Set a specific task list as the default for operations in Google MCP, streamlining task management and ensuring consistent execution across workflows.

Instructions

Set the default task list ID for operations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskListIdYesThe ID of the task list to set as default

Implementation Reference

  • The handler function that validates the input arguments and invokes the GoogleTasks.setDefaultTaskList method to set the default task list ID, returning a formatted response.
    export async function handleTasksSetDefaultList(
      args: any,
      googleTasksInstance: GoogleTasks
    ) {
      if (!isSetDefaultTaskListArgs(args)) {
        throw new Error("Invalid arguments for google_tasks_set_default_list");
      }
      const { taskListId } = args;
      const result = googleTasksInstance.setDefaultTaskList(taskListId);
      return {
        content: [{ type: "text", text: result }],
        isError: false,
      };
    }
  • The Tool schema definition specifying the name, description, and input schema for the google_tasks_set_default_list tool.
    import { type Tool } from "@modelcontextprotocol/sdk/types.js";
    
    export const SET_DEFAULT_TASKLIST_TOOL: Tool = {
      name: "google_tasks_set_default_list",
      description: "Set the default task list ID for operations",
      inputSchema: {
        type: "object",
        properties: {
          taskListId: {
            type: "string",
            description: "The ID of the task list to set as default",
          },
        },
        required: ["taskListId"],
      },
    };
  • The switch case in the main tool request handler that registers and routes calls to the specific tasks handler.
    case "google_tasks_set_default_list":
      return await tasksHandlers.handleTasksSetDefaultList(
        args,
        googleTasksInstance
      );
  • The core utility method in the GoogleTasks class that updates the default task list ID and returns a confirmation message.
    setDefaultTaskList(taskListId: string) {
      this.defaultTaskList = taskListId;
      return `Default task list ID set to: ${taskListId}`;
    }
  • Type guard helper function that validates the input arguments match the expected shape for the tool.
    export function isSetDefaultTaskListArgs(args: any): args is {
      taskListId: string;
    } {
      return args && typeof args.taskListId === "string";
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool sets a default, implying a mutation, but doesn't disclose whether this requires specific permissions, if the change is persistent or reversible, what happens if an invalid ID is provided, or any rate limits. For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

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 directly states the tool's purpose without any wasted words. It is appropriately sized and front-loaded, making it easy for an agent to parse quickly.

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?

Given that this is a mutation tool with no annotations and no output schema, the description is incomplete. It lacks details on behavioral traits (e.g., permissions, reversibility), doesn't explain the impact of setting a default, and provides no guidance on usage relative to siblings. For a tool that modifies system state, this leaves critical gaps for an agent to operate effectively.

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?

The schema description coverage is 100%, with the single parameter 'taskListId' clearly documented in the schema. The description adds no additional meaning beyond what the schema provides (e.g., it doesn't clarify the format of the ID or where to obtain it), so it meets the baseline of 3 for high schema coverage without compensating value.

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 ('Set') and resource ('default task list ID'), making the purpose understandable. However, it doesn't distinguish this tool from its sibling 'google_calendar_set_default' which has a similar naming pattern and function for a different resource, missing an opportunity for sibling differentiation.

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. It doesn't mention prerequisites (e.g., needing an existing task list ID from 'google_tasks_list_tasklists'), nor does it explain what 'default' means in this context or how it affects other operations, leaving the agent to infer usage scenarios.

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

Related 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/vakharwalad23/google-mcp'

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