Skip to main content
Glama

get-projects

Retrieve all Todoist projects in one action using a standardized API tool, enabling streamlined task management for AI agents or systems.

Instructions

Get all the projects from Todoist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for the 'todoist_get_projects' MCP tool. Calls TodoistClient.getProjects() and returns the results as JSON text content.
    case 'todoist_get_projects': const projects = await this.todoistClient.getProjects() return this.createResponse(requestId, { content: [ { type: 'text', text: JSON.stringify(projects, null, 2) } ] })
  • Input schema definition for the 'todoist_get_projects' tool (no parameters required). Part of the tools list registration.
    name: 'todoist_get_projects', description: 'Get projects from Todoist', inputSchema: { type: 'object', properties: {} } },
  • Core implementation of getProjects in TodoistClient, makes API request to Todoist /projects endpoint.
    async getProjects(): Promise<TodoistProject[]> { return this.makeRequest<TodoistProject[]>('GET', '/projects'); }
  • TOOL_VISIBILITY configuration enabling the 'todoist_get_projects' tool.
    todoist_get_projects: true,
  • Convex action wrapper 'toolGetProjects' that invokes the MCP 'todoist_get_projects' tool.
    export const toolGetProjects = action({ args: { sessionId: v.id("mcpSessions"), }, handler: async (ctx, args): Promise<any> => { const request = { jsonrpc: "2.0", id: Date.now(), method: "tools/call", params: { name: "todoist_get_projects", arguments: {}, }, }; return await ctx.runAction(api.mcp.handleMCPRequest, { sessionId: args.sessionId, request, }); }, });

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/kentaroh7777/mcp-todoist'

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