Skip to main content
Glama
mstfe

Google Tasks MCP Server

by mstfe

list_tasks

Retrieve all tasks from your default Google Tasks list using the Google Tasks MCP Server. Manage and organize tasks effectively with this integration tool.

Instructions

List all tasks in the default task list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_tasks' tool. It checks if the requested tool is 'list_tasks', calls the Google Tasks API to list tasks in the default tasklist, and returns the tasks as JSON text content.
    if (request.params.name === "list_tasks") { try { const response = await tasks.tasks.list({ tasklist: "@default", }); return { content: [ { type: "text", text: JSON.stringify(response.data.items, null, 2), }, ], }; } catch (error) { throw new McpError( ErrorCode.InternalError, `Tasks API error: ${error}` ); } }
  • src/index.ts:155-162 (registration)
    The registration of the 'list_tasks' tool in the ListToolsRequestSchema handler. Defines the tool name, description, and empty input schema (no parameters required).
    name: "list_tasks", description: "List all tasks in the default task list", inputSchema: { type: "object", properties: {}, }, }, {
  • The input schema for the 'list_tasks' tool, specifying an empty object (no input parameters needed).
    inputSchema: { type: "object", properties: {}, },

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/mstfe/mcp-google-tasks'

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