Skip to main content
Glama

google_tasks_list_tasklists

Retrieve and manage all available task lists from Google Tasks using the MCP protocol, enabling integration with AI clients for streamlined task organization.

Instructions

List all available task lists

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the core logic for the 'google_tasks_list_tasklists' tool. It validates the input arguments using isListTaskListsArgs and calls the GoogleTasks instance's listTaskLists method.
    export async function handleTasksListTasklists(
      args: any,
      googleTasksInstance: GoogleTasks
    ) {
      if (!isListTaskListsArgs(args)) {
        throw new Error("Invalid arguments for google_tasks_list_tasklists");
      }
      const result = await googleTasksInstance.listTaskLists();
      return {
        content: [{ type: "text", text: result }],
        isError: false,
      };
    }
  • The registration/dispatch point in the MCP server's call tool handler switch statement, which routes calls to this tool name to the specific handler function.
    case "google_tasks_list_tasklists":
      return await tasksHandlers.handleTasksListTasklists(
        args,
        googleTasksInstance
      );
  • The schema definition for the tool, specifying name, description, and input schema (no required parameters).
    export const LIST_TASKLISTS_TOOL: Tool = {
      name: "google_tasks_list_tasklists",
      description: "List all available task lists",
      inputSchema: {
        type: "object",
        properties: {},
      },
    };
  • Input validation helper function used by the handler to check if arguments match the expected empty object schema.
    export function isListTaskListsArgs(args: any): args is Record<string, never> {
      return args && Object.keys(args).length === 0;
    }
  • The underlying implementation in GoogleTasks class that performs the actual Google Tasks API call to list tasklists and formats the response.
    async listTaskLists() {
      try {
        const response = await this.tasks.tasklists.list({
          maxResults: 100,
        });
    
        if (!response.data.items || response.data.items.length === 0) {
          return "No task lists found.";
        }
    
        return response.data.items
          .map((list: any) => `${list.title} - ID: ${list.id}`)
          .join("\n");
      } catch (error) {
        throw new Error(
          `Failed to list task lists: ${
            error instanceof Error ? error.message : String(error)
          }`
        );
      }
    }
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 but only states the action without details. It doesn't mention whether this is a read-only operation, if it requires specific scopes or authentication, how results are returned (e.g., pagination, format), or any rate limits, leaving significant gaps in understanding its behavior.

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, clear sentence that efficiently conveys the core action without unnecessary words. It is front-loaded and wastes no space, making it easy to parse quickly for an AI agent.

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 the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimal but insufficient. It lacks context about authentication needs, return format, or how it interacts with siblings like 'google_tasks_list_tasks', making it incomplete for effective agent use despite the low complexity.

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

Parameters4/5

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

The tool has 0 parameters with 100% schema description coverage, so no parameter information is needed. The description doesn't add param details, which is appropriate, but it also doesn't compensate for any gaps since there are none, aligning with the baseline for zero parameters.

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 ('List') and resource ('all available task lists'), making the purpose immediately understandable. However, it doesn't differentiate from its sibling 'google_tasks_list_tasks' beyond the resource name, missing an explicit distinction between listing task lists versus tasks within them.

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 'google_tasks_list_tasks' or 'google_tasks_set_default_list'. It lacks context about prerequisites, such as authentication or permissions needed to access task lists, leaving usage unclear beyond the basic action.

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